DHCP Refresh

Discussion in 'Linux, BSD and Other OS's' started by max12590, Jan 26, 2008.

  1. max12590

    max12590 Masterful Geek

    Likes Received:
    51
    Trophy Points:
    0
    Ok, I am wondering if there is a linux command (of course there is, there is a linux command for everything) that will refresh my IP. I want something basically the same as "Repair" in Windows (well, just the renewal of IP, I don't care about clearing caches and such) or ipconfig /release-renew.
     
  2. Addis

    Addis The King

    Likes Received:
    91
    Trophy Points:
    48
    You can do ifdown eth0 and then ifup eth0.
     
  3. max12590

    max12590 Masterful Geek

    Likes Received:
    51
    Trophy Points:
    0
    Ok, thanks.
     
  4. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    On a Debian-based system, you can just do:
    Code:
    /etc/init.d/networking restart
    On Red Hat or derivatives, the following will work:
    Code:
    service network restart
     
  5. max12590

    max12590 Masterful Geek

    Likes Received:
    51
    Trophy Points:
    0
    Ok, and Ubuntu (and consequently Mint) is Debian based, correct?
     
  6. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    Yeah, Mint's based on Ubuntu which is based on Debian. :)
     

Share This Page