Re: ip changed after sometime using dhcp

From: Jacob Anawalt (jacob_at_cachevalley.com)
Date: 08/20/03

  • Next message: Gruetzner: "ALSA won't make"
    Date: Tue, 19 Aug 2003 22:16:29 -0600
    To: debian-user@lists.debian.org
    
    

    jqdkf@army.com wrote:

    >Hi,
    >
    >I'm using DHCP to connect to the network, and I use ssh to contral
    >another machine. The problem is, my ip address is always changing. This
    >makes my ssh die. I wonder if it is because of my configure file is not
    >correct or is the common way of DHCP. By the way, I have never changed
    >the default config file. I'm using dhclient v3.0.1 under sarge.
    >Thanks in advance.
    >
    >Regards
    >
    >
    Since you've not changed the config file, the short leases are most
    likely comming from the server. You could ask them if the length of the
    lease you are getting is what they intended, and maybe provide some
    reasons for increasing the lease. I would be frustrated having the lease
    expire while the system was still running (unless I'm running 24 hours a
    day, in which case I'm glad when it doesn't expire). If it's more often
    than that and the IT people are at all concerned about keeping track of
    who had what address when (for looking into trouble reports) they must
    have a large log/database.

    You are saying that mid-session your connections from your DHCP'd
    workstation to the remote system get dropped because the ip address
    changes, right?

    Maybe there's a vpn solution that could work for you. I know that
    usually cycling a network interface (ifdown/ifup) doesn't drop ssh
    connections when the ip addresses on each end stay the same. Since the
    vpn ip addresses can be configured to be the same each time the tunnel
    is brought up, having that interface cycle (if needed) when the DHCP
    lease is renewed might work for you.

    I'm running dhclient from the dhcp-client 2.0pl5-15. It has a file
    /etc/dhclient-script which is suppose to execute
    /etc/dhclient-exit-hooks if that script exists. It seems that the hooks
    to send an email or cycle a vpn tunnel could be written into
    dhclient-exit-hooks for the RENEW, REBIND, BOUND and REBOOT situations.
    Hopefully dhcp-client 3.x has these features as well.

    I haven't looked into doing any of this since my lease has lasted over a
    year.

    Good luck with the setup. I hope there's a vpn or some other virtual
    interface or easier solution that works for you.

    Jacob
    jacob@cachevalley.com

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Gruetzner: "ALSA won't make"

    Relevant Pages

    • Re: DHCP on Solaris: How to renew lease when VPN is active
      ... The problem is that the IP lease is NOT being renewed before the ... If I reboot the machine, DHCP works, an IP is obtained. ... I start VPN in the following way. ... If I now issue a DHCP extend command, ...
      (comp.unix.solaris)
    • Re: IP conflict in my network
      ... If a lease was to run out while a pc was turned off and then ... Below is a url to dhcp guide ... and use a software VPN to connect to work. ... turn off the computer and the router (Linksys BEFSX41, ...
      (comp.security.firewalls)
    • Re: DHCP on Solaris: How to renew lease when VPN is active
      ... > The problem is that the IP lease is NOT being renewed before the ... If I reboot the machine, DHCP works, an IP is obtained. ... I start VPN in the following way. ... > If I now issue a DHCP extend command, ...
      (comp.unix.solaris)
    • Re: DHCP Address Lease Pools fills up max allocation
      ... I understand that you get many lease ... this is mostly cause by you enable multiple VPN ... Restart the SBS to take effect. ... Please open Routing and Remote Access console on SBS thru run command ...
      (microsoft.public.windows.server.sbs)
    • Re: dhclient in 6.0
      ... Not really, no, except when DHCP options appear to turn off IPv4LL, or ... I think it's pretty obvious you have a rogue client ... if there was a prior lease matching the ... Ironically, ISC DHCP was built from this mindset, from what I read. ...
      (freebsd-stable)