DHCP server configuration in RedHat Enterprise Linux

Posted: 18 Sep 2018 in LINUX
Tags: ,

DHCP Server configuration in Redhat Enterprise Linux. In this tutorial we will learn how to configure DHCP Server on Linux.Then we will see how dhcp client machine will receive ip address from DHCP server.

Subnet and netmask should be

Gateway Should be

DNS Sever Should be

Domain Name will be xyz.com

Range from

DNS Configuration on Linux.
NIS Server Configuration on Linux.
Apache Web server Configuration on Linux.

So let’s assign IP Address, default  Gateway IP and domain Name and range as we have decided above.

dhcp server in rhel5

Step 1: Assign a Static IP Address on Linux DHCP Server using setup command.

#setupnetwork configuration
dhcp serverdhcp server

Step 2: after We assigned IP Address and netmask on DHCP Machine we must restart the network service using below command :

service dhcpd restartStep 3: Install DHCP Server Package

#yum install dhcp* -y


Step 4: Create DHCP Configuration File.

  We will create dhcp server configuration file with the help of bydefault file which is inside /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample and copy this file content to /etc/dhcpd.conf

Step 4: Configure DHCP Server with IP Address, Gateway IP,domain name as we have decided above:

dhcp configuration file

Step 5: restart the dhcp service

#service dhcpd restart

#chkconfig dhcpd on

Step 6: Now Test DHCP

To test DHCP properly configured or not go to another machine which is in my case is a windowsXP machine and select DHCP option to get ip address from DHCP server.

dhcp clientAs you can clearly see My WindowsXP Machine has get the IP Address and Gateway IP From Linux Machine which is my DHCP Server. You must know how to setup proper network setup in virtualbox.

VirtualBox Network Configuration settings.

windows xp virtualbox setting
Virtual-box Network Settings For DHCP Server Linux Machine:

Linux server network setting

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.