首页 > 代码库 > 启动dhcp出错:No subnet declaration for eth0 (192.168.0.1

启动dhcp出错:No subnet declaration for eth0 (192.168.0.1

XUbuntu 8.04 i386。装了dhcp3-server。
使用 sudo /etc/init.d/dhcp3-server start 出错:
Apr 30 14:24:03 s dhcpd: Wrote 0 leases to leases file.
Apr 30 14:24:03 s dhcpd: 
Apr 30 14:24:03 s dhcpd: No subnet declaration for eth0 (192.168.0.1).
Apr 30 14:24:03 s dhcpd: ** Ignoring requests on eth0.  If this is not what
Apr 30 14:24:03 s dhcpd:    you want, please write a subnet declaration
Apr 30 14:24:03 s dhcpd:    in your dhcpd.conf file for the network segment
Apr 30 14:24:03 s dhcpd:    to which interface eth0 is attached. **
Apr 30 14:24:03 s dhcpd: 
Apr 30 14:24:03 s dhcpd: 
Apr 30 14:24:03 s dhcpd: Not configured to listen on any interfaces!

系统的 eth0  连接内网
inet 地址:192.168.0.1  广播:192.168.0.255  掩码:255.255.255.0
系统的 eth1 连接外网

/etc/dhcpd.conf 内容为

option subnet-mask 255.255.255.000;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.101 192.168.0.200;
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
option ip-forwarding off;
}