[inbi@debian ~]#vim /etc/dhcp/dhcpd.conf
ddns-update-style none;
log-facility local7;
subnet 192.168.1.0 netmask 255.255.255.0 {
INTERFACES="eth0"
default-lease-time 86400;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option ntp-servers 192.168.1.1;
option netbios-name-servers 192.168.1.100;
option netbios-node-type 2;
host bla1 {
hardware ethernet DD:GH:DF:E5:F7:D7;
fixed-address 192.168.1.2;}
host bla2 {
hardware ethernet 00:JJ:YU:38:AC:45;
fixed-address 192.168.1.20;}
}
subnet 10.152.187.0 netmask 255.255.255.0 {
INTERFACES="eth1"
option subnet-mask 255.255.255.0;
option broadcast-address 10.152.187.255;
option routers 10.152.187.1;
option domain-name-servers 10.152.187.1
option ntp-servers 10.152.187.1;
option netbios-name-servers 10.152.187.1;
option netbios-node-type 2;
default-lease-time 86400;
max-lease-time 86400;
host bla3 {
hardware ethernet 00:KK:HD:66:55:9B;
fixed-address 10.152.187.2;
}
}
Linux DHCP服务器配置dhcp3-server
转载于:https://my.oschina.net/u/172508/blog/30091