Configuring DHCP on Linux RHEL 7
1) Install the DHCP packages
#yum install dhcp*
2) To view the sample conf file
#vim /usr/share/doc/dhcp*/dhcpd.conf.example
3) Configuring DHCP (get the domain and range details prior)
#vim /etc/dhcp/dhcpd.conf
subnet 174.166.0.0 netmask 255.255.255.0 {
range 174.166.0.10 174.166.0.90;
option domain-name-servers ns1.shakthi.com;
option domain-name shakthi.com;
option routers 174.166.0.1;
default-lease-time 600;
max-lease-time 7200;
}
4) Restart and enable the Service.
#systemctl restart httpd
#systemctl enable httpd
1) Install the DHCP packages
#yum install dhcp*
2) To view the sample conf file
#vim /usr/share/doc/dhcp*/dhcpd.conf.example
3) Configuring DHCP (get the domain and range details prior)
#vim /etc/dhcp/dhcpd.conf
subnet 174.166.0.0 netmask 255.255.255.0 {
range 174.166.0.10 174.166.0.90;
option domain-name-servers ns1.shakthi.com;
option domain-name shakthi.com;
option routers 174.166.0.1;
default-lease-time 600;
max-lease-time 7200;
}
4) Restart and enable the Service.
#systemctl restart httpd
#systemctl enable httpd
No comments:
Post a Comment