DHCP服务启动失败

由 yxheyong 在 08-08-2003 22:35 发表:

DHCP服务启动失败

看了北南兄写的“怎样设置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 [email protected]

mailing list, please read the section on the README about

submitting bug reports and requests for help.

Plea

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus