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 192.168.4.0 netmask 255.255.255.0 {
range 192.168.4.1 192.168.4.30;
option domain-name-servers 192.168.4.1, 8.8.4.4;
#  option domain-name “internal.example.org”;
option routers 192.168.4.1;
option broadcast-address 192.168.4.255;
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.

ref:http://www.youtube.com/watch?feature=player_detailpage&v=9Vc6-0smd64

Leave a Comment