Re: Disappearing DHCP Lease
Jim Bowering wrote:
I'm using Libranet Debian 2.0. This machine always gets a DHCP lease from
my ISP when it boots, but they seem to have a short default lease period.
After about 2 hours I lose my lease.
Ifconfig shows eth0 has no IP address. /etc/init.d/networking restart
restores the lease and ifconfig shows eth0 with a new address. I (almost
always) regain access to the internet.
I'm running Firestarter firewall on eth0. I'm running dhcpd on eth1 (local
network,)
I've been through all the config files I can think of and haven't seen
anything obvious. Does anyone have an idea what I can do to ensure
successful DHCP lease renewal?
This is just a guess, but perhaps your DHCP "client" is obtaining an
initial lease before the firewall is started, and your firwall has ports
67 and 68 blocked. These ports need to be open so your DHCP client can
communicate with your ISP's DHCP server to renew leases. My firewall
has these ports open and renews the lease on my cable modem about every
two hours just fine.
BTW, thanks for mentioning FIRESTARTER! I have been looking for
something like this to replace my current firewall, and have generally
been intimidated by writing my own iptables ruleset. This looks like
just the thing to get me started.
Cheers,
-Don Spoon-
Reply to: