日期:2014-05-16  浏览次数:20609 次

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-RedHat
Copyright 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-address
option 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 -- 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.




------解决方案--------------------
那些出错的选项应该放在 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配置文件内容