LinuxSir.cn,穿越时空的Linuxsir!

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

dhcpd 启动报错!我搞不定!

[复制链接]
发表于 2004-11-24 13:04:09 | 显示全部楼层 |阅读模式
我的redhat 9.0 服务器 ip 192.168.0.71/192.168.255.255 ,网络环境为192.168.0.0/16
已经有一个MS下的 dhcp服务器192.168.0.2/16 ,分配网段为 192.168.200.2-192.168.200.20,
打算同时再在linux服务器上开设另一dhcp服务,分配网段为192.168.100.2-192.168.100.200


dhcp.conf 配置内容如下

ddns-update-style interim;
#ignore client-updates;
allow booting; #定义可以PXE 启动
default-lease-time 600;
max-lease-time 7200;
authoritative;

option domain-name "linuxserver";
option domain-name-servers 192.168.0.71;
subnet 192.168.0.0 netmask 255.255.0.0 {
  use-host-decl-names on;
  option subnet-mask 255.255.0.0;
  option broadcast-address 192.168.255.255;
  range dynamic-bootp 192.168.100.2 192.168.100.200;
  default-lease-time 21600;
  option time-offset -18000; # Eastern Standard Time
       
  group {
        next-server 192.168.0.71;
    filename "/nfs/pxelinux.0";
    option root-path "192.168.0.71:/nfs";
  }
  
}

运行 service dhcpd start 出现如下错误:

Starting 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.
Listening on LPF/eth0/00:10:5c:be:5a:bd/192.168.0/16
Sending on   LPF/eth0/00:10:5c:be:5a:bd/192.168.0/16
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.

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.



将配置文件中的 subnet 改为 192.168.100.0 netmask 改为 192.168.100.255 出现如下错误

Starting 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 eth0 (192.168.0.71).
** 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.
 楼主| 发表于 2004-11-24 14:58:51 | 显示全部楼层
郁闷!!

谁能帮我!
发表于 2004-11-24 16:06:24 | 显示全部楼层
修改:
subnet 192.168.100.0 netmask 255.255.255.0
 楼主| 发表于 2004-11-25 11:34:22 | 显示全部楼层
问题找到了!

是dhcpd 和 pxe  两个服务打架了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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