- 论坛徽章:
- 0
|
有关dhcp的问题!
系统是RedHat9.0。
小弟这两天在弄DHCP服务器,但是在配置dhcpd.conf后,输入命令:dhcpd restart 总是有如下提示:[root@wanglin etc]# dhcpd restart
Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Warning: subnet 192.168.0.0/25 overlaps subnet 192.168.0.0/24
duplicate entries for lease 192.168.0.40
duplicate entries for lease 192.168.0.41
duplicate entries for lease 192.168.0.42
duplicate entries for lease 192.168.0.43
duplicate entries for lease 192.168.0.44
duplicate entries for lease 192.168.0.45
duplicate entries for lease 192.168.0.46
duplicate entries for lease 192.168.0.47
duplicate entries for lease 192.168.0.48
duplicate entries for lease 192.168.0.49
duplicate entries for lease 192.168.0.50
duplicate entries for lease 192.168.0.51
duplicate entries for lease 192.168.0.52
duplicate entries for lease 192.168.0.53
duplicate entries for lease 192.168.0.54
duplicate entries for lease 192.168.0.55
duplicate entries for lease 192.168.0.56
duplicate entries for lease 192.168.0.57
duplicate entries for lease 192.168.0.58
duplicate entries for lease 192.168.0.59
duplicate entries for lease 192.168.0.60
Wrote 0 leases to leases file.
No subnet declaration for restart (0.0.0.0).
** Ignoring requests on restart. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface restart 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.
[root@wanglin etc]#
其中有一句是:Not configured to listen on any interfaces!,不知道为什么会出现这样的提示,请各位高手帮忙看看,dhcpd.conf的配置如下:
# dhcpd.conf
#
# Sample configuration file for ISC dhcpd
#
# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;
ddns-update-style ad-hoc;
default-lease-time 600;
max-lease-time 7200;
# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
#authoritative;
# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
#log-facility local7;
# No service will be given on this subnet, but declaring it helps the
# DHCP server to understand the network topology.
subnet 192.168.10.0 netmask 255.255.255.0 {
}
# This is a very basic subnet declaration.
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.100;
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
}
# This declaration allows BOOTP clients to get dynamic addresses,
# which we don't really recommend.
subnet 192.168.0.0 netmask 255.255.255.128 {
range dynamic-bootp 192.168.0.40 192.168.0.60;
option broadcast-address 192.168.0.127;
option routers 192.168.0.1;
}
# A slightly different configuration for an internal subnet.
#subnet 192.168.10.0 netmask 255.255.255.0 {
# range 192.168.10.51 192.168.10.60;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 192.168.10.1;
# option broadcast-address 192.168.10.255;
# default-lease-time 600;
# max-lease-time 7200;
#}
# Hosts which require special configuration options can be listed in
# host statements. If no address is specified, the address will be
# allocated dynamically (if possible), but the host-specific information
# will still come from the host declaration.
# Fixed IP addresses can also be specified for hosts. These addresses
# should not also be listed as being available for dynamic assignment.
# Hosts for which fixed IP addresses have been specified can boot using
# BOOTP or DHCP. Hosts for which no fixed address is specified can only
# be booted with DHCP, unless there is an address range on the subnet
# to which a BOOTP client is connected which has the dynamic-bootp flag
# set.
# You can declare a class of clients and then do address allocation
# based on that. The example below shows a case where all clients
# in a certain class get addresses on the 10.17.224/24 subnet, and all
# other clients get addresses on the 10.0.29/24 subnet.
[root@wanglin etc]#
另:我机器的IP地址(即DHCP服务器)是192.168.0.102。
谢谢! |
|