Re: DHCP release/renew lease - elegant solution?
On Mon, Oct 20, 2008 at 03:26:39PM +0200, Mel wrote: > On Friday 17 October 2008 23:24:00 Nerius Landys wrote: > > > I have an always-on FreeBSD box which is connected to the internet. > > My ISP is some cable company and the IP address is determined via > > DHCP; I used to always get the same IP address but recently the > > address seems to be changing very frequently whenever I reboot the > > machine. > > If this is an always on machine, it makes no sense, unless the ISP is > doing agressive accounting on there IP's: > - give out a lease for x hours > - but invalidate it anyway after > Doing a periodic dhclient -r would probably fix your problem, though > the correct solution would be to complain with your ISP and switch to > the competition if they don't get their stuff together. It would help if Nerius would spend some time in the system logs and dhclient man page to determine the state when his machine goes deaf. I suspect firewall rules using static host IP address. Believe I have also see this happen with natd, Once Upon A Time natd needed to be restarted when the external IP address changed. Is possible for dhclient to do this automatically. As for a static IP address, many ISPs charge extra for this feature. One ISP I deal with rotates our IP address every 18 to 48 hours and isn't courteous enough to do it on a regular schedule or wait until off hours. Means we have a couple of minutes of down time most every day when the router recovers. -- David Kelly N4HHE, [EMAIL PROTECTED] Whom computers would destroy, they must first drive mad. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DHCP release/renew lease - elegant solution?
On Friday 17 October 2008 23:24:00 Nerius Landys wrote: > I have an always-on FreeBSD box which is connected to the internet. My ISP > is some cable company and the IP address is determined via DHCP; I used to > always get the same IP address but recently the address seems to be > changing very frequently whenever I reboot the machine. > > My problem is that recently, after being on for a day or so, the internet > connection to the FreeBSD box breaks down, it stops working or becomes very > intermittent/flaky. I then reboot the machine, and thereafter it usually > uses a new IP address and the internet connection returns fo running fine. > There is no need to reboot the cable modem. If this is an always on machine, it makes no sense, unless the ISP is doing agressive accounting on there IP's: - give out a lease for x hours - but invalidate it anyway after http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: DHCP release/renew lease - elegant solution?
On Fri, 17 Oct 2008 14:24:00 -0700 "Nerius Landys" <[EMAIL PROTECTED]> wrote: >The -r flag explicitly releases the current lease, and once > the lease >has been released, the client exits. > > I could put this into a crontab and run it every 12 hours. However, > this does not seem like a very elegant solution to my problem. I am > wondering whether there is a more elegant solution. Before you look for a more elegant solution I suggest you try the inelegant solution and see if it actually works. At the moment all you really know is that rebooting fixes the problem. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"