How to Release and Renew Your IP Address via Ubuntu Terminal CodeUnit 25 APR 2011

ifconfig is the go to command when you want to view anything related to your Internet or network connections on your Linux box. To view the details of the various network adaptors currently visible, simply run:


This will feed you back details about your available network adapters, MAC addresses, assigned IP, etc. Note the network adapter eth0. This is the default network adapter if you are connected via normal network cable.

Do release your currently assigned IP address, simply run:

sudo ifconfig eth0 down

This will shut down the eth0 interface and subsequently releases the IP in the process. To now renew your IP, run:

sudo ifconfig eth0 up

Done. If you re-run ifconfig you’ll see the new IP address. Useful if you want to release renew your IP without rebooting the whole machine!


Related Posts:

About Craig Lotter

South African software architect and developer at Touchwork. Husband to a cupcake baker and father to two little girls. I don't have time for myself any more.

  • Assuming its a windows laptop: Go to start, then run and type cmd. Then type: ipconfig /release and wait. Then type: ipconfig /renewThat will release your current IP address and get a new one.

  • Thanks for a quick fix after having to restore ubuntu 11.10 after upgrade to 12.04 crashed.
    Will go again with 12.04 soon ..

  • brazen

    bull shit, doesn’t work.

    i had to reboot to change the static ip i already had for the machine.

    • Worked for me back then, so the post stays up.