DHCP SERVER CONFIGURATION RHEL 7
DHCP (Dynamic Host Configuration Protocol) is a network protocol used to dynamically assign IP addresses for computers attached to the network.
=> Default Port : 67 (UDP)
=> Configuration File : /etc/dhcp/dhcpd.conf
=> Install dhcp Service on the server
#yum install dhcp*
=> Copy the example file data to the dhcpd.conf file
#cp /usr/share/doc/dhcp-4.2.5/dhcpd.conf.example /etc/dhcp/dhcpd.conf
=> Now Edit configuration file :
#vi /etc/dhcp/dhcpd.conf
=> Comment all the line except the following
authoritative;
=> edit the following details :
#A slightly different .................................., below this line content
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200; (Range of the IP Address for Client Machine)
option routers 192.168.0.1; (Router IP address)
option broadcast-address 192.168.0.255; ( place your broadcast address here)
default-lease-time 600;
max-lease-time 7200;
}
Save and Exit
=> Go to Client Machine and restart the NetworkManager service
#systemctl restart NetworkManager
=> Now you can check Client IP Address
#ifconfig | less
Thank you........................
Comments
Post a Comment
If you have any doubts, Please let me know