CSDN博客

img tmd_net

isc dhcpd-tip

发表于2004/10/2 2:08:00  881人阅读

server-identifier 192.168.1.254; //指定HDCP绑定的地址
option domain-name "example.org";  //指定dhcp client默认搜索域的域名
option domain-name-servers ns1.example.org, ns2.example.org; //指定dns server,多个用“,“分隔
default-lease-time 600;    //默认租用时间 单位为秒
max-lease-time 7200;    //最大租用时间
ddns-update-style ad-hoc;    //接受或者释放IP地址时是否更新DNS,打开
ddns-update-style none;     //关闭
subnet 10.152.187.0 netmask 255.255.255.0 { //设定DHCP IP/netmast
}
option broadcast-address 10.254.239.31;  //广播地址
option routers rtr-239-32-1.example.org; //gateway
range 10.254.239.10 10.254.239.20; //地址池范围

host fantasia {
  hardware ethernet 08:00:07:26:c0:a5; //设定特定的MAC地址为指定的IP
  fixed-address fantasia.fugue.com;    //要指定的主机名字,也可以用IP
}
---------------------------------------------------------------------------------------
列子
server-identifier 192.168.1.254;

ddns-update-style none;

option domain-name-servers 61.139.2.69, 218.89.0.124;
option routers 192.168.1.254;
option broadcast-address 192.168.1.255;
default-lease-time 5500000;
max-lease-time 7700000;

subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.10 192.168.1.20;
  range 192.168.1.50 192.168.1.60;
}

host a {
  hardware ethernet 00:e0:4c:d9:ba:12;
  fixed-address 192.168.1.155;
}
--------------------------------------------------------------------------------------
cp dhcpd.conf.sample dhcpd.conf~
vi dhcpd.conf~
grep -v “#“ dhcpd.conf~ >dhcpd.conf
chmod 400 dhcpd.conf
---------------------------------------------------------------------------
相关的文件

/usr/local/sbin/dhcpd
/usr/local/etc/dhcpd.conf
/var/db/dhcpd.leases
/usr/local/sbin/dhcrelay

阅读全文
0 0

相关文章推荐

img
取 消
img