首页 > Web开发 > 详细

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

时间:2014-08-06 22:01:32      阅读:877      评论:0      收藏:0      [点我收藏+]

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;
}

启动dhcp出错:No subnet declaration for eth0 (192.168.0.1,布布扣,bubuko.com

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

原文:http://www.cnblogs.com/heidsoft/p/3895397.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!