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:
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.
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012
- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop