0% found this document useful (0 votes)
40 views

DHCP Server

This document provides instructions for setting up a DHCP server to dynamically allocate IP addresses to hosts on a network. It describes installing the DHCP package, copying and editing the DHCP configuration file to define IP ranges, lease times, and static IP assignments for specific hostnames. It also explains how to enable and manage the DHCP service.

Uploaded by

Sathish Dayalan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views

DHCP Server

This document provides instructions for setting up a DHCP server to dynamically allocate IP addresses to hosts on a network. It describes installing the DHCP package, copying and editing the DHCP configuration file to define IP ranges, lease times, and static IP assignments for specific hostnames. It also explains how to enable and manage the DHCP service.

Uploaded by

Sathish Dayalan
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

DHCP SERVER

Dynamic Host Configuration Protocol

This server is used to allocate the IP ADDRESS dynamically for the hosts connected to this server

PACKAGE REQUIRED : dhcp

yum list dhcp

IF THE RPM IS NOT INSTALLED THEN USING YUM TO INSTALL

yum install dhcp

STEP 1: Copy the sample file and rename it

cd /usr/share/doc/dhcp-3.0.1/
cp dhcpd.conf.sample /etc/dhcpd.conf

STEP 2: Edit the configuration file as follows

vi /etc/dhcpd.conf

option routers 192.168.0.254;


option subnet-mask 255.255.255.0;

option domain-name "linux.com";


option domain-name-servers 192.168.0.254;

if we want to allocate IP dynamically then do the following:

range dynamic-bootp 192.168.0.200 192.168.0.225;


default-lease-time 21600;
max-lease-time 43200;
if we want to specify a particular HOSTNAME should have to assign a same IP then do the following:

host station201 {
next-server station201.linux.com;
hardware ethernet 00:50:FC:2A:AB:9D;
fixed-address 192.168.0.201;
}
:wq
STEP 3: To enable the services
service dhcpd start/restart/reload
chkconfig dhcpd on

You might also like