Ubuntu Linux Renew DHCP

How do I renew a dhcp assigned IP address under Ubuntu Linux desktop or Laptop systems?

You need to use “Dynamic Host Configuration Protocol” client called dhclient to renew IP address under Ubuntu Linux. Open the terminal and type the following command to release current address:
$ sudo dhclient -r
You can also ask for new IP address (e.g., for wlan0 get new IP address), enter:
$ sudo dhclient wlan0
OR
$ sudo dhclient eth0
Another option, enter:
$ sudo dhclient -r && sudo dhclient

ADVERTISEMENTS

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
2 comments… add one
  • asdfa Nov 16, 2011 @ 4:41

    At my university doing this reassigns me the same ip. And I have a stupid conflict with a damn printer and I cant change that damn ip !!!!

  • Lorenz Leitner May 29, 2015 @ 10:45

    Thank you, the last command worked for me.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.