请教高手 dhcp无法启动

发布于 2022-07-17 13:43:58 字数 3234 浏览 3 评论 4

我配置dhcp后启动后出现如下错误  希望高手指点,不胜感激:

[ot@123 etc]# service dhcpd restart
Internet Systems Consortium DHCP Server V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.

No subnet declaration for restart (0.0.0.0).
** Ignoring requests on restart.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface restart is attached. **

Not configured to listen on any interfaces!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
[root@123 etc]# service dhcpd restart
Internet Systems Consortium DHCP Server V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 0 leases to leases file.

No subnet declaration for restart (0.0.0.0).
** Ignoring requests on restart.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface restart is attached. **

Not configured to listen on any interfaces!

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

遗失的美好 2022-07-24 20:45:06

果然启动了   太感谢楼上了   !!!!

南七夏 2022-07-24 18:08:30

你的錯誤訊息很有趣:

  1. No subnet declaration for restart (0.0.0.0).

复制代码

你畫面是說執行 service dhcpd restart,但是我認為不大可能.....

你該不會是執行 dhcpd restart 吧?這是錯的,因為等於 /usr/sbin/dhcpd restart,這個 restart 被當作是 listen 的 interface name。

你應該是使用 /usr/sbin/dhcpd 就好,或者是執行 /etc/init.d/dhcpd restart 。

==

野侃 2022-07-24 15:17:37

1。我的dhcpd.conf为:
ddns-update-style interim;
ignore client-updates;

subnet 0.0.0.0 netmask 255.255.255.255 {}
subnet 192.168.0.0 netmask 255.255.255.0 {
    range dynamic-bootp 192.168.0.10 192.168.0.255;
    option routers          192.168.0.254;
    option subnet-mask      255.255.255.0;
    option broadcast-address        192.168.0.255;
    option domain-name-servers      202.106.0.20,202.96.209.5;
    option time-offset      -18000;
    default-lease-time 86300;
    max-lease-time 86300;
        host ns {
        hardware ethernet 00:0A:EB:4D:97:2F;
        fixed-address 192.168.0.178;
    }
}

2。ip为192.168.0.178

[ 本帖最后由 johncby 于 2006-7-3 13:03 编辑 ]

银河中√捞星星 2022-07-23 16:00:11

原帖由 johncby 于 2006-7-3 11:25 发表
我配置dhcp后启动后出现如下错误  希望高手指点,不胜感激:

1. 你的设定文档配置内容?dhcpd.conf 内容为何?

2. 你的网路组态?ifconfig 结果为何?

==

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文