Configure Linux DHCP client ( dhclient ) to persistently look for an IP address lease
Q. I've HP Laptop installed with CentOS 5 workstation operating system. How can I configure Linux dhclient command to continuously requests an IP lease until one is granted by DHCP Server / Router?
A. You need to set the PERSISTENT_DHCLIENT option by editing Ethernet configuration file. This option is turned off by default.
Login as the root user
Open /etc/sysconfig/network-scripts/ifcfg-eth0 file to set eth0 to persistently look for an IP address lease:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
Append line PERSISTENT_DHCLIENT=1, at the end configuration should look as follows:
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=dhcp
PERSISTENT_DHCLIENT=1
Save and close the file. Restart networking service or reboot laptop / desktop to test the changes:
# /etc/init.d/networking restart
Please note that your network switches and other protocol may need to configure properly to work with this option.
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- Setting Up a CentOS / Red Hat Linux DHCP Client
- Configuring Linux Static DHCP Clients by Sending Host Name
- Linux Force DHCP client (dhclient) to renew ip address
- How do I find out my DHCP server address?
- Howto Red hat enterprise Linux 5 configure the network card
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: , dhcp howto, dhcp ip addresses, how to configure dhcp, linux dhcp eth0, linux dhcp gateway, linux dhcp ifconfig, linux dhcp persistent, linux dhcp settings, linux dhcp table, PERSISTENT_DHCLIENT=1



Recent Comments
Today ~ 32 Comments
Yesterday ~ 1 Comment
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments