The Schworak Site | Log In | Up One Level

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:

Comments

<< Automatically boot when a RAID is degraded
All content on this site is copyright ©2004-2024 and is not to be reproduced without prior permission.