Ubuntu Linux Release an IP Address ( DHCP IP )

How can I release an IP in Ubuntu Linux using command line options?

You need to simply type the following command. First, explicitly releases the current lease, and once the lease has been released, get the new IP:

sudo dhclient -r
sudo dhclient

Open a command-line terminal (select Applications > Accessories > Terminal), and then type:

sudo dhclient -r
sudo dhclient eth0

The above will release the eth0 interface IP and assigned it again. For a wireless interface called wlan0, try:

sudo dhclient -r
sudo dhclient wlan0
🐧 If you liked this page, please support my work on Patreon or with a donation.
🐧 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
1 comment… add one
  • Ganesh Aug 9, 2012 @ 5:48

    Hi Gays,

    Thanks for suggetion….

Leave a Reply

Your email address will not be published. Required fields are marked *

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