centos6中dhcp无法启动的错误

一、/var/log/messages中报错原因
centos6中dhcp无法启动的错误_第1张图片

二、解决方法1

[root@localhost ~]# dhcpd -cf /etc/dhcp/dhcpd.conf eth0
根据配置文件,指定dhcp工作在哪个网口,就可以重新启动了

查看

[root@localhost ~]# dhcpd -cf /etc/dhcp/dhcpd.conf eth0
Internet Systems Consortium DHCP Server 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Not searching LDAP since ldap-server, ldap-port and ldap-base-dn were not specified in the config file
Wrote 0 leases to leases file.
Listening on LPF/eth0/00:0c:29:71:3a:ec/192.168.200.0/24
Sending on   LPF/eth0/00:0c:29:71:3a:ec/192.168.200.0/24
Sending on   Socket/fallback/fallback-net
[root@localhost ~]# netstat -lnupt |grep dhcp
udp        0      0 0.0.0.0:67                  0.0.0.0:*                               1522/dhcpd    

三、解决方法3

[root@localhost ~]# vim /etc/init.d/dhcpd
#user与group本来是dhcpd,修改成root
user=root
group=root

[root@localhost ~]# service dhcpd restart 
Shutting down dhcpd:                                       [  OK  ]
Starting dhcpd:                                            [  OK  ]
[root@localhost ~]# netstat -lnupt | grep dhcpd
udp        0      0 0.0.0.0:67                  0.0.0.0:*                               1263/dhcpd 

你可能感兴趣的:(centos6中dhcp无法启动的错误)