歡迎您光臨本站 註冊首頁

請教高手 dhcp無法啟動

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

請教高手 dhcp無法啟動

我配置dhcp后啟動后出現如下錯誤  希望高手指點,不勝感激:

# 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.
# 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.
《解決方案》

原帖由 johncby 於 2006-7-3 11:25 發表
我配置dhcp后啟動后出現如下錯誤  希望高手指點,不勝感激:

1. 你的設定文檔配置內容?dhcpd.conf 內容為何?

2. 你的網路組態?ifconfig 結果為何?

==
《解決方案》

謝謝樓上

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 編輯 ]
《解決方案》

你的錯誤訊息很有趣:

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 。

==
《解決方案》

謝謝樓上

果然啟動了   太感謝樓上了   !!!!
《解決方案》

原帖由 kenduest 於 2006-7-3 13:25 發表 http://linux.chinaunix.net/bbs/images/common/back.gif
你的錯誤訊息很有趣:

No subnet declaration for restart (0.0.0.0).

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

你該不會是執行 dhcpd restart 吧?這是錯的,因為等於 /usr/sb ...


謝謝啊,我終於啟動我的dhcpd服務了,之前一直用service dhcpd start 跟/usr/sbin/dhcpd start,一直無法啟動DHCPD服務,顯示如下信息:

Internet Systems Consortium DHCP Server V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
WARNING: Host declarations are global.  They are not limited to the scope you declared them in.
Not searching LDAP since ldap-server, ldap-port, ldap-username, ldap-password and ldap-baes-dn were not specified in the config file
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 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. **


Not configured to listen on any interfaces!

This version of ISC DHCP is based on the release available
on ftp.isc.org.  Features have been added and other changes
have been made to the base software release in order to make
it work better with this distribution.

Please report for this software via the Red Hat Bugzilla site:
    http://bugzilla.redhat.com

exiting.

結果用了大哥說的命令,去掉start之後就可以了!真是太感謝了!
《解決方案》

問題的關鍵在於這一行配置,subnet 0.0.0.0 netmask 255.255.255.255 {},日誌提示這一行沒有子網聲明,service dhcpd restart是沒有問題的,把這一行刪除肯定就沒問題了

[火星人 ] 請教高手 dhcp無法啟動已經有1261次圍觀

http://coctec.com/docs/service/show-post-33257.html