Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Oct 2008 15:26:39 +0200
From:      Mel <fbsd.questions@rachie.is-a-geek.net>
To:        freebsd-questions@freebsd.org
Cc:        Nerius Landys <nlandys@gmail.com>
Subject:   Re: DHCP release/renew lease - elegant solution?
Message-ID:  <200810201526.39245.fbsd.questions@rachie.is-a-geek.net>
In-Reply-To: <560f92640810171424v7fd48462qb750cf40229884ac@mail.gmail.com>
References:  <560f92640810171424v7fd48462qb750cf40229884ac@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <x hours.

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.
-- 
Mel

Problem with today's modular software: they start with the modules
    and never get to the software part.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810201526.39245.fbsd.questions>