Jump to: navigation, search

OPS235 Lab 8

No change in size, 21:39, 27 June 2016
no edit summary
:'''Perform the following steps:'''
# Use your '''centos2centos1''' and '''centos3''' VMs for this section.
# On your '''centos3''' terminal window (via ssh from your c7hsot machine) make sure that the command<br><b>tail -f /var/log/messages</b> is running.
# On your '''centos2centos1''' VM, change the configuration of '''eth0''' (or your interface name) to receive dynamic address configuration (i.e. via graphical application, for IVP4 tab, change ''Address'' from '''Manual''' to '''DHCP''', and '''Apply''' settings)<br>([ Refer to Lab6, Investigation1, Part2]).<br><br>Note: if you are configuring via command line, make certain to restart the network for centos2centos1.# Logout and restart your '''centos2centos1''' VM.# Observe the messages that get logged from the tail -f command as your centos2 centos1 VM starts. You should see output similar to the following:<br><br>
::<span style="font-family:courier;">Jun 27 22:09:49 centos3 dhcpd: DHCPDISCOVER from 52:54:00:7c:85:13 via eth0</span>
::<span style="font-family:courier;">Jun 27 22:09:50 centos3 dhcpd: DHCPOFFER on to 52:54:00:7c:85:13 (centos1) via eth0</span>
::<span style="font-family:courier;">Jun 27 22:09:50 centos3 dhcpd: DHCPACK on to 52:54:00:7c:85:13 (centos1) via eth0<br><br></span>
<li value="6">On '''centos2centos1''', confirm the IP address assignment using <b><code><span style="color:#3366CC;font-size:1.2em;">ifconfig</span></code></b></li>
<li>Has the IP Address changed? If so, how has the IP Address been assigned according to the '''dhcpd.conf''' file settings?</li>
:'''Perform the following steps:'''
# Remain in your '''centos2centos1''' and '''centos3''' VMs for this section.# If your '''centos3''' DHCP server successfully issued the proper IP address configuration values to '''centos2centos1''', check the file called:<br>'''/var/lib/dhcpd/dhcpd.leases''' in your <u>'''centos3''' VM</u>. You should the similar contents:<br><br>
::<span style="font-family:courier;"> lease {</span>
::<span style="font-family:courier;">&nbsp; &nbsp;interface "eth0";</span>
::<span style="font-family:courier;">&nbsp; &nbsp;expire 2 2016/06/28 02:34:22;</span>
::<span style="font-family:courier;"> }</span>
<ol><li value="3">On the client '''centos2centos1''' check the contents of the <b>/var/lib/dhclient</b> directory. The files in this directory is where the dhclient stores its record of leases.<br><br> '''NOTE:''' If there are no files, then in a shell as root in your centos2 centos1 VM issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">dhclient eth0</span></code></b><br>Then check to see if there is file containing lease information in that directory.<br><br></li>
:'''Perform the following steps:'''
# Remain in your '''centos2centos1''' and '''cento3''' VMs for this section.
# Make certain that you are located in your '''centos3''' virtual machine.
# Create a host declaration for '''centos2centos1'''. Make sure you record the correct <code>hardware ethernet</code> setting that corresponds to the MAC address of the interface in '''centos2centos1'''.
# Give it the fixed-address ''''''<br><br>'''Note:''' When supplying fixed-address it is important that the address assigned is exclusive of any ranges that have been declared. Otherwise it may be possible for 2 different hosts to receive the same address.<br><br>
<ol><li value="5">Start your service and test the address assignment by releasing your current address on '''centos2centos1''' and then requesting a new address. Use the following commands on '''centos2centos1''':</li>
::: <b><code><span style="color:#3366CC;font-size:1.2em;">ifdown eth1</span></code></b>
#You are <u>'''NOT'''</u> required to download and run a checking shell script for this final lab.
#Arrange proof of the following on the screen:<br><blockquote><span style="color:green;font-size:1.5em;">&#x2713;</span> '''centos2centos1''' VM:<blockquote><ul><li>'''ifconfig eth0''' shows IP address ''''''</li><li>DHCP client lease file</li></ul></blockquote><span style="color:green;font-size:1.5em;">&#x2713;</span> '''centos3''' VM:<blockquote><ul><li>DHCP server log file showing a lease occuring</li><li>DHCP server configuration file showing subnet and host declaration</li><li>DHCP server lease file</li></ul></blockquote><span style="color:green;font-size:1.5em;">&#x2713;</span> '''Lab8''' log-book filled out.
= Practice For Quizzes, Tests, Midterm &amp; Final Exam =

Navigation menu