|
|
:ask
我的OS是linux9.0,指定了IP:192.168.0.11 ;其/etc/dhcpd.conf如下:
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.254;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option domain-name "stoney.cn";
option domain-name-servers 192.168.0.254;
range dynamic-bootp 192.168.0.20 192.168.0.100;
default-lease-time 21600;
max-lease-time 43200; }
host peter {
hardware ethernet 02:87:97:85:88:19;
fixed-address 192.168.0.11;
option routers 192.168.0.254;
option donmain-name-servers 192.168.0.254; }
ps:#touch /var/state/dhcp/dhcpd.leases
#route add -host 255.255.255.255 dev eth0
cd /etc/rc.d/init.d/
[root@stoney init.d]#./dhcpd start
下面是出错信息:
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.
Listening on LPF/eth0/02:87:97:85:88:19/192.168.0.0/24
Sending on LPF/eth0/02:87:97:85:88:19/192.168.0.0/24
Can't bind to dhcp address: Address already in use
Please make sure there is no other dhcp server running and that there's no entry for dhcp or bootp in /etc/inetd.conf.
Also make sure you are not running HP JetAdmin software, which includes a bootp server.
请高手指点一下,谢谢! |
|