X
X
The Best Tech Newsletter Anywhere

Join 250,000 subscribers and get a daily digest of news, geek trivia, and our feature articles.

Renew DHCP Address in Linux

This page will explain how to renew your DHCP address when using Linux.

Usage

Type the following command from the terminal prompt. If you are using a distro other than Ubuntu, make sure that your user account has sudo permissions, otherwise you might have to use su to switch to root before entering the command.

sudo dhclient -r

Output:

Internet Systems Consortium DHCP Client V3.0.5
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth0/00:0c:29:3d:6e:71
Sending on   LPF/eth0/00:0c:29:3d:6e:71
Sending on   Socket/fallback

You can restart networking if you are having problems by using the following command:

sudo /etc/init.d/networking restart
Lowell Heddings Lowell Heddings
Lowell is the founder and CEO of How-To Geek. He’s been running the show since creating the site back in 2006. Over the last decade, Lowell has personally written more than 1000 articles which have been viewed by over 250 million people. Prior to starting How-To Geek, Lowell spent 15 years working in IT doing consulting, cybersecurity, database management, and programming work.
Read Full Bio »

The above article may contain affiliate links, which help support How-To Geek.
How-To Geek is where you turn when you want experts to explain technology. Since we launched in 2006, our articles have been read more than 1 billion times. Want to know more?

x

The Best Tech Newsletter Anywhere

Join 250,000 subscribers and get a daily digest of news, comics, trivia, reviews, and more.