Linux Quick Tip: Renew a machine’s DHCP lease with dhclient
Author: willem In: linux, tips & tricks, unixDHCP allows machines on an IP-based network to automatically obtain configuration information such as IP addresses, subnet masks, router addresses, etc.
If a machine is connected to a network and has received the above-mentioned configuration settings but is unable to access other machines or the Internet, you might need to renew its DHCP lease.
To do this, open a Terminal window and enter this command to remove the current configuration settings:
sudo dhclient -r
… followed by this command to renew them:
sudo dhclientIf the machine is still unable to connect, you can try disabling and re-enabling the network interface:
sudo ifdown eth0 sudo ifup eth0
… or restarting the network service (try either of the commands below):
sudo /etc/init.d/network restart sudo /etc/init.d/networking restart
Related posts:
- Ubuntu Linux Quick Tip - Mount a Samba (Windows) file share to a folder
- Configuring a Vodafone 3G modem on Ubuntu Linux 9.04 (Jaunty Jackalope)
- Checking which processes are accessing the Internet on a Unix machine
- Darkstat: UNIX Packet-sniffing daemon
- Checking your internal and external IP Addresses on a Unix machine
Like this post? Subscribe to the Geekology RSS 2.0 feed!












Leave a reply