Lab 03 - IronMansDaughter/Sys-255 GitHub Wiki
Lab Summary:
This mainly consisted of teaching us how to set up linux with our DNS info and then testing connectivity. We did this by pinging google to test our connection via the WAN and then we pinged all of our other vm's in order to see if we were connected to our LAN properly. After pinging these addresses, we were ask to set up A and PTR records for dhcp01 to the DNS configuration on ado1. I accomplished this by booting up my ad01 vm and then directing myself to my DNS manager and located the forward lookup zones and then from there I added a new host A and then set up the correct information and also clicked create new PTR before I hit done. So what this did is that it set up a record which allows me to ping my dhcp01's box by name instead of its ip address. This was successful and then we moved on to using remote access. We did this by using the command, "ssh" and adding the name of the box we wanted remote access to, "janelle@dhcp01-janelle". It then asked us for our password, after inputing that we went on to play around and explore the directory. We learned how to use the "sudo" command to allow ourselves to have privileged user access in order to install the "tree" package. After we played around a bit with "bash" and more specifically Bash history; we learned how to access it(just shows commands the user previously used before) and then we were assigned with discovering how to clear the history. After some research online I finally found two commands that worked(history -w & history -c). Over all the lab was very successful and I learned a decent amount of new knowledge since I've never used Linux previously.
Setting Static IP in CentOS Linux:
In order to set a static IP on CentOS Linux you have to use the tool, “NMTUI” in the OS. You use the arrows key to work around the environment and eventually after a few clicks get to the box that allows you to enter different settings and addresses, like the IP addresses. While you’re in this settings section, you can also set other things pertaining to your DNS info.
Commands Used Within the Lab:
**sudo** - Gives the user privileged access and allows them to have the power to do stuff that the regular account wouldn't.
**groups** - Shows the groups your user has been assigned to.
**ssh** - Allows remote access into another one of your boxes. To use simply type, "ssh" and then the address of the box you're trying to reach, so an example would be, "ssh janelle@dhcp01-janelle". It'll then prompt you for your password for the box you're trying to reach, once you enter that you should now have remote access.
**cat .bash_history** - This provides a list of previous commands used in the terminal/command prompt. (Type "s .bash_history" before it.)
**history -w** - These two commands will help you successfully clear your bash history.
**history -c**
Three New Linux Commands to use in the Future
**chmod** - chmod is the command and system call used to change the access permissions and the special mode flags of file system objects.
**netstat** - netstat is a command-line network utility that displays network connections for Transmission Control Protocol, routing tables, and a number of network interface and network protocol statistics. netstat stands for Network statistics
**netcat** - netcat is a computer networking utility for reading from and writing to network connections using TCP or UDP.
Diagram of LAN and WAN Layout: