subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}[/code:1]
用 [code:1]/usr/sbin/dhcpd -d -f[/code:1]
启动,有以下信息:
[code:1]Internet Software Consortium DHCP Server V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.
Listening on LPF/eth0/00:06:5b:2c:27:f1/10.165.1.0/24
Sending on LPF/eth0/00:06:5b:2c:27:f1/10.165.1.0/24
Sending on Socket/fallback/fallback-net[/code:1]
当有客户请求时,却出现以下出错信息:
[code:1]DHCPREQUEST for 192.168.0.251 from 00:50:56:40:5c:7c via eth0: ignored (not authoritative).
DHCPREQUEST for 192.168.0.251 from 00:50:56:40:5c:7c via eth0: ignored (not authoritative).
DHCPREQUEST for 192.168.0.251 from 00:50:56:40:5c:7c via eth0: ignored (not authoritative).
DHCPREQUEST for 192.168.0.4 from 00:e0:4c:62:17:71 via eth0: ignored (not authoritative).
DHCPREQUEST for 192.168.0.4 from 00:e0:4c:62:17:71 via eth0: ignored (not authoritative).
DHCPDISCOVER from 00:50:56:40:5c:7c via eth0: network 10.165.1.0/24: no free leases
DHCPDISCOVER from 00:50:56:40:5c:7c via eth0: network 10.165.1.0/24: no free leases
DHCPDISCOVER from 00:50:56:40:5c:7c via eth0: network 10.165.1.0/24: no free leases
DHCPDISCOVER from 00:50:56:40:5c:7c via eth0: network 10.165.1.0/24: no free leases
DHCPDISCOVER from 00:50:56:40:5c:7c via eth0: network 10.165.1.0/24: no free leases[/code:1]