- # edit /etc/dhcp3/dhcpd.conf so that it contains a working configuration for the ethernet interface you wish to serve dhcp requests on, say eth0:
subnet 10.5.5.0 netmask 255.255.255.0 { range 10.5.5.10 10.5.5.30; option domain-name "whatever.domain.org"; option domain-name-servers dns1.whatever.domain.org, dns2.whatever.dommain.org; }
- # specify which network interface the dhcp server should listen to by editing /etc/default/dhcp3-server:
INTERFACES="eth0"
- # restart the dhcp daemon:
sudo /etc/init.d/dhcp3-server restart
# make sure to set the subnet, netmask and range to values which are compatible with your interface settings... Have a look at /var/log/syslog to see whether you have configured your configuration files properly:sudo tail -f /var/log/syslog &