Open main menu

CDOT Wiki β

Changes

OPS235 Lab 8 - Fedora17

13 bytes added, 23:19, 28 February 2012
no edit summary
<li>What file appears to be a sample configuration file?</li>
<li>Copy the sample <code>dhcpd.conf</code> file to the <code>/etc/dhcp</code> directory making sure it is named <code>/etc/dhcp/dhcpd.conf</code></li>
<li>Answer the Investigation 1 question in your log book.</li>
</ol>
 
'''Answer the Investigation 1 observations / questions in your lab log book.'''
 
=== Investigation 2: What configuration options and directives need to be set in dhcpd.conf?===
::* <code>subnet-mask</code>
<ol><li value="2"> Study the sample <code>dhcpd.conf</code> file to see examples of how these options are used.</li>
<li>Answer the Investigation 2 question in your log book.</li>
</ol>
 
'''Answer the Investigation 2 observations / questions in your lab log book.'''
 
=== Investigation 3: How do I configure dhcpd settings to be applied to all subnets?===
::* <code>max-lease-time</code> should be set to 1 hour
<ol><li value="3">Save and exit your editing session.</li>
<li>Answer the Investigation 3 question in your log book.</li>
</ol>
{{Admon/note | Note! | As global settings these will affect all subnets unless they are separately declared for individual subnets.}}
 
'''Answer the Investigation 3 observations / questions in your lab log book.'''
 
=== Investigation 4: How do I configure dhcpd to provide IP configuration to my virtual network?===
</ol>
{{Admon/tip | Troubleshooting Tip: | Troubleshooting produces the best results when you are methodical in your approach. Try to fix the first error mentioned before fixing subsequent errors. Often the first error may cause multiple error messages as the configuration file is parsed. When you think you have fixed the first error try to start your service and if it fails check the log again. Fix one error at a time.}}
<ol><li value="13">When you have successfully started your service answer  '''Answer the Investigation 4 question observations / questions in your lab log book. You may want to include all of the syntax you used.</li></ol>''' 
=== Investigation 5: How do I test my dhcpd service on my virtual network?===
{{Admon/note | Note! | These messages record the DHCP lease transaction that consists of 4 broadcast packets, DISCOVER, OFFER, REQUEST and ACKNOWLEDGE. Try researching on the internet how this transaction differs from a DHCP lease renewal.}}
<ol><li value="5">On fedora2 confirm the IP address assignment using <code>ifconfig</code></li>
<li>Answer the Investigation 5 question in your log book.</li>
</ol>
 
'''Answer the Investigation 5 observations / questions in your lab log book.'''
 
=== Investigation 6: Where does the dhcp server store a record of leased addresses?===
{{Admon/note | Note! | 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>
<li>Answer the Investigation 6 question in your log book.</li>
</ol>
 
'''Answer the Investigation 6 observations / questions in your lab log book.'''
=== Investigation 7: How can I lease the same address every time? ===
::: <code>dhclient eth1</code>
<ol><li value="4">Confirm that you received the fixed address you were supposed to.</li>
<li>Answer the Investigation 7 question in your log book.</li>
</ol>
 
'''Answer the Investigation 7 observations / questions in your lab log book.'''
 
== Completing the lab ==
13,420
edits