|
|
我的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. |
|