Open main menu

CDOT Wiki β

Changes

OPS235 Lab 6 - CentOS7 - SSD

2,331 bytes removed, 21:04, 13 June 2016
no edit summary
=== Part 2: Configuring VM Network Setup Graphically ('''system-config-network''')For centos1 & centos2 VMs===
For Parts 2 and 3 of this investigation, we will be using a graphical tool to connect our '''centos1''' and '''centos2''' VMs to our private network.
# Open a terminal and issue the '''ifconfig''' command to confirm the IP ADDRESS settings change.
# Verify that '''centos1'''VM is now connected to the VPN by issuing the following command from your '''c7host''' machine:<br><b><code><span style="color:#3366CC;font-size:1.2em;">ping 192.168.235.11</span></code></b>
  === Part 3: Backing up Only Recent File Changes === This part is a repeat of part2, except we will be demonstrating how to use the '''find''' command to backup recent changes to files. In this case, we will save date/time stamp information in a file, configure to connect '''centos2''' to the network, run the '''find''' command, and prove that the incremental backup worked (showing the files created as a result of the configuration of centos1 # Switch to the VPN). {| width="40%" align="right" cellpadding="10"|- valign="top"|{{Admon/note | Backing up Files |One very important aspect of system admin is performing backups. There are many methods for backing up the data on a a computer system. The following is an example of a common backup system used in Business Unix/Linux systems:<br /><br />'''Full Backup''': Backup all specified files (eg. configuration, data files, etc)<br>'''Incremental Backup''': Backup of only files that have changed since last (full) backup.|}}|} # Keep your '''centos1''' VM running (you will need it running later in this lab).# Start the '''centos2''' VM and login# Before we configure centos2 network configuration, we should create a timestamp file that can be used to see which files have changed as a result of using the GUI tool. Issue the following command:#: <b><code><span style="color:#3366CC;font-size:1.2em;">date > /tmp/timestamp</span></code></b># Run the network configuration tool and enter the following static configuration in the same way that you configured for your '''centos1centos2'''.VM:
#* IP Address: '''192.168.235.12'''
#* Subnetmask: '''255.255.255.0'''
# Save and exit the network configuration tool.
# You may have to restart the network using the correct command.
# Verify the configuration by pinging the VMs and c7host using their IP addresses.# We will now create an '''Incremental Backupother VMs'''. Run the following Linux command as root:#: <b><code><span style="color:#3366CC;font-size:1.2em;">find /etc -newer /tmp/timestamp &gt; /root/netcfg.lst</span></code></b>#View the and '''/root/netcfg.lst''' file. What does it contain?</li>#Create a new directory called: '''/tmp/lab6c7host'''{| width="40%" align="right" cellpadding="10"|- valign="top"|{{Admon/tip | Tip | You can create a Bash Shell script file using the ''find'' command above, give the shell script executable permissions, and use the ''crontab'' command to schedule running this script on a periodic basis.}}|}<ol> <li value="11">Issue the following commands: <dl> <dd><b><code><span style="color:#3366CC;font-size:1.2em;">find /etc -newer /tmp/timestamp -exec cp {} /tmp/lab6 \;</span></code></b> </dl> </li> <li>View the contents of the '''/tmp/lab6''' directorytheir IP addresses. What does it contain?</li></ol>
=== Part 43: Configuring VM Network Setup via Command Line ('''centos3''') ===
Our centos3 VM is a '''text-based only''' system, thus we cannot use a graphical tool to configure centos3 to connect to our private network. Therefore we will learn how to perform this task by using command-line tools.
13,420
edits