QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1078|回复: 6

dhcp-3.0pl1-23 不能启动问题,请版主老师帮忙!

[复制链接]
发表于 2004-11-28 05:24:36 | 显示全部楼层 |阅读模式
在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.

exiting.
                                                        
搞不明白,我错在什么地方啦!
发表于 2004-11-28 09:31:30 | 显示全部楼层
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;
}  ;
回复

使用道具 举报

 楼主| 发表于 2004-11-28 10:25:45 | 显示全部楼层
老大,我后面加了;还是不行,还是启动不了,还是提示。。昏!

[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.

exiting.
回复

使用道具 举报

 楼主| 发表于 2004-11-28 11:03:29 | 显示全部楼层
不知道是不是我没有安装成功。
回复

使用道具 举报

发表于 2004-11-28 11:05:22 | 显示全部楼层
自己看例子文件,是怎么写的。
回复

使用道具 举报

 楼主| 发表于 2004-11-28 12:06:06 | 显示全部楼层
我Copy你写进去了,还是不行呀!还是启不了。
回复

使用道具 举报

 楼主| 发表于 2004-11-28 14:58:07 | 显示全部楼层
已经找到问题了,谢谢版主前辈!!!!!!!!!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-6 23:22 , Processed in 0.087108 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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