LinuxSir.cn,穿越时空的Linuxsir!

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

DHCP 的郁闷问题

[复制链接]
发表于 2006-5-15 17:33:22 | 显示全部楼层 |阅读模式
因为机器的其他原因 我重新安装了系统
我所作的步骤是 先找到dhcpd.conf.sample 复制后放在/etc下 重命名为dhcpd.conf
然后到服务下启动还是成功的
但在终端使用/etc/rc.d/init.d/dhcpd start 没有反应
于是 我重新启动了网络 再输入就出现下面的信息 郁闷.........




[root@localhost ~]# /etc/rc.d/init.d/dhcpd start
启动 dhcpd:Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 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 0 leases to leases file.

No subnet declaration for eth0 (172.16.40.253).
** Ignoring requests on eth0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eth0 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 dhcp-server@isc.org
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.

谢谢指教
发表于 2006-5-15 17:41:55 | 显示全部楼层
嗯, 你要DHCPD干嘛?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-15 17:50:40 | 显示全部楼层
我是一个新手 在学习LINUX服务器的配置
对于DHCP主要实现 IP地址动态分配 还有IP地址和MAC地址的绑定

谢谢
回复 支持 反对

使用道具 举报

发表于 2006-5-15 21:56:07 | 显示全部楼层
设置子网声明
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-16 15:19:18 | 显示全部楼层
设置子网声明?
能再详细点说明么
我再查查资料

谢谢
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-16 18:24:25 | 显示全部楼层
声明是指range dynamic-bootp么? 已经设置了 贴出来了

Failed to start dhcpd :

Starting dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/etc/dhcpd.conf line 4: subnet 172.16.40.253 netmask 255.255.255.0: bad subnet number/mask combination.
subnet 172.16.40.253 netmask 255.255.255.0
                                         ^
Configuration file errors encountered -- exiting

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 dhcp-server@isc.org
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.
[FAILED]

谢谢  请指教
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-16 18:25:39 | 显示全部楼层
声明是指range dynamic-bootp么? 已经设置了 贴出来了

Failed to start dhcpd :

Starting dhcpd: Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
/etc/dhcpd.conf line 4: subnet 172.16.40.253 netmask 255.255.255.0: bad subnet number/mask combination.
subnet 172.16.40.253 netmask 255.255.255.0
                                         ^
Configuration file errors encountered -- exiting

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 dhcp-server@isc.org
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.
[FAILED]

谢谢  请指教
回复 支持 反对

使用道具 举报

发表于 2006-5-25 15:22:02 | 显示全部楼层
我也遇到这样的问题,后来我先给我的服务器网卡分配了ip后再启动dhcp就ok了,你试试看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-5-25 16:01:37 | 显示全部楼层
谢谢 已经解决了
回复 支持 反对

使用道具 举报

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

本版积分规则

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