Release/Renew IP in linux

I was wondering how this works in Linux and found these two methods (in terminal, considering that eth0 is the desired interface):

sudo ifconfig eth0 down
sudo ifconfig eth0 up

or use

sudo dhclient eth0

Found here.

 

Leave a Reply

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