Renew an IP on Linux

Solved
fiston -  
brupala Posted messages 111936 Registration date   Status Membre Last intervention   -
Hello,

I would like to know how to renew an IP address in Linux (I am using Ubuntu)

Thank you very much

10 réponses

red-0ne
 

@pampelline:
killall -HUP dhcpcd (killall in lowercase)
in your console type:
sudo dhclient -r eth0
-if your network card is called eth0, otherwise replace eth0 with the name of your card.
-this command is equivalent to IPCONFIG /RELEASE.
-you enter your password or your root password if one of them is requested.
sudo dhclient eth0
-if your network card is called eth0 otherwise replace eth0 with the name of your card.
-this command is equivalent to IPCONFIG /RENEW.
-you enter your password or your root password if one of them is requested.

The commands must be typed in a terminal of course

That's it, I think that's all :)

39
love dr
 
C'est gentil, merci.
1
brupala Posted messages 111936 Registration date   Status Membre Last intervention   14 420
 
perfect :-)
0