LinuxSir.cn,穿越时空的Linuxsir!

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

[急求救]FC4 DHCP启动失败

[复制链接]
发表于 2006-4-13 12:17:33 | 显示全部楼层 |阅读模式
下面是我配置的dhcpd.conf

ddns-update-style interim;
subnet 10.35.3.0 netmask 255.255.255.0 {
  range 10.35.3.5 10.35.3.254;
  default-lease-time 86400;
  max-lease-time 259200;
  option subnet-mask 255.255.255.0;
  option routers 10.35.3.1;
  option broadcast-address 10.35.3.255;
  option domain-name-servers 210.52.149.2,210.53.31.2;
  }

subnet 218.106.113.75 netmask 255.255.255.255 {
}

很奇怪的是我在笔记本上配置都OK,现在在一台台式机上启动失败,我用的是FC4
发表于 2006-9-21 21:55:59 | 显示全部楼层
楼主我的情况跟你差不多,你是怎样解决的??
回复 支持 反对

使用道具 举报

发表于 2006-9-22 07:47:25 | 显示全部楼层
dhcpd的错误一般都可以从日志里反映出问题所在,你不把日志贴出来,别人怎么看呀。
回复 支持 反对

使用道具 举报

发表于 2006-9-22 09:54:46 | 显示全部楼层
我应该贴哪个日志出来给你们看?
回复 支持 反对

使用道具 举报

发表于 2006-9-22 11:54:39 | 显示全部楼层
我的日志如下所示:
Sep 22 11:09:02 expandtech dhcpd: Copyright 2004 Internet Systems Consortium.
Sep 22 11:09:02 expandtech dhcpd: All rights reserved.
Sep 22 11:09:02 expandtech dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
Sep 22 11:09:02 expandtech dhcpd: Wrote 0 deleted host decls to leases file.
Sep 22 11:09:02 expandtech dhcpd: Wrote 0 new dynamic host decls to leases file.
Sep 22 11:09:02 expandtech dhcpd: Wrote 0 leases to leases file.
Sep 22 11:09:02 expandtech dhcpd:
Sep 22 11:09:02 expandtech dhcpd: No subnet declaration for eth1 (0.0.0.0).
Sep 22 11:09:02 expandtech dhcpd: ** Ignoring requests on eth1.  If this is not what
Sep 22 11:09:02 expandtech dhcpd:    you want, please write a subnet declaration
Sep 22 11:09:02 expandtech dhcpd:    in your dhcpd.conf file for the network segment
Sep 22 11:09:02 expandtech dhcpd:    to which interface eth1 is attached. **
Sep 22 11:09:02 expandtech dhcpd:
Sep 22 11:09:02 expandtech dhcpd:
Sep 22 11:09:02 expandtech dhcpd: Not configured to listen on any interfaces!
Sep 22 11:09:02 expandtech dhcpd:
Sep 22 11:09:02 expandtech dhcpd: If you did not get this software from ftp.isc.org, please
Sep 22 11:09:02 expandtech dhcpd: get the latest from ftp.isc.org and install that before
Sep 22 11:09:02 expandtech dhcpd: requesting help.
Sep 22 11:09:02 expandtech dhcpd:
Sep 22 11:09:02 expandtech dhcpd: If you did get this software from ftp.isc.org and have not
Sep 22 11:09:02 expandtech dhcpd: yet read the README, please read it before requesting help.
Sep 22 11:09:02 expandtech dhcpd: If you intend to request help from the dhcp-server@isc.org
Sep 22 11:09:02 expandtech dhcpd: mailing list, please read the section on the README about
Sep 22 11:09:02 expandtech dhcpd: submitting bug reports and requests for help.
Sep 22 11:09:02 expandtech dhcpd:
Sep 22 11:09:02 expandtech dhcpd: Please do not under any circumstances send requests for
Sep 22 11:09:02 expandtech dhcpd: help directly to the authors of this software - please
Sep 22 11:09:02 expandtech dhcpd: send them to the appropriate mailing list as described in
Sep 22 11:09:02 expandtech dhcpd: the README file.
Sep 22 11:09:02 expandtech dhcpd:
Sep 22 11:09:02 expandtech dhcpd: exiting.
Sep 22 11:09:02 expandtech dhcpd: dhcpd startup failed
回复 支持 反对

使用道具 举报

发表于 2006-9-22 11:55:27 | 显示全部楼层
请你们帮我看一下吧!!!
回复 支持 反对

使用道具 举报

发表于 2006-9-22 22:44:39 | 显示全部楼层
Sep 22 11:09:02 expandtech dhcpd: No subnet declaration for eth1 (0.0.0.0).
Sep 22 11:09:02 expandtech dhcpd: Not configured to listen on any interfaces!
从错误来看是你没有在/etc/sysconfig/dhcpd中添加需要dhcp服务的网络接口。
回复 支持 反对

使用道具 举报

发表于 2006-9-22 23:39:00 | 显示全部楼层
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {

#       The following lines are standard all of the time.
        option routers 192.168.0.254;
        option subnet-mask 255.255.255.0;
        option domain-name "example.com";
        option domain-name-servers 192.168.0.254;
        default-lease-time 21600;
        max-lease-time 43200;

#       Use the following line when MAC addresses have not
#       yet been determined.
        range  192.168.0.1 192.168.0,253;
}
回复 支持 反对

使用道具 举报

发表于 2006-9-23 09:53:16 | 显示全部楼层
Post by memory
Sep 22 11:09:02 expandtech dhcpd: No subnet declaration for eth1 (0.0.0.0).
Sep 22 11:09:02 expandtech dhcpd: Not configured to listen on any interfaces!
从错误来看是你没有在/etc/sysconfig/dhcpd中添加需要dhcp服务的网络接口。



我已经将/etc/sysconfig/dhcpd修改成DHCPDARGS=eth0,但还是不行,不过我用这个命令后就可以:/usr/sbin/dhcpd eth0 ,但每次关闭或重启DHCP后就又要输入以上的命令才能启动DHCP.
回复 支持 反对

使用道具 举报

发表于 2006-9-23 21:47:55 | 显示全部楼层
还是再检查/etc/sysconfig/dhcpd吧,正常来说dhcpd的启动脚本就是通过读取此配置文件来启动dhcpd的,应该和你直接使用命令行加参数的方法没有区别。
不然就把你的/etc/sysconfig/dhcpd 和 /etc/init.d/dhcpd 贴出来吧,我有年头没用过redhat的系统了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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