How to Install and Configure DHCP Server in Ubuntu Server
Hi all,
I am working in as a network admin in one company. We have a Ubunto server in my office. I want to install DHCP server in Ubunto server. A DHCP Server assigns IP addresses to client computers. This is very often used in enterprise networks to reduce configuration efforts. All IP addresses of all computers are stored in a database that resides on a server machine. Please advise me to how install and configure DHCP server in ubuntu. Thanks.
Re: How to Install and Configure DHCP Server in Ubuntu Server
A DHCP server can provide configuration settings using Address Pool methods. This method involve defining a pool of IP deal with from which DHCP clients are supplied their configuration assets dynamically and on a fist come first serve basis. When a DHCP client is no longer on the network for a particular period, the configuration is expired and free back to the address pool for use by other DHCP Clients. Check this method and reply.
Re: How to Install and Configure DHCP Server in Ubuntu Server
You can also try the method that is based on MAC Address. This method require using DHCP to recognize the single hardware address of each network card connected to the network and then repeatedly provide a steady configuration each time the DHCP client makes a demand to the DHCP server using that network device. It is also the fast and convenient method. Try this and reply.
How to Install and Configure DHCP Server in Ubuntu Server
If you want to install DHCP server in ubuntu, type this command on ubuntu
Code:
sudo apt-get install dhcp3-server
If you have two network cards in your ubuntu server you require to select which interface you would like to use for DHCP server listening.By default it listens to eth0.You need to change this by editing /etc/default/dhcp3-server file. Type the command
Code:
sudo vi /etc/default/dhcp3-server
and find this lineYou need to replace with the following line
Save and exit.
How to Install and Configure DHCP Server in Ubuntu Server
If you are using address pool method, then you need to change the following sections in /etc/dhcp3/dhcpd.conf file
Code:
default-lease-time 600;
max-lease-time 7200;option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name “yourdomainname.com”;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.200;
}
Save and exit this file.
How to Install and Configure DHCP Server in Ubuntu Server
You can find DHCP server IP address by following commands
or
Code:
tail -n 15 /var/lib/dhcp3/dhclient.*.leases
Best of luck.