LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: yxheyong

DHCP服务!哪位兄弟来帮帮我!

[复制链接]
发表于 2003-8-13 22:32:51 | 显示全部楼层
把/var/lib/dhcp/dhcpd.lease清空看看
 楼主| 发表于 2003-8-16 21:25:21 | 显示全部楼层

/var/lib/dhcp/dhcpd.lease

里只有几行注解其它什么信息也没有。
发表于 2003-8-17 00:04:10 | 显示全部楼层
删除这句后,
subnet 10.0.0.3 netmask 255.255.255.255 { }
不能启动的提示是什么?
 楼主| 发表于 2003-8-17 01:02:12 | 显示全部楼层
我现在dhcpd.conf设置如下:

ddns-update-style interim;
ignore client-updates;
                                                                                
subnet 192.168.1.0 netmask 255.255.255.0 {
        option routers                  192.168.1.1;
        option subnet-mask              255.255.255.0;
        option domain-name              "domain.org";
        option domain-name-servers      61.139.2.69;
        option broadcast-address        192.168.1.255;
        range dynamic-bootp             192.168.1.2 192.168.1.254;
        default-lease-time 21600;
        max-lease-time 43200;
}

第一种启动
启动命令:dhcpd start
报错信息:
[root@server root]# dhcpd start
Internet Software Consortium DHCP Server V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.

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

第二种启动
启动命令:/etc/init.d/dhcpd start
报错信息:
[root@server root]# /etc/init.d/dhcpd start
启动 dhcpd:Internet Software Consortium DHCP Server V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Wrote 0 leases to leases file.

No subnet declaration for eht1 (0.0.0.0).
** Ignoring requests on eht1.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface eht1 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.
                                                           [失败]
 楼主| 发表于 2003-8-17 01:06:28 | 显示全部楼层
启动命令:dhcpd start
报错为:
No subnet declaration for start (0.0.0.0).
** Ignoring requests on start. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface start is attached. **

----------------------------------------------------------------

启动命令:/etc/init.d/dhcpd start
报错为:
No subnet declaration for eht1 (0.0.0.0).
** Ignoring requests on eht1. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface eht1 is attached. **

-----------------------------------------------------------------
yyja兄说的:
此问题是dhcpd服务不知道在那个介面侦听,与配置文件格式无关,但我不清楚如何在命令行设置dhcpd侦听介面
-----------------------------------------------------------------

我想是不是我用了同一种网卡造成的原因:
双网卡都是TP-LINK8139的。
发表于 2003-8-17 13:02:58 | 显示全部楼层
dhcp服务器的网卡ip要定制,不可自动获取,
你的某个网卡是不是没有设置ip?
如果没设置,把它设为192.168.1.0网络的任意ip。
一般他还要求写出,广播地址和网络地址,
但是192.168.1.X是个C类地址,有默认的网络地址,
由IPADDR和NETMASK又可以决定广播地址。
所以在ifcfg-ethX中只填IPADDR和NETMASK,
DEVICE,BOOTPROTO,ONBOOT几项即可。
试试看,我记得某个资料是这样说,不敢确定。
 楼主| 发表于 2003-8-17 15:25:00 | 显示全部楼层
兄弟还是不行,看来我只有重做系统在试试了。
发表于 2003-8-18 02:56:02 | 显示全部楼层
估计和重装系统是两回事.
 楼主| 发表于 2003-8-18 20:47:18 | 显示全部楼层
但现在我找不到问题出在哪里啊。搞不好是我的双网卡是同一型号的问题。明天到公司去试试了。谢谢你的帮助。3Q!!!!!!!!
发表于 2003-8-18 22:03:51 | 显示全部楼层
在/etc/rc.d/rc.local 中加入route add -host 255.255.255.255 dev eth0
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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