Hi Ganesh,

Below is a detailed step by step process to to install DHCP on linux

How do I install a DHCP Server?



 For these examples we are using “eth0” and the following:

IP address range: 192.168.0.100 to 192.168.0.200

Subnet Mask: 255.255.255.0

DNS Servers: 202.188.0.133, 202.188.1.5

Domains: tm.net.my

Gateway Address: 192.168.0.1

   1.

   Read How do I add Universe and
Multiverse?<http://www.linuxtopia.org/online_books/system_administration_books/ubuntu_starter_guide/ch02.html#addinguniverse>
   2.

   Install the dhcp3-server package with *Synaptic*(See How do I use
   Synaptic to install
packages?<http://www.linuxtopia.org/online_books/system_administration_books/ubuntu_starter_guide/ch02.html#synaptic-usage>)


    Networking > dhcp3-server

    3.

    sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup
   sudo gedit /etc/default/dhcp3-server

    4.

   Find this line

   ... INTERFACES=""

   5.

   Replace with the following line

   INTERFACES="eth0"

   6.

   Save the edited file (How do I install a DHCP
Server?<http://www.linuxtopia.org/online_books/system_administration_books/ubuntu_starter_guide/ch07s04.html#dhcp3-server_installdhcpserver>
   )
   7.

    sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup
   sudo gedit /etc/dhcp3/dhcpd.conf

    8.

   Find this section

   ...
       # option definitions common to all supported networks...
       option domain-name "example.org";
       option domain-name-servers ns1.example.org, ns2.example.org;

       default-lease-time 600;
       max-lease-time 7200;
   ...

   9.

   Replace with the following lines

   # option definitions common to all supported networks...
   #option domain-name "example.org";
   #option domain-name-servers ns1.example.org, ns2.example.org;

   #default-lease-time 600;
   #max-lease-time 7200;

   10.

   Find this section

   ...
   # A slightly different configuration for an internal subnet.
   #subnet 10.5.5.0 netmask 255.255.255.224 {
   #  range 10.5.5.26 10.5.5.30;
   #  option domain-name-servers ns1.internal.example.org;
   #  option domain-name "internal.example.org";
   #  option routers 10.5.5.1;
   #  option broadcast-address 10.5.5.31;
   #  default-lease-time 600;
   #  max-lease-time 7200;
   #}
   ...

    11.

   Replace with the following lines

   # A slightly different configuration for an internal subnet.
   subnet 192.168.0.0 netmask 255.255.255.0 {
   range 192.168.0.100 192.168.0.200;
   option domain-name-servers 202.188.0.133, 202.188.1.5;
   option domain-name "tm.net.my";
   option routers 192.168.0.1;
   option broadcast-address 192.168.0.255;
   default-lease-time 600;
   max-lease-time 7200;
   }

   12.

   Save the edited file
(sample/dhcpd.conf_installdhcpserver<http://www.linuxtopia.org/online_books/system_administration_books/ubuntu_starter_guide/sample/dhcpd.conf_installdhcpserver>
   )
   13.

    sudo /etc/init.d/dhcp3-server restart


Regards,
Sandeep Mallya


On Wed, Dec 30, 2009 at 9:28 AM, ganesh margabandhu
<[email protected]>wrote:

> I am a nubie on linux and networking in general.
>
> Need to install dhcp on a linux machine so i can get multiple workstations
> to connect to it. I am told to start dhcp3-server but i cant find it
> anywhere in the folders but synaptic has dhcp3-common and dhcp3-client
> installed - is there something i am missing?
>
> Anyone can outline steps to do this right?
>
>


-- 
Regards,
Sandeep Mallya
Secondary email contact: [email protected]
Mob: +919880366871

Reply via email to