REDhat9 dhcp无法启动的问题
我配置/etc/dhcp.conf文件内容如下:
max-lease-time 9200
option subnet-mask 255.255.255.0
option broadcast-address 192.168.1.255
option routers 192.168.1.254
option domain-name-servers 192.168.1.1,220.168.208.3
option domain-name "lison.smyz.cn "
subnet 192.168.1.0 netmask 255.255.255.0
range 192.168.1.10 192.168.1.100
range 192.168.1.150 192.168.1.200
用ntsysv可以找到dhcp服务并可以启动,但是用 /etc/rc.d/init.d/dhcpd start
启动失败.有/var/lib/leases文件.
提示错误: [root@teacher4 dhcp]# /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 0: expecting a parameter or declaration
^
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.
[失败]
求助!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
ddns-update-style ad-hoc;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.30;
default-lease-time 86400;
max-lease-time 604800;
option subnet-mask 255.255.255.0;
option routers 192.168.1.254;
option domain-name "lison.smyz.com";
option broadcast-address 192.168.1.255;
option domain-name-servers 220.168.208.3;
}
~
~
~
:em11:
其他的看明白了:(
ddns-update-style ad-hoc; //是什么意思
---------------------------------
菜鸟,学子中ing
DNS 更新
DNS 更新目前实现了两种 DNS 更新方案 — 特殊 DNS 更新模式和过渡性 DHCP-DNS 互动草图更新模式。如果这两种模式被接受为 IETF 标准进程的一部分,就会出现第三个模式 — 标准 DNS 更新方法。DHCP 服务器必须配置使用这两种当前方案中的一种。版本 3.0b2pl11 以及更早的版本使用特殊模式;不过,这种模式已经过时。如果你想保留相同的行为方式,在配置文件的开头添加以下一行:
ddns-update-style ad-hoc;
要使用推荐的模式,在配置文件的开头添加以下一行:
ddns-update-style interim; :em11: :em11:
昨天弄了一下午DHCP,总算弄好了:)
----------------------------------------
菜鸟,学习中ing