Results 1 to 3 of 3

Thread: DHCP release

  1. #1
    Join Date
    May 2007
    Location
    Washington, DC
    Beans
    97
    Distro
    Ubuntu Development Release

    DHCP release

    My ISP requires that I either call them to break the lease or release my IP address before changing my computer's MAC address (like plugging another computer in).

    How can I tell (K|X|Ed)ubuntu to release the DHCP release when it shuts down, or does this happen automagically?
    This APT has Super Cow Powers.

  2. #2
    Join Date
    Apr 2007
    Location
    Near Albany, NY
    Beans
    763
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: DHCP release

    DHCLIENT is the tool. In a terminal run:

    sudo dhclient -r

    Here is the excerpt from the man page for dhclient

    The client normally doesn’t release the current lease as it is not required by the DHCP protocol. Some cable ISPs require their clients to notify the server if they wish to release an assigned IP address. The -r flag explicitly releases the current lease, and once the lease has been released, the client exits.
    Nils

    My System: 9.04 - Dell Latitude D620, Video: Intel 945GM, Audio: Intel 82801G, Wireless: Intel 3945ABG, Ethernet: Broadcom CM5752, Bluetooth: Toshiba Internal

  3. #3
    Join Date
    May 2007
    Location
    Washington, DC
    Beans
    97
    Distro
    Ubuntu Development Release

    Re: DHCP release

    Quote Originally Posted by NilsE View Post
    sudo dhclient -r
    Thanks!

    Ok, any way to have it do that automagically on poweroff?
    This APT has Super Cow Powers.

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
  •