Changes

Jump to: navigation, search

OSL740 Lab 8

30 bytes removed, 11:14, 8 April 2022
m
LAB 8 SIGN-OFF (SHOW INSTRUCTOR)
# Study the sample '''dhcpd.conf''' file to see examples of how these options are used.
# Review the contents of '''/etc/dhcp/dhcpd.conf''' file (see the picture) and examine the top section of the file.
# Be advised: "'''option''' definitions common to all supported networks". Change the existing global options with the <u>newer values</u> shown below, if the '''dhcpd.conf''' file is empty, add them manually:<br><br>'''option domain-name''' '''"ops245osl740.org";'''<br>'''option domain-name-servers''' '''192.168.245.1;'''<br>'''default-lease-time''' '''1200;'''<br>'''max-lease-time''' '''3600;'''<br><br>'''Note:''' Any values for time are stated in seconds.<br><br>
# View your editing sessions for typos (check for missing semicolons), then save and exit your editing session.<br><br>
::<span style="font-family:courier;">&nbsp; &nbsp;hardware ethernet 52:54:00:ba:75:a8;</span>
::<span style="font-family:courier;">}</span>
<ol><li value="3">On the client '''centos1''' 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 '''centos1''' VM issue the command: <b><code><span style="color:#3366CC;font-size:1.2em;">sudo dhclient eth0</span></code></b><br>Then check to see if there is file containing lease information in that directory. You should get the similar contents:<br></li></ol>
::<span style="font-family:courier;"> lease {</span>
::<span style="font-family:courier;">&nbsp; &nbsp;interface "eth0";</span>
|}
 
=== Part 2: Configuring DHCP server to Continually Lease Same IP Address===
# Make certain ALL of your '''centos1''' and '''centos3''' VMs are running.
# Switch to your '''c7host''' VM and change to your user'''su -''' into root.# Change to the s '''/root/bin''' directory.
# Issue the Linux command: <b><code><span style="color:#3366CC;font-size:1.2em;">wget https://osl740.github.io/labs/lab8-check.bash</span></code></b>
# Give the '''lab8-check.bash''' file execute permissions (for the file owner).
572
edits

Navigation menu