Results 1 to 6 of 6

Thread: How to Install and Configure DHCP Server in Ubuntu Server

  1. #1
    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.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    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.

  3. #3
    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    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.

  5. #5
    Join Date
    Apr 2008
    Posts
    3,522

    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.

  6. #6
    Join Date
    Apr 2008
    Posts
    3,295

    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.

Similar Threads

  1. How to Install DHCP server on Windows Server 2008
    By Elizabeth Allen in forum Small Business Server
    Replies: 2
    Last Post: 24-01-2011, 04:52 AM
  2. How to Configure LAN without DHCP server
    By Caiden in forum Networking & Security
    Replies: 4
    Last Post: 30-01-2010, 04:54 AM
  3. Replies: 3
    Last Post: 11-09-2009, 10:24 AM
  4. How to configure a DHCP server on a router
    By Tanvir in forum Networking & Security
    Replies: 3
    Last Post: 27-04-2009, 08:01 PM
  5. Server 2003. Problem: How to configure DHCP and PXE
    By Matias Hohl in forum Windows Server Help
    Replies: 5
    Last Post: 04-02-2008, 06:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,306,908.57412 seconds with 17 queries