Results 1 to 3 of 3

Thread: Releasing a DHCP address on Ubuntu 12.04?

  1. #1
    Join Date
    Apr 2012
    Beans
    7

    Releasing a DHCP address on Ubuntu 12.04?

    Here's an odd question: How do you release a DHCP address in Ubuntu 12.04?

    I had some performance issues with my Internet connection this morning, so I hooked my Ubuntu laptop for some quick diagnostics. Unfortunately, my ISP only assigns one IP address at a time via DHCP. To get my router back online, I'd either have to manually release the DHCP lease from my Ubuntu laptop, or wait several hours for the lease to expire.

    I figured it would be as simple as going to Network Manager and disconnecting my Wired Connection before I physically unplug the cable, but while that does bring down the interface, it doesn't release the DHCP lease. I also tried running sudo dhclient -r, but that doesn't do anything.

    So.... yeah. Now what?

  2. #2
    Join Date
    Jan 2013
    Beans
    1

    Re: Releasing a DHCP address on Ubuntu 12.04?

    Basically it's all spelled out in the Ubuntu doc for 12.04:

    https://help.ubuntu.com/12.04/server...iguration.html

  3. #3
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Releasing a DHCP address on Ubuntu 12.04?

    Hello

    If you open a terminal and run ifconfig and see no IPv4 address in there then the interface has dropped the IPV4 and your ISP is marking the address as used, I dont think there is a lot you can do about that,

    If still have that IP on your interface then I would recommend opening two terminal windows,
    in one run a trace

    Code:
    tcpdump -vvv -i any -s 1600 port bootps or port bootpc
    In the other window do your dhclient command as that *should* work.
    Looking at the trace you will see if the IP is being relinquished.
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

Bookmarks

Posting Permissions

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