Refreshing IP address


Results 1 to 5 of 5

Thread: Refreshing IP address

  1. #1
    Join Date
    Jan 2005
    Posts
    229

    Refreshing IP address

    I wanted to know the command to refresh my IP address after I unplug my system from one network cable and plug in another.
    In windows i do a 'ipconfig /renew' for this, what is the Linux equivlalent command for this?
    The Problem is Choice.

  2. #2
    Join Date
    Sep 2002
    Location
    Harlow, UK
    Posts
    1,788
    /etc/initrc.d/networking restart

    What distro are you using?
    If you have to ask why you want to install Linux, then perhaps you shouldn't.
    -- Michael D. Watts (Gone but never forgotten)

    Linux is not Windows | Posting Guidelines

    Code Monkey (YouTube)

  3. #3
    Join Date
    Jan 2005
    Posts
    229
    RHL9.0
    But isn't there a commonm command for this?
    The Problem is Choice.

  4. #4
    Join Date
    Sep 2002
    Location
    Harlow, UK
    Posts
    1,788
    Some distro's call things different names, have them in different places etc.

    You can also try:

    ifdown ethX, ifup ethX
    or
    ifconfig ethX down, ifconfig ethX up
    Last edited by deathadder; 09-11-2005 at 09:58 AM.
    If you have to ask why you want to install Linux, then perhaps you shouldn't.
    -- Michael D. Watts (Gone but never forgotten)

    Linux is not Windows | Posting Guidelines

    Code Monkey (YouTube)

  5. #5
    Join Date
    Jan 2004
    Location
    boston, mass USA
    Posts
    1,878
    also try :

    dhclient ethx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •