> Manual Releasing and requesting on the client
root@jack:~# dhclient -r There is already a pid file /var/run/dhclient.pid with pid 5496 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.1.1 Copyright 2004-2008 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:0c:29:4c:9a:97 Sending on LPF/eth0/00:0c:29:4c:9a:97 Sending on Socket/fallback DHCPRELEASE on eth0 to 172.30.4.1 port 67 root@jack:~# dhclient Internet Systems Consortium DHCP Client V3.1.1 Copyright 2004-2008 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/00:0c:29:4c:9a:97 Sending on LPF/eth0/00:0c:29:4c:9a:97 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 DHCPOFFER of 172.30.4.83 from 172.30.4.1 DHCPREQUEST of 172.30.4.83 on eth0 to 255.255.255.255 port 67 DHCPACK of 172.30.4.83 from 172.30.4.1 bound to 172.30.4.83 -- renewal in 8325 seconds. root@jack:~#
> DHCP server configuration file
[root@nosmo root]# cat /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
option time-offset -25200; #PDT
#
# Shire network
#
subnet 172.30.4.0 netmask 255.255.255.0 {
option routers 172.30.4.1;
option subnet-mask 255.255.255.0;
option domain-name "Shire";
option domain-name-servers 207.62.187.54;
range dynamic-bootp 172.30.4.150 172.30.4.199;
default-lease-time 21600;
max-lease-time 43200;
host sauron {
hardware ethernet 00:0c:29:4c:9a:97;
fixed-address 172.30.4.83;
}
}
[root@nosmo root]#
> Stopping and starting the DHCP service
[root@nosmo root]# service dhcpd stop Shutting down dhcpd: [ OK ] [root@nosmo root]# service dhcpd start Starting dhcpd: [ OK ] [root@nosmo root]# service dhcpd restart Shutting down dhcpd: [ OK ] Starting dhcpd: [ OK ] [root@nosmo root]#
