13,420
edits
Changes
no edit summary
== Part 1: Where does the dhcp server store a record of leased addresses?Obtaining Leased Address Infomation=={|width="40%" align="right"
|{{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.}}
|}
# 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 <code>/var/lib/dhcpd/dhcpd.leases</code>
# You should see contents similar to:<prebr><br>::# lease 192.168.235.51 { ::# starts 3 2010/03/24 17:28:25; ::# ends 3 2010/03/24 17:48:25; ::# cltt 3 2010/03/24 17:28:25; ::# binding state active; ::# next binding state free; ::# hardware ethernet 52:54:00:61:00:e7;::#}</prebr>{{Admon/note | Purpose of <codebr>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 centos2 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>