LinuxSir.cn,穿越时空的Linuxsir!

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

DHCP服务启动失败

[复制链接]
发表于 2003-8-8 22:35:22 | 显示全部楼层 |阅读模式
看了北南兄写的“怎样设置DHCP[参考篇]”后自己用现有网络也配置了一下DHCP服务但吂后
失败。请Linuxsir的兄弟们帮帮我!!!

我的网络环境是:
主机:双网卡ADSL共享上网。Radhat9.0
外网接ADSL:10.0.0.3    255.255.255.0
内网DHCP服务:192.168.1.1  255.255.255.0
注:我没有用HUB 是双网卡叉接的。双网卡共享上网正常。客户机是WIN2K。我只想为192.168.1.0的网段提供服务。对了北南兄配置的DHCP服务中没有向客户机分配网关啊。请问  option broadcast-address 192.168.1.1;  这一句是不是就是向客户机分配网关?

根据北南兄的贴子。我的dhcpd.conf配置为:

default-lease-time 259200;
max-lease-time 777600;
option domain-name "server.domain";
subnet 192.168.1.0 netmask 255.255.255.0{
range 192.168.1.2 192.168.1.254;
option broadcast-address 192.168.1.1;
opton domain-name-servers 61.139.2.69;
}
subnet 10.0.0.3 netmask 255.255.255.0{}

启动DHCP后出现

/etc//rc.d/init.d/dhcpd start
后出现:
/etc//rc.d/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
/etc/dhcpd.conf line 7: semicolon expected.
opton domain-name-servers
      ^
/etc/dhcpd.conf line 9: subnet 10.0.0.3: bad subnet number/mask combination.
subnet 10.0.0.3 netmask 255.255.255.0{
                                    ^
Configuration file errors encountered -- exiting
                                                                                
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.
                                                           [失败]
option broadcast-address 192.168.1.1;
 楼主| 发表于 2003-8-8 22:37:13 | 显示全部楼层

对了还有一个问题

关于第三句
option domain-name "server.domain";
中域名是不是用本服务器的计算机名?还是随更写?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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