2 swiftsunshine swiftsunshine 于 2014.04.19 16:27 提问

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;
}
望高手解答,小弟在此谢过

2个回答

enson16855
enson16855   2014.04.23 12:25

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的配置,可以正常启动的。。

enson16855
enson16855 restart试一下。。。
3 年多之前 回复
swiftsunshine
swiftsunshine 我也是这样设置的,可是就是不行T_T
3 年多之前 回复
oyljerry
oyljerry   Ds   Rxr 2014.12.28 15:08

是不是DHCP服务没有安装成功

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!