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
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.
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 {
option routers 192.168.100.1;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.100.200 192.168.100.254;
# specify default gateway
# specify subnet-mask
# specify the range of leased IP address
}
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.
04:42
Tags :
Ubuntu-12.04
Subscribe by Email
Follow Updates Articles from This Blog via Email
1 Comments
Nice post , Thanks a lot
Reply DeleteDHCP ubuntu