LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to configure DHCP in RHEL 5 (https://www.linuxquestions.org/questions/linux-server-73/how-to-configure-dhcp-in-rhel-5-a-818121/)

srajeshkumar 07-05-2010 01:35 PM

How to configure DHCP in RHEL 5
 
Hi Buddies, I am new to this forum I am here to learn some good technical stuffs and I ope u guys will help me out with it.

Thanks

Rajesh

John VV 07-05-2010 03:40 PM

have you read the red hat doc's ?
https://access.redhat.com/knowledge/docs/manuals/
or called your paid for tech rep ?
if you did not buy RHEL 5 then please use CentOS 5.5

Matir 07-05-2010 09:10 PM

Please clarify if you are looking for help with a specific issue, or just here to introduce yourself.

srajeshkumar 07-06-2010 02:00 AM

Quote:

Originally Posted by John VV (Post 4024561)
have you read the red hat doc's ?
https://access.redhat.com/knowledge/docs/manuals/
or called your paid for tech rep ?
if you did not buy RHEL 5 then please use CentOS 5.5

Tks for the update I am just figuring out the Syntax for the Dhcp configuration in server...

thanks
rajesh

srajeshkumar 07-06-2010 02:02 AM

Quote:

Originally Posted by Matir (Post 4024719)
Please clarify if you are looking for help with a specific issue, or just here to introduce yourself.


Thanks for the reply i am completely new to this platform just figuring out how to configure Dhcp server from step 1

thanks
rajesh.

XavierP 07-15-2010 03:02 PM

In which case, moved to Server

vikas027 07-15-2010 08:59 PM

There is nothing much in configuring DHCP.

1) Install Packages
yum -y install dhcp* ( I am assuming you are using yum)

OR

rpm -Uvh dhcp*.rpm


2) Edit the DHCP config file /etc/dhcpd.conf your way

3) service dhcpd restart

These links will help you out.
http://www.qnx.com/developers/docs/6...hcpd.conf.html
http://www.linuxhomenetworking.com/w...he_DHCP_Server


Give it a shot, try something and post with your problems if any.

For your convenience, this is a sample dhcpd.conf
Code:

subnet 192.168.2.0 netmask 255.255.255.0
{

# --- default gateway
        option routers                        192.168.2.2;
        option subnet-mask                255.255.255.0;


        range  192.168.2.19 192.168.2.26; # Range of IP Addr
        default-lease-time 21600;          # After this time DHCP server will automatically assign new IP
        max-lease-time 43200;

# For reservation of host                  # Assign hostname, IP to a particular MAC
        host vikas                         
        {
                option host-name "vikas.example.com";    # set hostname
                hardware ethernet 00:02:3f:ec:80:cd;
                fixed-address 192.168.2.22;                # This IP can be different than the given range
        }
       
}



All times are GMT -5. The time now is 04:24 PM.