码迷,mamicode.com
首页 > Web开发 > 详细

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

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

标签:使用   io   for   art   ar   log   res   ad   

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

标签:使用   io   for   art   ar   log   res   ad   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!