• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

How to install and configure DHCP server on RHEL 5

January 19, 2011 by Sharad Chhetri Leave a Comment

Dynamic Host Configuration Protocol (DHCP) is a client/server protocol helps to assign ip address automatically and dynamically to client machine.In this post we will learn how to install and configure DHCP server in RHEL 5.

Note: DHCP runs on UDP port 67 for the DHCP serve and UDP port 68 for the DHCP client machines.

Steps to install and configure DHCP server

(1) Install DHCP Package :

yum install dhcpd (in Redhat based OS)

(2) Edit file /etc/dhcpd.conf:

vi /etc/dhcpd.conf

(3) Configure /etc/dhcpd.conf file:

Paste given below contents in /etc/dhcpd.conf file and save it

ddns-update-style interim;
ignore client-updates;

subnet 10.1.1.0 netmask 255.255.255.0 {
range 10.1.1.66 10.1.1.199;

# --- default gateway
option routers 10.1.1.1;
option subnet-mask 255.255.255.0;
option ip-forwarding off;
#option nis-domain "domain.org";
#option domain-name "domain.org";
option domain-name-servers 222.x.x.x, 222.y.y.y;
option broadcast-address 10.255.255.255;
#option time-offset 39600; # Eastern Standard Time

#option netbios-name-servers 10.1.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
option netbios-node-type 8;

default-lease-time 1209600;
max-lease-time 1209600;

}

(4) Then restart the dhcpd service:

service dhcpd restart

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Configure ethernet to get IP address from DHCP in Ubuntu and Debian
  2. Install and configure Varnish Cache server on CentOS/RHEL 6.x
  3. Install and configure transparent squid proxy server : RHEL/CentOS 6.x
  4. How to configure FTP server in CentOS 6.3 – vsftpd server
  5. How to set DHCP offered ip address to particular ethernet in freebsd
  6. linux release renew dhcp assigned ip address
  7. How to install and configure samba server in CentOS 6.3
  8. How to install and configure FTP server in Ubuntu 12.04 LTS
  9. How to install and configure Secure FTP server in Ubuntu 12.04 LTS
  10. Install and configure rsyslog Centralized logging server in CentOS 6.5

Filed Under: Linux Tagged With: DHCP Server

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

How to empty Trash through command line in Ubuntu

master admin password openerp 7.x

Could not find make anywhere!!! Please edit the config section to include the path to make. at ./install.pl line 2101

Print double hyphen sign simultaneously in post of Octopress

Yum Error database disk image is malformed

convert space into new line using sed command

How to change smtp port number 25 in postfix

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy