Wednesday 10 April 2013

thumbnail

How to install DHCP server in ubuntu-12.04 server.

How to install DHCP server in ubuntu-12.04 server.




Before installing DHCP server in ubuntu-12.04 server you have to disable the dhcp-server  in the router.

1.For installing DHCP server in ubuntu-12.04 server login to the server.



2. Now Install the packages .

$ sudo apt-get install dhcp3-server -y


3.   After that you have to configure the dhcp server.

$ sudo vim /etc/dhcp/dhcpd.conf

# line 16: specify domain name
option domain-name"192.168.100.2";
# line 17: specify nameserver's hostname or IP address
option domain-name-servers 192.168.100.2;
# line 24: uncomment
authoritative;
# add at the last
# specify network address and subnet-mask
subnet 192.168.100.0 netmask 255.255.255.0 {
# specify default gateway
option routers 192.168.100.1;
# specify subnet-mask
option subnet-mask 255.255.255.0;
# specify the range of leased IP address
range dynamic-bootp 192.168.100.200 192.168.100.254;
}


After editing save the file and exit.

4. Now try to restart the dhcp server.

$ sudo service isc-dhcp-server restart

5. Now on the client machine configure it to Automatic DHCP in linux .

6. In window machine you go to network and sharing center and click on manager network Adapter on the left hand side.  Right click on local area connection and click on  properties and select ipv4 and select automatic ip address assignment.





 That's it enjoy the dhcp server.
   

Subscribe by Email

Follow Updates Articles from This Blog via Email