apt-get install dhcp3-server
/etc/dhcp/dhcpd.conf
default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.11;
option domain-name-servers 8.8.8.8;
option domain-name "mydomain.com";
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.101 192.168.1.121;
}
/etc/init.d/isc-dhcp-server restart
状态文件
/var/lib/dhcp/dhcpd.leases