DHCP Server:

INTRODUCTION:

DHCP (Dynamic Host Configuration Protocol):

  • Automatically provide IP Address setting to the computers in a network.
  • Port no. 67 - for DHCP Server
  • Port no. 68 - for DHCP Client


CONFIGURATION:

DHCP Server:

# yum   install  *dhcp*

 

When you install dhcp package, it creates a dhcp configuration file (dhcpd.conf) in /etc folder, which is by default empty. Now either you type complete configuration in this file (dhcpd.conf) or just copy dhcp sample file (dhcpd.conf.sample) which is available in /usr/share/doc/dhcp-3.0.5/ as a dhcpd.conf in /etc.

 

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

Once you have copied /usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample in /etc/dhcpd.conf, modify this configuration setting according to your network.

 

Note: Coping content from sample file is optional.You can always enter you complete setting in /etc/dhcpd.conf

 

# vim /etc/dhcpd.conf

 

ddns-updates on;
ddns-domainname "wtuto.com";
option ntp-servers 192.168.1.2;
ddns-update-style interim;
allow unknown-clients;
default-lease-time 86400;
max-lease-time 172800;

option domain-name "wtuto.com";
option domain-name-servers 192.168.1.111, 20.56.25.54;
option netbios-name-servers 192.168.1.2;
option netbios-dd-server 192.168.1.2;
option netbios-node-type 8;

subnet 192.168.1.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.1.50 192.168.1.150;
range 192.168.1.151 192.168.1.254;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
allow unknown-clients;
}

 

service dhcpd start

 

DHCP Client:

Configure clients to Automatic Obtain IP address. 

 

 

 

 

 

 

 
Connect With Us
Instant Query
Your Name :

Email Address :

Message :