问题描述
- centos6.0 中的dhcp服务无法开启
-
[root@localhost ~]# service dhcpd start
Starting dhcpd: [FAILED]
[root@localhost ~]# tail -f /var/log/messages
Apr 19 06:52:23 localhost dhcpd:
Apr 19 06:52:23 localhost dhcpd: This version of ISC DHCP is based on the release available
Apr 19 06:52:23 localhost dhcpd: on ftp.isc.org. Features have been added and other changes
Apr 19 06:52:23 localhost dhcpd: have been made to the base software release in order to make
Apr 19 06:52:23 localhost dhcpd: it work better with this distribution.
Apr 19 06:52:23 localhost dhcpd:
Apr 19 06:52:23 localhost dhcpd: Please report for this software via the CentOS Bugs Database:
Apr 19 06:52:23 localhost dhcpd: http://bugs.centos.org/
Apr 19 06:52:23 localhost dhcpd:
Apr 19 06:52:23 localhost dhcpd: exiting./etc/dhcpd.conf的具体配置如下
ddns-update-style none;
subnet 192.168.137.0 netmask 255.255.255.0{
option routers 192.168.137.4;
option subnet-mask 255.255.255.0;
option domain-name mycentos;
option domain-name-servers 200.3.4.10, 200.3.4.20;range 192.168.137.81 192.168.137.200;
default-lease-time 86400;
max-lease-time 172000;
}
望高手解答,小弟在此谢过
解决方案
ddns-update-style interim;
ignore client-updates;
allow booting;
allow bootp;
subnet 192.168.1.0 netmask 255.255.255.0
{
range dynamic-bootp 192.168.1.10 192.168.1.80; #这边的ip为需要广播的ip范围,看需要网络安装的计算机数量
option rooters 192.168.1.201; #填写网关地址
option subnet-mask 255.255.255.0; #子网掩码
option broadcask-address 192.168.1.255;
default-lease-time 21600;
max-lease-time 43200;
next-server 192.168.1.92; #tftp的ip地址
filename "pxelinux.0";
}
对比试一下。。这个是我自己的linux dhcp的配置,可以正常启动的。。
解决方案二:
是不是DHCP服务没有安装成功