DHCP
DYNAMIC HOST CONFIGURATION
1. Dynamic Host
Configuration Protocol.
2. It is used to
assign the automatic IP Address.
3. When DHCP
provides the IP Address, that process is called the DORA process.
4. DORA stands for
Discover Offers Reverse Acknowledgement.
5. For
configuration, “dhcpd” file is used in Linux
POOL: poolname
192.168.0.2
192.168.0.3
192.168.0.4
192.168.0.5
6. If we want to
assign a particular IP to a particular device then we can do it via RESERVATION
concept in DHCP.
7. Whoever is
having a strong health get the first IP from pool and other devices getting IPs
from same range.
8. If device is
restarted and getting IP afterwards then it might obtain other range IP.
INSTALLATION
& CONFIGURATION
1. rpm -qa | grep
dhcp
2. vim
/etc/dhcp/dhcpd.conf
(Initially, this file is empty.)
3. Copy content
from sample file.
cp
/usr/share/doc/dhcp*/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
4. Edit Configuration
file.
vim /etc/dhcp/dhcpd.conf
subnet
<NETWORK-RANGE>
range <STARTING
IP> <ENDING IP>
5. Start the
service.
chkconfig dhcpd on
service dhcpd start
service dhcpd status
6. Test the
server.
a. In Linux:
- Change Network
Configuration
- Set Automatic
DHCP (check with ‘setup’ command)
b. In Windows:
ipconfig /release
ipconfig /renew
IP
RESERVATION
1. Make changes in
Configuration File.
vim /etc/dhcp/dhcpd.conf
Hardware ethernet
“<MAC ADDRESS>”
Fixed Address
“<IP-FROM-DHCP-POOL>”
2. Restart
Service.
service dhcpd restart
Comments
Post a Comment