DHCP configuration in Ubuntu

At a terminal prompt, enter the following command to install dhcpd:
sudo apt-get install dhcp3-server
open vi /etc/dhcp/dhcpd.config.
change the following lines as per your respective IP & settings.
# A slightly different configuration for an internal subnet.
subnet netmask {
option domain-name-servers,;
#  option domain-name “internal.example.org”;
option routers;
option broadcast-address;
default-lease-time 600;
max-lease-time 7200;

Restart the DHCP-Server :
/etc/init.d/isc-dhcp-server restart

At CLIENT side:


Set Dynamic ip & restart the service.


Leave a Comment