我是疯子 我怕谁?

所有的东西都是乱弹和自己的技术积累和网络见闻

freebsd下DHCP服务的设置

tcsm | 11 十月, 2006 21:53

/usr/local/etc 下建立dhcp.conf

输入内容
default-lease-time      21600;                  //默认IP租期
max-lease-time          86400;                  //最大IP租期
option domain-name-servers 202.96.69.38;        //dns server
option domain-name "whyno.org";                 //默认的域
option routers 192.168.4.1;                     //默认的网关
option broadcast-address 192.168.4.255;         //广播地址
option perform-mask-discovery on                //主动发现方式
ddns-update-style none;                        

group
{
        subnet 192.168.4.0 netmask 255.255.255.0
        {
                range dynamic-bootp 192.168.4.2 192.168.4.200;
        }
        host printer
        {
                hardware ethernet 00:00:80:f8:07:10;
                fixed-address     192.168.4.202;
                option            host-name "printer servers";
        }
}
//以上这段就是 dhcp 分配ip的规则 分配192.168.4.2~192.168.4.200 之间的IP
//为打印机根据mac地址分配固定的ip地址:192.168.4.202

/var/log/messages 系统配置文件的出错信息

评论

发表评论
 authimage
 
Accessible and Valid XHTML 1.0 Strict and CSS
Powered by LifeType - Design by BalearWeb