Changes

Jump to: navigation, search

OPS235 Lab 6 - CentOS7 - SSD

No change in size, 02:54, 12 June 2016
no edit summary
</ol>
</li>
<li>Repeat the same steps for your '''<u>centos3centos2</u>''' and '''<u>centos4</u>''' VMs!</li>
</li>
</ol>
== Part 2: Configuring VM Network Setup Graphically ('''system-config-network''')==
For Parts 2 and 3 of this investigation, we will be using a graphical tool to connect our '''centos1''' and '''centos3centos2''' VMs to our private network.
[[Image:new_network_dialog.png|right|thumb|250px|Although the private network has been setup via the '''Virtual Machine Manager''', each virtual machine requires to change its own network setting individually (either '''graphically''' or by '''command line''').]]
== 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 '''centos3centos2''' 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 to the VPN).
{| width="40%" align="right" cellpadding="10"
# Keep your '''centos1''' VM running (you will need it running later in this lab).
# Start the '''centos3centos2''' VM and login# Before we configure centos3 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 '''centos1'''.
Our centos4 VM is a '''text-based only''' system, thus we cannot use a graphical tool to configure centos4 to connect to our private network. Therefore we will learn how to perform this task by using command-line tools.
# Leave your '''centos1''' and '''centos3centos2''' VM running, but start your '''centos4''' VM, login, and su to '''root'''.
# Use the command '''ifconfig''' to list active interfaces, you should see one with a name of '''eth0''' or a similar name.
# To configure your card with a static address use the following command:
#::192.168.235.1 c7host
#::192.168.235.11 centos1
#::192.168.235.12 centos3centos2
#::192.168.235.13 centos4<br><br>
#Confirm that each host can ping all three of the other hosts by name.
<li>Confirm that your rule works by testing from your VM's</li>
<li>Does iptables close the port? Check using '''netstat'''</li>
<li>Now insert a rule on the CentOS host that would ACCEPT connections from the centos3 centos2 VM only.</li>
<li>Fully test your configuration.</li>
</ol>
# Give the '''lab6-check.bash''' file execute permissions (for the file owner).
# Run the shell script and if any warnings, make fixes and re-run shell script until you receive "congratulations" message.
#Arrange proof of the following on the screen:<br><blockquote><span style="color:green;font-size:1.5em;">&#x2713;</span> '''centos3centos2''' VM:<blockquote><ul><li>Contents of '''/tmp/lab6''' directory.</li><li>'''ssh''' from centos3 centos2 to the CentOS host</li></ul></blockquote><span style="color:green;font-size:1.5em;">&#x2713;</span> '''<u>All</u> VMs''':<blockquote><ul><li>'''ifconfig''' information</li><li>Contents of '''/etc/hosts''' file</li></ul></blockquote><span style="color:green;font-size:1.5em;">&#x2713;</span>'''c7host''' machine<blockquote><ul><li>'''arp''' cache information</li><li>Contents of '''/etc/hosts''' file</li><li>Proof of backup</li><li>A list of your '''iptables''' rules</li></ul></blockquote><span style="color:green;font-size:1.5em;">&#x2713;</span> '''Lab6''' log-book filled out.
= Practice For Quizzes, Tests, Midterm &amp; Final Exam =
13,420
edits

Navigation menu