LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 791|回复: 7

启动dhcpd时出现以下错误提示:

[复制链接]
发表于 2004-11-30 00:14:57 | 显示全部楼层 |阅读模式
No subnet declaration for start (0.0.0.0).
** Ignoring requests on start.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface start is attached. **

我的系统是mandrake 10.0,双网卡,已经设好共享上网,成功.
/etc/dhcpd.conf内容如下:

ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
        #default gateway 192.168.0.1
        option routers 192.168.0.1;
        option subnet-mask 255.255.255.0;

        option domain-name "homeland.net";
        option domain-name-servers 10.16.14.100;

        range dynamic-bootp 192.168.0.16 192.168.0.253;
        default-lease-time 43200;
        max-lease-time 21600;
}
subnet 10.64.18.19 netmask 255.255.255.255{
}

能不能帮忙研究一下出错原因,先谢过!
发表于 2004-11-30 08:45:33 | 显示全部楼层
在/etc/sysconfig/dhcpd文件中指定做dhcp的接口卡。从信息上好像是有的接口卡没有定义dhcp段(subnet。。。)。
发表于 2004-11-30 09:05:09 | 显示全部楼层
关注ing。。。
发表于 2004-11-30 14:23:16 | 显示全部楼层
楼主用的是双网卡,能否讲讲你是怎样设置的吗?
是否把机器当作了一个简单路由
 楼主| 发表于 2004-11-30 20:03:35 | 显示全部楼层
我是用iptables和IP转发做了个简单的网关,eth1是接外网的,eth0接内网,用了以下两条命令:
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
我在cosole下用命令:dhcpd start启动DHCP服务出现错误提示,但在KDE下的mandrake配置中心-->系统-->服务中可以启动dhcpd,不知是什么原因.
 楼主| 发表于 2004-11-30 20:06:24 | 显示全部楼层
用什么命令可以停止dhcpd服务啊?
 楼主| 发表于 2004-11-30 20:26:02 | 显示全部楼层
在/etc/sysconfig/dhcpd文件中指定做dhcp的接口卡。从信息上好像是有的接口卡没有定义dhcp段(subnet。。。)。


dhcpd文件中已经指定了eth0.
 楼主| 发表于 2004-11-30 23:44:05 | 显示全部楼层
dhcpd 和 dhcpd start命令有什么区别?我打入dhcpd则提示服务器正常启动了!!
另问:如何让它开机自动启动dhcp服务呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表