Renew DHCP IP address on Linux 

Joined:
04/07/2009
Posts:
171

June 16, 2011 11:34:39    Last update: June 16, 2011 11:34:59
Some ways to refresh DHCP on Linux:
  1. To release IP address lease:
    $ sudo dhclient -r
    

    then, to get fresh IP:
    $ sudo dhclient 
    

  2. Use ifdown and ifup:
    $ sudo ifdown eth0
    $ sudo ifup eth0
    

  3. Restart network:
    $ sudo /etc/init.d/network restart 
    

    or,
    $ sudo /etc/init.d/networking restart 
    

Share |
| Comment  | Tags