首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 操作系统 > UNIXLINUX >

RedHat 5.2 dhcpd启动失败解决方案

2012-04-08 
RedHat 5.2 dhcpd启动失败RedHat 在启动dhcp时提示失败,请帮忙看看是什么问题???dhcpd.conf文件如下:Perl

RedHat 5.2 dhcpd启动失败
RedHat 在启动dhcp时提示失败,请帮忙看看是什么问题???
dhcpd.conf文件如下:

Perl code
## DHCP Server Configuration file.#   see /usr/share/doc/dhcp*/dhcpd.conf.sample  #ddns-upate-style interim;ignore client-updates;allow booting;allow bootp;filename "linux-install/pxelinux.0";next-server 20.20.4.18;default-lease-time 1200;max-lease-time 9200;option subnet-mask 255.255.0.0;option broadcase-address 20.20.255.255;#option routers 20.20.0.1;option domain-name-servers 20.20.0.1;subnet 20.20.0.1 netmask 255.255.0.0 {    range 20.20.253.10 20.20.254.254;}


在终端执行:/usr/sbin/dhcpd显示如下:
Perl code
# /usr/sbin/dhcpd Internet Systems Consortium DHCP Server V3.0.5-RedHatCopyright 2004-2006 Internet Systems Consortium.All rights reserved.For info, please visit http://www.isc.org/sw/dhcp//etc/dhcpd.conf line 6: semicolon expected.ddns-upate-style interim;                 ^/etc/dhcpd.conf line 20: unknown option dhcp.broadcase-addressoption broadcase-address 20.       ^/etc/dhcpd.conf line 24: subnet 20.20.0.1 netmask 255.255.0.0: bad subnet number/mask combination.subnet 20.20.0.1 netmask 255.255.0.0                                    ^Configuration file errors encountered -- exitingIf you did not get this software from ftp.isc.org, pleaseget the latest from ftp.isc.org and install that beforerequesting help.If you did get this software from ftp.isc.org and have notyet read the README, please read it before requesting help.If you intend to request help from the dhcp-server@isc.orgmailing list, please read the section on the README aboutsubmitting bug reports and requests for help.Please do not under any circumstances send requests forhelp directly to the authors of this software - pleasesend them to the appropriate mailing list as described inthe README file.exiting.


[解决办法]
那些出错的选项应该放在 subnet 中:

Perl code
subnet 192.168.1.0 netmask 255.255.255.0 {    option routers          192.168.1.254;    option subnet-mask      255.255.255.0;    option broadcast-address        192.168.1.255;    option domain-name-servers      192.168.1.3;    option domain-name          "www.cao.com"; #DNS名称#    option domain-name-servers  192.168.1.3;    option time-offset      -18000;     range dynamic-bootp 192.168.1.128 192.168.1.255;    default-lease-time 21600;    max-lease-time 43200;        host ns {        hardware ethernet 52:54:AB:34:5B:09;#运行DHCP的网络接口的MAC地址#        fixed-address 192.168.1.9;    }}
[解决办法]
不会,帮顶
[解决办法]
http://hi.baidu.com/cainiaoniao/blog/item/195edc951475f143d1135ec8.html

看其中的为dhcpd.conf配置文件内容

热点排行