Changes

Jump to: navigation, search

OPS235 Lab 8 - CentOS7

673 bytes added, 12:18, 27 November 2019
no edit summary
{{Admon/caution|THIS IS AN OLD VERSION OF THE LAB|'''This is an archived version. Do not use this in your OPS235 course.'''}}
= LAB PREPARATION =
# Remain in your '''centos2''' and '''centos3''' VMs for this section.
# If your '''centos3''' DHCP server successfully issued the proper IP address configuration values to '''centos2''', check the file called :<br>'''/var/lib/dhcpd/dhcpd.leases''' in your <u>'''centos3'''VM</u>.# You should see the similar contents similar to:<br><br>
::<span style="font-family:courier;"> lease 192.168.235.51 {</span>
::<span style="font-family:courier;"> &nbsp; starts 3 20105 2015/0307/24 10 17:2857:2534;</span>::<span style="font-family:courier;"> &nbsp; ends 3 20105 2015/0307/24 10 18:17:48:2534;</span>::<span style="font-family:courier;"> &nbsp; cltt 3 20105 2015/0307/24 10 17:2857:2534;</span>::<span style="font-family:courier;"> &nbsp; binding state active;</span>::<span style="font-family:courier;"> &nbsp; next binding state free;</span>::<span style="font-family:courier;"> &nbsp rewind binding state free;</span>::<span style="font-family:courier; "> hardware ethernet 52:54:00:610e:007d:e7a4;</span>::<span style="font-family:courier;">} client-hostname "centos2";</span>::<brspan style="font-family:courier;">}<br/span><ol><li value="43">On the client '''centos2''' check the contents of the <codeb>/var/lib/dhclient</codeb> 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 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>
</ol>
# Make certain that you are located in your '''centos3''' virtual machine.
# Create a host declaration for '''centos2'''. Make sure you record the correct <code>hardware ethernet</code> setting that corresponds to the MAC address of the interface in '''centos2'''.
# Give it the fixed-address '''192.168.235.1242'''<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="45">Start your service and test the address assignment by releasing your current address on '''centos2''' and then requesting a new address. Use the following commands on '''centos2''':</li>
</ol>
::: <b><code><span style="color:#3366CC;font-size:1.2em;">ifdown eth1</span></code></b>
::: <b><code><span style="color:#3366CC;font-size:1.2em;">ifup eth1</span></code></b>
<ol><li value="46">Confirm that you received the fixed address you were supposed to.</li>
</ol>
 
'''Answer Part 2 observations / questions in your lab log book.'''
'''Arrange proof of the following on the screen:'''
<ol><li><span style="color:green;font-size:1.5em;">&#x2713;</span> '''centos2''' VM:<blockquote><ul><li>'''ifconfig eth0''' shows IP address '''192.168.235.42'''</li><li>DHCP client lease file</li></ul></blockquote><li><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></li><li><span style="color:green;font-size:1.5em;">&#x2713;</span> '''Lab8''' log-book filled out.</li></ol> 
= Preparing for = Practice For Quizzes , Tests, Midterm &amp; Final Exam ==
# What protocol and port does dhcp use?

Navigation menu