Sunday, April 26, 2009

Refresh your IP in Linux

Almost everyone has, at one time or another, needed to refresh their IP address. In operating systems with a nice GUI this is usually the simple work of clicking a button. It turns out to be not much harder in Linux server environments devoid of a GUI. Run these commands:
sudo dhclient -r
sudo dhclient
The first command will release the current IP address. The second command will fetch the new IP address from the DHCP server.

Nice and easy.

2 comments:

  1. Thanks for your information. I have followed your steps then change my ip address.After i have check new ip address from this site ip-details.com

    ReplyDelete