DHCP 启动失败。配置文件正确。带上系统日志(已经解决了)

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
温顺的绵羊
帖子: 67
注册时间: 2012-01-24 8:36

DHCP 启动失败。配置文件正确。带上系统日志(已经解决了)

#1

帖子 温顺的绵羊 » 2014-04-30 11:05

环境:kali1.06 32bit 中文
配置文件
default-lease-time 000;
max-lease-time 7200;
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 10.0.0.254;
option domain-name-servers 8.8.8.8;
range 10.0.0.1 10.0.0.140;
}
#把10.0.0替换成192.168.0
系统日志:
Apr 30 10:38:09 liu dhcpd: Wrote 0 leases to leases file.
Apr 30 10:38:09 liu dhcpd:
Apr 30 10:38:09 liu dhcpd: No subnet declaration for eth0 (192.168.1.101).
Apr 30 10:38:09 liu dhcpd: ** Ignoring requests on eth0. If this is not what
Apr 30 10:38:09 liu dhcpd: you want, please write a subnet declaration
Apr 30 10:38:09 liu dhcpd: in your dhcpd.conf file for the network segment
Apr 30 10:38:09 liu dhcpd: to which interface eth0 is attached. **
Apr 30 10:38:09 liu dhcpd:
Apr 30 10:38:09 liu dhcpd:
Apr 30 10:38:09 liu dhcpd: Not configured to listen on any interfaces!
在这里的subnet的网段要设置和eth0的网段一样。
如果不一样,那么就要在启动dhcp服务之前设置中继什么的。
回复