Chinaunix首页 | 论坛 | 博客
  • 博客访问: 790284
  • 博文数量: 156
  • 博客积分: 5320
  • 博客等级: 大校
  • 技术积分: 1605
  • 用 户 组: 普通用户
  • 注册时间: 2004-10-09 12:24
文章分类

全部博文(156)

文章存档

2010年(20)

2009年(46)

2008年(21)

2007年(21)

2006年(33)

2005年(10)

2004年(5)

分类: BSD

2009-08-07 11:57:01

#./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;
阅读(2059) | 评论(1) | 转发(0) |
0

上一篇:FreeBSD 下的SSH服务.

下一篇:FreeBSD mount.

给主人留下些什么吧!~~

chinaunix网友2009-12-11 17:36:08

# ifconfig xl0 down //STOP网卡 # ifconfig xl0 up //START网卡