红联Linux门户
Linux帮助

一个DHCP的例子

发布时间:2006-08-21 12:44:47来源:红联作者:xuanchengzi
[code] ddns-update-style interim;
ddns-update-style ad-hoc;
default-lease-time 172800;
max-lease-time 604800;
subnet 10.0.0.0 netmask 255.255.255.0 {
range 10.0.0.2 10.0.0.254;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
option domain-name-servers 202.106.0.20,202.106.46.151;
option domain-name "home.net.cn";
}
host station1 {
hardware ethernet 00:E0:4C:76:06:A0;
fixed-address 10.0.0.2;
}
host laptop {
hardware ethernet 00:E0:4C:00:47:1C;
fixed-address 10.0.0.3;
}[/code]
文章评论

共有 0 条评论