DHCP配置

发表于:2007-05-26来源:作者:点击数: 标签:

/usr/ports.net/isc-dhcp3-server

make install

default-lease-time 21600;
max-lease-time     86400;
option domain-name-servers 202.103.44.5,202.103.0.117;
option domain-name "kmip.net";
option routers 10.0.0.2;
option broadcast-address 10.0.0.255;
option perform-mask-discovery on;
ddns-update-style none;

group

 subnet 10.0.0.0 netmask 255.255.255.0
 {
  range dynamic-bootp 10.0.0.4 10.0.0.250;
 }
 
}
然后去/usr/local/sbin

./dhcpd -cf /usr/local/etc/dhcpd.conf lnc0

如果启动成功就在rc.conf里加入dhcpd_enable="YES"

原文转自:http://www.ltesting.net