在Redhat90下,我从安装光盘2安装的dhcp-3.0pl1-23
装完之后,在/etc/
用Vi 建了一个dhcpd.conf文件。
配置如下,可是怎么都启动不了。
#Office-Test
#shared-network Office
# TEST
subnet 61.235.227.0 netmask 255.255.255.0 {
ddns-updates off;
option routers 61.235.227.254;
option subnet-mask 255.255.255.0;
option domain-name-servers 211.98.4.1;
range 61.235.227.9 61.235.227.253;
option time-offset -18000;
default-lease-time 21600;
max-lease-time 43200;
authoritative;
}
我的机子是双网卡,eth 0 61.235.227.254 255.255.255.0
eth 1 222.61.4.10 255.255.255.0
网关是222.61.4.1
因为222.61.4.10这个地址可以出网,所以我想用他代理上网,nat做好了,可是DHCP,就是启不来。。。。请各位大哥指教一下。。小弟感激不尽!
下面是错误提示!!!
[root@localhost /]# cd /home/stao/dhcp/
[root@localhost dhcp]# vi
[root@localhost dhcp]# vi ERROR.log
[root@localhost dhcp]# service 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 4: semicolon expected.
subnet
^
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.
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.
[root@localhost dhcp]# service 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 4: semicolon expected.
subnet
^
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.
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.