Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10726149
  • 博文数量: 2905
  • 博客积分: 20098
  • 博客等级: 上将
  • 技术积分: 36298
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-23 05:00
文章存档

2012年(1)

2011年(3)

2009年(2901)

分类: LINUX

2009-04-09 17:34:33

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";
}

本文出自 “linux进阶屋” 博客,谢绝转载!

阅读(714) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~