- 論壇徽章:
- 0
|
#./configure
#make
#make install
...
Aug 6 17:48:07 dhcpd: No subnet declaration for start (no IPv4 addresses).
Aug 6 17:48:07 dhcpd: ** Ignoring requests on start. If this is not what
Aug 6 17:48:07 dhcpd: you want, please write a subnet declaration
Aug 6 17:48:07 dhcpd: in your dhcpd.conf file for the network segment
Aug 6 17:48:07 dhcpd: to which interface start is attached. **
Aug 6 17:48:07 dhcpd:
Aug 6 17:48:07 dhcpd: Not configured to listen on any interfaces!
原因:啟動(dòng)服務(wù)需指定監(jiān)聽(tīng)網(wǎng)卡,如下:
dhcpd xl0
開(kāi)機(jī)自動(dòng)啟動(dòng)dhcpd服務(wù):
將
/usr/local/sbin/dhcpd xl0 加入到/etc/rc.local的最后.
文檔:
/etc/dhcpd.conf
/var/db/dhcp/dhcpd.leases
# dhcpd.conf
option domain-name "panabit.szx.hecny.com";
option domain-name-servers 192.168.1.7,202.96.134.133;
option routers 192.168.1.3;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.100 192.168.1.250;option domain-name-servers 192.168.1.7,202.96.134.133;
}
host mis1 {hardware ethernet 00:0E:1F:51:CC:90;fixed-address 192.168.1.18;
option domain-name-servers 192.168.1.7,202.96.134.133;
本文來(lái)自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u/30/showart_2020564.html |
|