Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19

Warning: Function ereg() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 4

Warning: Function split() is deprecated in ..../includes/class_postbit.php(345) : eval()'d code on line 19
force release an IP lease
Results 1 to 7 of 7

Thread: force release an IP lease

Hybrid View

  1. #1
    kyiu
    Guest

    force release an IP lease

    Can I force RH7.3 DHCP client to release (not renew) the IP from the ISP (using cable modem)? If so, how do I do that?

    Ken

  2. #2
    kyiu
    Guest

    Re:force release an IP lease

    > I'm sure Linux has simple commend to do this. May be I didn't make the question clearer, in windows the commends to release an IP is "IPCONFIG /release". Is there one equivalent for Linux?

    Ken

  3. #3
    Spot
    Guest

    Re:force release an IP lease

    It should be as simple as shutting down the network and/or dhcp services. With Redhat, the command is:
    /sbin/service <servicename> stop
    as root or su, of course.

  4. #4
    JimH
    Guest

    Re:force release an IP lease

    If yuou are using dhcpcd, this is from the manpage:

    -k Sends SIGHUP signal to the dhcpcd process that is currently running. If dhcpcd receives SIGHUP it will send DCHP_RELEASE message to the server and destroy dhcpcd cache. In a case dhcpcd receives SIGTERM which is normally used by shutdown(8) when rebooting the system dhcpcd will not send DHCP_RELEASE and will not destroy cache. When system boots dhcpcd will use cache to request the same IP address from DHCP server which was assigned before the system went down

    I can't test this, I am not running dhcp right now.

    Jim H

  5. #5
    kyiu
    Guest

    Re:force release an IP lease

    For sure DHCPCD doesn't releases the IP during normal shutdown. I've done that. The way it works (I think) with my cable ISP, the DHCP server register the MAC address of the NIC when it hands out the IP address on the first request. If it doesn't receive a "RELEASE IP" from the client, this IP will stay in the cache along with the MAC address. When a dhcpcd request comes in again, it compares the MAC of the request to the MAC saved in the cache. It will respone to the request if the MAC address is the same. If I simply shutdown the original machine and plug the cable to another box, it will not get a IP address. I've been calling the helpdesk to reset the connection, it's a pain :P. they do not support Linux. Many Windows users tell me to do the RELEASE first before switching to another computer. Hence for the post.

    Jim, I'm still running RH7.1. It uses PUMP for the dhcpcd. Does it work the same as the DHCPCD? I'm trying to move to a newer version in a different box.

  6. #6
    Aaron_Adams
    Guest

    Re:force release an IP lease

    If the problem is the MAC address, find out the one that is cached and change the MAC address of the interface you are using with ifconfig.

    $ /sbin/ifconfig eth0 hw c0:ff:ee:c0:ff:ee


  7. #7
    JimH
    Guest

    Re:force release an IP lease

    Quote Originally Posted by kyiu
    Jim, I'm still running RH7.1. It uses PUMP for the dhcpcd. Does it work the same as the DHCPCD? I'm trying to move to a newer version in a different box.
    Check out the manpage for pump. From the manpage:

    -r --release Release interface

    Jim H

Similar Threads

  1. Problem with DHCP lease getting full
    By Suhas! in forum Redhat / Fedora
    Replies: 1
    Last Post: 09-01-2007, 06:08 PM
  2. Ssh brute force
    By Outlaw in forum Linux - Software, Applications & Programming
    Replies: 11
    Last Post: 09-11-2004, 07:37 PM
  3. Strike Force 1.75 out now
    By in forum Linux - Software, Applications & Programming
    Replies: 8
    Last Post: 03-12-2002, 12:38 PM
  4. Brute force?
    By in forum Linux - Software, Applications & Programming
    Replies: 13
    Last Post: 02-26-2002, 03:20 AM
  5. Where to get Strike-Force?
    By in forum Linux - Software, Applications & Programming
    Replies: 7
    Last Post: 12-04-2001, 07:38 AM

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
  •