[网络管理] linux下DHCP的配置问题(已解决)

weixin_38048973 2008-10-14 02:38:18

简单配置了下DHCP服务器,
#vi /etc/dhcpd.conf
#this file for dhcpd configuration

#global settins
default-lease-time 259200;
max-lease-time 777600;
ddns-update-style interim;

#section settings
subnet 192.168.9.0 netmask 255.255.255.0
{   
    range 192.168.9.10 192.168.9.250;   
    option broadcast-address 192.168.9.255;
    option routers 192.168.9.1;
    option domain-name-servers 202.103.24.68;
}

host mike
{   
    hardware ethernet 00:16:36:4f:d6:71;   
    fixed-address 192.168.9.28;
    option broadcast-address 192.168.9.255;
    option routers 192.168.9.1;
    option domain-name-servers 202.103.24.68;
}


配置完成,启动服务  #/usr/sbin/dhcpd
出现这样的结果
[root@fxcompiler ~]# /usr/sbin/dhcpd
Internet Systems Consortium DHCP Server 4.1.0a2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 1 leases to leases file.
Listening on LPF/eth0/00:13:72:cd:d3:fe/192.168.9.0/24
Sending on   LPF/eth0/00:13:72:cd:d3:fe/192.168.9.0/24

No subnet declaration for eth1 (192.168.99.4).
** Ignoring requests on eth1.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface eth1 is attached. **

Sending on   Socket/fallback/fallback-net
There's already a DHCP server running.

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

查看端口
[root@fxcompiler ~]# netstat -nutap | grep dhcpd
udp        0      0 0.0.0.0:67                  0.0.0.0:*                               2930/dhcpd         

这个说明端口是开启的,可是为什么启动DHCP服务会出现
[root@fxcompiler ~]# service dhcpd restart
Internet Systems Consortium DHCP Server 4.1.0a2
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 1 leases to leases file.

No subnet declaration for restart (no IPv4 addresses).
** Ignoring requests on restart.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface restart is attached. **


Not configured to listen on any interfaces!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the server@isc.org[/email]
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting. [ 本帖最后由 tqyou85 于 2008-10-15 14:44 编辑 ]
...全文
302 9 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复

474

社区成员

发帖
与我相关
我的任务
社区描述
其他技术讨论专区
其他 技术论坛(原bbs)
社区管理员
  • 其他技术讨论专区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧