Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to Install and Configure DHCP Server in Ubuntu Server

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 10-02-2010
Member
 
Join Date: Feb 2010
Posts: 533
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.

Reply With Quote
  #2  
Old 10-02-2010
Member
 
Join Date: Jan 2008
Posts: 3,382
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.
Reply With Quote
  #3  
Old 10-02-2010
Member
 
Join Date: May 2008
Posts: 4,085
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.
Reply With Quote
  #4  
Old 10-02-2010
Member
 
Join Date: Apr 2008
Posts: 3,266
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 line
Code:

INTERFACES=”eth0″
You need to replace with the following line
Code:
INTERFACES=”eth1″
Save and exit.
Reply With Quote
  #5  
Old 10-02-2010
Member
 
Join Date: Apr 2008
Posts: 3,516
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.
Reply With Quote
  #6  
Old 10-02-2010
Member
 
Join Date: Apr 2008
Posts: 3,292
How to Install and Configure DHCP Server in Ubuntu Server

You can find DHCP server IP address by following commands

Code:
sudo dhclient
or

Code:
tail -n 15 /var/lib/dhcp3/dhclient.*.leases
Best of luck.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Install and Configure DHCP Server in Ubuntu Server"
Thread Thread Starter Forum Replies Last Post
How to Install DHCP server on Windows Server 2008 Elizabeth Allen Small Business Server 2 24-01-2011 03:52 AM
How to Configure LAN without DHCP server Caiden Networking & Security 4 30-01-2010 03:54 AM
How to configure 2 DHCP server using 2 switches and only 1 DSL router? RasMus Networking & Security 3 11-09-2009 10:24 AM
How to configure a DHCP server on a router Tanvir Networking & Security 3 27-04-2009 08:01 PM
Server 2003. Problem: How to configure DHCP and PXE Matias Hohl Windows Server Help 5 04-02-2008 05:58 PM


All times are GMT +5.5. The time now is 06:25 PM.