Renew an IP on Linux

Solved
fiston -  
brupala Posted messages 111142 Registration date   Status Member 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 answers

  1. 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
    1. love dr
       
      C'est gentil, merci.
      1
    2. brupala Posted messages 111142 Registration date   Status Member Last intervention   14 442
       
      perfect :-)
      0