linux下dhcp服务基本配置信息
# vim /etc/dhcpd.conf
 
ddns-update-style interim;
ignore client-updates;
default-lease-time 21600;
max-lease-time 43200;
authourtative;
subnet 192.168.203.0 netmask 255.255.255.0 {
option routers 192.168.203.1;
option subnet-mask 255.255.255.0;
range 192.168.203.20 192.168.203.78;
default-lease-time 21600;
max-lease-time 43200;
filename "/pxelinux.0";
}
 
日志文件获取:
#find / -name dhcpd.leases
/var/lib/dhcpd/dhcpd.leases
 
#cat /var/lib/dhcpd/dhcpd.leases
lease 192.168.203.77 {
  starts 4 2009/04/02 08:28:54;
  ends 4 2009/04/02 14:28:54;
  binding state active;
  next binding state free;
  hardware ethernet 00:0c:29:a7:bb:a1;
}
lease 192.168.203.76 {
  starts 4 2009/04/02 08:29:33;
  ends 4 2009/04/02 14:29:33;
  binding state active;
  next binding state free;
  hardware ethernet 02:bf:c0:a8:0a:e5;
  uid "\001\002\277\300\250\012\345";
  client-hostname "test111";
}