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.
My goal is to do some dhclient magic which will automatically fix this
problem without needing a reboot of the machine. If possible, I would like
to have the same IP address as often as possible, but I'm not sure that this
My FreeBSD version is 5.5, so it uses the ISC DHCP client, but the details
between the current DHCP client and mine are probably insignificant. My
/etc/dhclient.conf file is empty.
I have been reading man pages, and it seems that the way to release, get a
new IP address is this:
An except from my dhclient man page:
The client normally doesn't release the current lease as it is
required by the DHCP protocol. Some cable ISPs require their
to notify the server if they wish to release an assigned IP
The -r flag explicitly releases the current lease, and once the
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. Thanks in advance.
email@example.com mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"