+3 votes
575 views
How to Renew IP with DHCP on Linux

in Linux / Unix by (552k points)
reopened by | 575 views

2 Answers

+5 votes
Best answer

How to renew ip address in Ubuntu?

How to renew ip address in Ubuntu?

It is common for novice users in Ubuntu to have difficulties with basic tasks and sometimes they do not easily find a solution. For this reason, in TechnoWikis we dedicate, from time to time, an article to this type of tasks.

If you have a computer connected to a local network and receive its IP address, automatically, from a DHCP server, today we will see how you can get the assigned address is disabled. Actually, it's as simple as opening a Console window ( Applications> Accessories> Terminal ) and entering the following command:

sudo dhclient -r

You can also renew the IP address by requesting a new one from the DHCP server. To get it, just go back to the console and write:

sudo dhclient eth0

assuming eth0 is your Ethernet interface. If it's your default network card, you can skip this argument and, if you want to renew the IP of the network card, you could write something like this:

sudo dhclient wlan0

I hope you find it useful.


by (552k points)
+4 votes

Normally we need to renew the IP address of our machine (as long as we work with DHCPtechnology , Dynamic Host Configuration Protocol acronyms, dynamic IP address assignment) to avoid conflicts with the IP addresses of other machines or for a thousand reasons why we need to renew the IP address, in computers with windows terminals there is a command by all known that is:

ipconfig / renew

or with all at the end

ipconfig / renew all

But the "problem" comes in linux distributions, surely we have all tried an ifconfig (command in linux to see the network interfaces and IP addresses of our machine) / renew, but no, this does not work well, to renew an IP on command to use is specific to DHCP is dhclient, we must launch from a superuser with sudo

sudo dhclient

is equivalent to requesting the server that manages the DHCP of our network a request for IP address renewal, come on, equivalent to an ipconfig / renew of windows.


by (552k points)

Related questions

+5 votes
1 answer
asked Oct 27, 2019 in Linux / Unix by backtothefuture (552k points) | 829 views
+3 votes
1 answer
+5 votes
1 answer
+5 votes
1 answer
asked Nov 14, 2019 in Linux / Unix by backtothefuture (552k points) | 268 views
+5 votes
1 answer
asked Jun 12, 2020 in Linux / Unix by backtothefuture (552k points) | 346 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users