LinuxSir.cn,穿越时空的Linuxsir!

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

帮忙看下我的dhcpd.conf哪里有问题?dhcpd启动不了

[复制链接]
发表于 2005-9-4 23:05:28 | 显示全部楼层 |阅读模式
我用apt-get装的dhcpd,然后在网上找了些配置/etc/dhcpd.conf的资料,也试着看了man手册,可是还是不能后启动.后来干脆用别人的配置文件,还是我行.下面的是在论坛上找的,http://www.linuxsir.cn/bbs/showt ... &highlight=dhcp -帮忙看看下面的配置文件有什么问题:


ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {  
option routers 192.168.0.1;  
option subnet-mask 255.255.255.0;  

# option nis-domain "domain.org";
option domain-name "domain.org";  
option domain-name-servers 202.98.160.68;  
option broadcast-address 192.168.0.255;

# option time-offset -18000;
range 192.168.0.100 192.168.0.150;  
default-lease-time 21600;  
max-lease-time 43200;
}  

我把上面的类容原本不动的写进dhcpd.conf,运行dhcpd提示

/etc/dhcpd.conf line 1: expecting a parameter or declaration.
ddns-update-style
^
/etc/dhcpd.conf line 2: expecting a parameter or declaration.
ignore
^
Configuration file errors encountered -- exiting

我注释掉前面的两行后,再运行,提示如下:

No subnet declaration for start (0.0.0.0).
Please write a subnet declaration in your dhcpd.conf file for the
network segment to which interface start is attached.
exiting.

实在是不明白,大家帮忙指点一下.
发表于 2005-9-5 15:51:08 | 显示全部楼层
将第一二项改成以下的样子再试试看!
ddns-update-style interim;
ignore client-updates;
回复 支持 反对

使用道具 举报

发表于 2005-9-5 16:13:38 | 显示全部楼层
关于dhcp共有三种启动方式
ddns-update-style ad-hoc
ddns-update-style interim
ddns-update-style none
如果你不做ddns 应该是要关掉的,
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-5 19:59:56 | 显示全部楼层
xagcf  ,你说的跟我的一样的吧:)

楼上的兄弟,你说的关掉是注释掉,还是用这一句 ddns-update-style none ?
我试了好像都不行,提示那个
No subnet declaration for start (0.0.0.0).
Please write a subnet declaration in your dhcpd.conf file for the
network segment to which interface start is attached.
exiting.
回复 支持 反对

使用道具 举报

发表于 2005-9-5 20:02:52 | 显示全部楼层
用ddns-update-style off;试试;
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-5 20:10:20 | 显示全部楼层
现在在Winxp下,等会去试试,把结果发上来。谢谢richardxxg
回复 支持 反对

使用道具 举报

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

本版积分规则

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