linux release renew dhcp assigned ip address

In this post we will read about how to release renew dhcp assigned ip address in linux.
In Windows for releasing and renew of DHCP assigned IP, we use the command
ipconfig /release
ipconfig /renew

How to release the DHCP assigned IP in linux.

The below command will be applied to all interfaces which are getting IP from DHCP server
Note: Here -r means release

sudo dhclient -r

If you want to release the DHCP assigned IP to particular interface like eth0,wlan2 etc

Command Syntax: dhclient -r interface-name

For eg.

sudo dhclient -r eth0

sudo dhclient -r wlan0

After release how to renew DHCP Assigned IP Address

Use the below command to renew for all interfaces

sudo dhclient

For particular interface

Command Syntax: sudo dhclinet interface-name

Example:

sudo dhclient eth0

or

sudo dhclient wlan0

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.