Find the answer to your Linux question:
Results 1 to 4 of 4
Hey Guys, I dual boot slack 12.1 with WinXP. But whenever I log into slack (after restarting from xp) my net connection is never working since XP holds onto the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2006
    Location
    San Jose, CA
    Posts
    67

    IP release and renew in slack


    Hey Guys,

    I dual boot slack 12.1 with WinXP. But whenever I log into slack (after restarting from xp) my net connection is never working since XP holds onto the IP it obtained from my router. Is there a release/renew command in slack? After searching around the net I came across these particular commands

    ifdown eth0
    ifup eth0
    (Another command "pump" was mentioned here in these forums also)

    But whenever I try to issue the following commands (as a su) I get "No such Command" error. I made sure that eth0 is "up". Also doing dhcpcd eth0 just times out.

    Another side query does the lo interface needs to be taken down? Or just let it run.. Any help greatly appreciated.

  2. #2
    Just Joined!
    Join Date
    Jul 2008
    Posts
    2
    use ifconfig
    Code:
    ifconfig eth0 down
    ifconfig eth0 up
    you can also restart all the interfaces with:
    Code:
    sh /etc/rc.d/rc.inet1 restart
    (the commands have to be executed as root)

  3. #3
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,025
    If those commands don't do anything, try this(also as root):
    Code:
    /sbin/ifconfig eth0 down
    /sbin/ifconfig eth0 up
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    May 2006
    Location
    San Jose, CA
    Posts
    67
    If I have it right ifconfig eth0 up/down just brings the interface up or down (start/stop).. doesn't really do much else with it. I tried restarting my interfaces with the following command but that didn't help my case either.
    Code:
    bash-3.1# sh /etc/rc.d/rc.inet1 restart
    Polling for DHCP server on interface eth0:
    No carrier detected on eth0. Reducing DHCP timeout to 10 seconds.
    dhcpcd: MAC address = <mac address here>
    I am able to get an ip through dhcpcd if I wait long enough for the ip assigned to windows to drop.

    Edit: Found my mistake I had declared a different MAC address in my rc.d/inet1.conf .

Posting Permissions

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