LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 687|回复: 3

请教DHCP的启动问题?!

[复制链接]
发表于 2005-4-14 14:17:23 | 显示全部楼层 |阅读模式
: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.
请高手指点一下,谢谢!
发表于 2005-4-15 09:23:37 | 显示全部楼层
内网内还有其它dhcp server吗?建议先cp /usr/share/doc/***(不好意思路径忘记了)到/etc/dhcpd.conf先修改这个文件,尽量先做少许修改,再逐步缩小错误范围。。。
回复 支持 反对

使用道具 举报

发表于 2005-4-15 10:04:10 | 显示全部楼层
Can't bind to dhcp address: Address already in use
也许dhcpd已经启动了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-15 10:26:22 | 显示全部楼层
问题已找到,原来是我装的dhcp-3.0.2与系统自带的dhcp-3.0发生冲突了,卸载后即可正常启动!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表