1. use isc-dhcp-server as the dhcp server.
2. set the dhpc server ip as 192.168.1.1
3. in /etc/default/isc-dhcp-server
INTERFACES="eth0"
4. in /etc/dhcp/dhcpd.conf
default-lease-time 60000;
max-lease-time 72000;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.200;
option routers 192.168.1.1;
}
5. restart the service
/etc/init.d/isc-dhcp-server restart