- 论坛徽章:
- 0
|
原帖由 hoo7 于 2006-9-5 14:03 发表
当我dhcpd start时,会提示
- 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. ...
复制代码
先了解清楚下面這兩行意思是根本不一樣的。
上面這是說,呼叫 /etc/init.d/dhcpd 這個 shell script,然後傳入 start 參數。最後該 shell script 會執行 /usr/sbin/dhcpd 程式。
上面這樣使用是說,一般可能就是去執行 /usr/sbin/dhcpd 這個程式,然後告知 dhcpd 要 listen 系統 "start" 這個網路卡介面名稱。也就是為 /usr/sbin/dhcpd start
但是上面使用方式來說是錯誤的.. 實際上 dhcpd 要使用也應該傳入實際的網路介面名稱 (ex:eth0 這類),也就是
若是不指定介面名稱,預設就是所有介面。
結論拉回來看,簡單說您似乎是弄混了 /etc/init.d/dhcpd 與 /usr/sbin/dhcpd 的定位差別。
== |
|