How do I renew or release an IP address in Linux?
There are a couple ways to renew an IP address using the Linux command line.
One way to renew an IP address is to use the dhclient command. This example renews the IP address issued by the DHCP server on your network.
#> dhclient eth0
Alternatly, you can take the network interface offline then bring it back online using the ifconfig command.
#> ifconfig eth0 down
#> ifconfig eth0 up
Both of these examples reset the first network interface. Change eth0 as needed for your system's configuration.
References:
by Glenn J. Schworak
Published: 02/22/2013