|
|
在Debian 4.0平台,运行dhcpd server,如下:
- debian:/var/lib/dhcp# ps aux|grep 'dhcpd'|grep -v 'grep'
- root 2293 0.0 0.2 1756 584 ? Ss Oct04 0:00 /usr/sbin/dhcpd -q eth1
复制代码
有如下租约记录:
- debian:/var/lib/dhcp# cat /var/lib/dhcp/dhcpd.leases
- # All times in this file are in UTC (GMT), not your local timezone. This is
- # not a bug, so please don't ask about it. There is no portable way to
- # store leases in the local timezone, so please don't request this as a
- # feature. If this is inconvenient or confusing to you, we sincerely
- # apologize. Seriously, though - don't ask.
- # The format of this file is documented in the dhcpd.leases(5) manual page.
- lease 192.168.2.19 {
- starts 5 2007/10/05 09:14:28;
- ends 5 2007/10/05 09:24:28;
- hardware ethernet 00:e0:06:09:12:67;
- uid 01:00:e0:06:09:12:67;
- client-hostname "liang";
- }
- lease 192.168.2.13 {
- starts 5 2007/10/05 09:12:31;
- ends 5 2007/10/05 09:22:31;
- hardware ethernet 00:17:31:0d:4c:42;
- uid 01:00:17:31:0d:4c:42;
- client-hostname "Admin";
- }
- lease 192.168.2.23 {
- starts 5 2007/10/05 09:11:16;
- ends 5 2007/10/05 09:21:16;
- hardware ethernet 00:0b:6a:88:7c:cb;
- uid 01:00:0b:6a:88:7c:cb;
- client-hostname "hmjt-ad43d8e3bb";
- }
- ~
复制代码
问题是,在RH发行版下,租约记录为如下格式:
- [root@Routed-Server ~]# less /var/lib/dhcp/dhcpd.leases
- # All times in this file are in UTC (GMT), not your local timezone. This is
- # not a bug, so please don't ask about it. There is no portable way to
- # store leases in the local timezone, so please don't request this as a
- # feature. If this is inconvenient or confusing to you, we sincerely
- # apologize. Seriously, though - don't ask.
- # The format of this file is documented in the dhcpd.leases(5) manual page.
- # This lease file was written by isc-dhcp-V3.0.1
- lease 192.168.2.125 {
- starts 2 2007/06/26 07:02:29;
- ends 2 2007/06/26 07:04:29;
- tstp 2 2007/06/26 07:04:29;
- binding state free;
- hardware ethernet 00:c0:9f:4e:16:67;
- }
- lease 192.168.2.121 {
- starts 2 2007/07/10 01:58:25;
- ends 2 2007/07/10 02:00:25;
- tstp 2 2007/07/10 02:00:25;
- binding state free;
- hardware ethernet 00:11:09:ec:f6:a6;
- }
- lease 192.168.2.143 {
- starts 6 2007/09/01 07:56:37;
- ends 6 2007/09/01 08:54:10;
- tstp 6 2007/09/01 08:54:10;
- binding state free;
- hardware ethernet 00:04:5a:a7:13:36;
- }
- lease 192.168.2.164 {
- starts 5 2007/10/05 09:15:45;
- ends 2 2038/01/19 03:14:06;
- [color=Red]binding state active;[/color]
- [color=Red]next binding state free;[/color]
- hardware ethernet 00:13:d4:f0:78:2c;
- uid "\001\000\023\324\360x,";
- }
- ~
复制代码
# 如上图中红色所示,有什么在Debian的发行版下没有这些字段呢?另,在Debain下man dhcpd.leases ,man dhcpd.conf与RH发行版下也有差异,在RH下能用的一些参数在Debian下不能用了,比喻ddns-update-style |
|