免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1366 | 回复: 3
打印 上一主题 下一主题

有关DHCP服务器的问题! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-12-12 08:54 |只看该作者 |倒序浏览
有关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。
谢谢!

论坛徽章:
0
2 [报告]
发表于 2003-12-12 10:47 |只看该作者

有关DHCP服务器的问题!

看起来是你配置的地址范围有问题,你配置的地址是从哪到哪的?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2003-12-12 10:56 |只看该作者

有关DHCP服务器的问题!

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;
}
把这两段注释掉,重启dhcpd试试.

论坛徽章:
0
4 [报告]
发表于 2003-12-12 14:13 |只看该作者

有关DHCP服务器的问题!

非常感谢大天使,DHCP已经做好!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP