Find the answer to your Linux question:
Results 1 to 2 of 2
I know how to do this in windows. From the cmd promt you type IPCONFIG /RELEASE (clears any net info gained through DHCP) IPCONFIG /RENEW (performs a new dhcp request) ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Location
    Ft. Lewis
    Posts
    10

    How do I clear and re-execute a dhcp request


    I know how to do this in windows. From the cmd promt you type
    IPCONFIG /RELEASE (clears any net info gained through DHCP)
    IPCONFIG /RENEW (performs a new dhcp request)

    I ask this because I switch between 2 different dhcp network and usually don't turn the laptop off when going from 1 to the other. Its only like a 5 minute walk. So does slack have a similar way to do this, I tried reading the man page on dhcpd but no matter what I do I just get a list of copyright information or something similar. Not to mention there are no switches listed in the man page to release or renew a new dhcp request.

  2. #2
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Run one of these on your interface (assuming eth0 in the examples):

    Code:
    dhclient eth0
    dhcpcd eth0
    pump eth0
    I put them in the most common order that I've found.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

Posting Permissions

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