#./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!
原因:启动服务需指定监听网卡,如下:
dhcpd xl0
开机自动启动dhcpd服务:
将
/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;
阅读(2044) | 评论(1) | 转发(0) |