Saturday, June 23, 2012

Install and configure DHCP Server on Ubuntu 10.10 desktop

On the Ubuntu 10.10 machine

apt-get install dhcp3-server

nano /etc/default/dhcp3-server

INTERFACES="eth0"

Alt + F2

gksudo gedit

go to /etc/dhcp3/dhcpd.conf

option domain-name "sourav.com";
option domain-name-servers souravubuntu.sourav.com;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.10.255;
option routers 192.168.10.201;


default-lease-time 600;
max-lease-time 7200;

subnet 192.168.10.0
netmask 255.255.255.0
{
 range 192.168.10.190 192.168.10.195;

}

/etc/init.d/dhcp3-server restart


On the linux Client machine

nano /etc/network/interfaces

auto lo

iface lo inet loopback

save the file

go to terminal

 sudo dhclient

(you will see the full DORA process)



No comments:

Post a Comment