Intranet 发表于 2009-08-07 11:57

FreeBSD 下的DHCP....


#./configure
#make
#make install
...

Aug6 17:48:07dhcpd: No subnet declaration for start (no IPv4 addresses).
Aug6 17:48:07dhcpd: ** Ignoring requests on start.If this is not what
Aug6 17:48:07dhcpd:    you want, please write a subnet declaration
Aug6 17:48:07dhcpd:    in your dhcpd.conf file for the network segment
Aug6 17:48:07dhcpd:    to which interface start is attached. **
Aug6 17:48:07dhcpd:
Aug6 17:48:07dhcpd: 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;

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/30/showart_2020564.html

Intranet 发表于 2009-08-08 17:26

这么神奇。。。。
在blog里发的东西会自动转发过来。。。

:em17:
页: [1]
查看完整版本: FreeBSD 下的DHCP....