首页 > 代码库 > Not configured to listen on any interfaces!

Not configured to listen on any interfaces!

dhcp错误,日志如下

an  2 02:31:33 lylinux dhcpd: No subnet declaration for eth0 (192.168.88.128).

Jan  2 02:31:33 lylinux dhcpd: ** Ignoring requests on eth0.  If this is not what

Jan  2 02:31:33 lylinux dhcpd:    you want, please write a subnet declaration

Jan  2 02:31:33 lylinux dhcpd:    in your dhcpd.conf file for the network segment

Jan  2 02:31:33 lylinux dhcpd:    to which interface eth0 is attached. **

Jan  2 02:31:33 lylinux dhcpd:

Jan  2 02:31:33 lylinux dhcpd:

Jan  2 02:31:33 lylinux dhcpd: Not configured to listen on any interfaces!

Jan  2 02:31:33 lylinux dhcpd:

Jan  2 02:31:33 lylinux dhcpd: This version of ISC DHCP is based on the release available

Jan  2 02:31:33 lylinux dhcpd: on ftp.isc.org.  Features have been added and other changes

Jan  2 02:31:33 lylinux dhcpd: have been made to the base software release in order to make

Jan  2 02:31:33 lylinux dhcpd: it work better with this distribution.

Jan  2 02:31:33 lylinux dhcpd:

Jan  2 02:31:33 lylinux dhcpd: Please report for this software via the CentOS Bugs Database:

Jan  2 02:31:33 lylinux dhcpd:     http://bugs.centos.org/

Jan  2 02:31:33 lylinux dhcpd:

Jan  2 02:31:33 lylinux dhcpd: exiting.



原因:

没有读取到配置文件



解决:

# cp -f /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample  /etc/dhcp/dhcpd.conf



本文出自 “Liew” 博客,转载请与作者联系!

Not configured to listen on any interfaces!