Open main menu

CDOT Wiki β

Changes

OPS235 Lab 8 - Fedora17

217 bytes removed, 19:55, 3 January 2014
no edit summary
[[Category:OPS235]]{{Admon/caution|DraftLab|This lab has NOT been released for regular distribution. When the lab is ready to be released, this caution banner will disappear.}}= Setting Up , Using & Using Maintaining a DHCP Server =[[Category:OPS235]][[Category:OPS235 Labs]]
==Overview==
* In this lab, you will learn how to setup, and run a DHCP server on your f16host fedora3 machine, and then test-out the DHCP server by booting setting up your other VMs to receive an IP addresses from the DHCP server.
== Objectives ==
* To obtain log information from DHCP server including lease address information.
* To lease the same IP address every-time from VM boot-up (instead of having DHCP server randomly assign IP address).
 
==Required Materials (Bring to All Labs)==
* '''Fedora 16 17 LIVE CD''' - You can burn this onto a CD-R in the Open Lab* '''Fedora 16 x_64 17 x86_64 Installation DVD''' - You can burn this onto a DVD-R in the Open Lab (or burn image onto a DVD+R if you are using the Freedom Toaster).* '''SATA Hard Disk''' (in removable disk tray)* '''USB Memory Stick''' (minimum 64M)* '''Lab Logbook (Lab5 Reference Sheet)''' (to make notes and observations). 
==Prerequisites==
* Completion and Instructor "Sign-off" of Lab 67: [[OPS235 Lab 7]]
# On a fedora3 terminal window make sure that the command <code>tail -f /var/log/messages</code> is running.
# On your fedora2 VM, change the configuration of <span style="background-color:yellow">em1</span> '''eth1''' (or your interface name) to receive dynamic address configuration.
# Save your changes and restart the <code>NetworkManager</code> service.
# Observe the messages that get logged. You should see output similar to the following:
<pre style="background-color:yellow">
Mar 24 13:28:24 fedora3 dhcpd: DHCPDISCOVER from 52:54:00:61:00:e7 via eth2
Mar 24 13:28:25 fedora3 dhcpd: DHCPOFFER on 192.168.235.51 to 52:54:00:61:00:e7 via eth2
</pre>
{{Admon/note | Purpose of <code>dhcpd.leases</code> File | dhcpd records address leases in this file. If the service is restarted it reads in the file to know which addresses are currently leased and for how long.}}
<ol><li value="3">On the client fedora2 check the contents of the<code>/var/lib/dhclient</code> directory. The files in this directory is where the dhclient stores its record of leases.</li>
</ol>
'''Answer the Investigation 6 observations / questions in your lab log book.'''
 
=== Investigation 7: How can I lease the same address every time? ===
<ol><li value="3">Start your service and test the address assignment by releasing your current address on fedora2 and then requesting a new address. Use the following commands on fedora2:</li>
</ol>
::: <code>dhclient -r ifdown eth1</code>::: <code>dhclient ifup eth1</code>
<ol><li value="4">Confirm that you received the fixed address you were supposed to.</li>
</ol>
'''Answer the Investigation 7 observations / questions in your lab log book.'''
 
== Completing the lab ==
* DHCP client lease file
== Preparing for the Quizzes ==
# What protocol and port does dhcp use?
13,420
edits