Re: Looking for a way to check for status of DHCP connection
On 10/01/2005 07:00 PM, Arjen Verweij wrote:
> I have an annoying problem lately. Sometimes my cable internet (DHCP)
> breaks down. It is usually fixable by:
> sudo ifdown eth1
> sudo ifup eth1
> For now I have written a small perl script that runs as root, to do this
> for me in case the connection seems to be gone.
> Is there a more elegant way to accomplish this? I tried adjusting the
> leasetime in dhclient.conf, but it seems the DHCP server of the CMTS
> ignores this field.
> Please Cc: me on replies, I'm not subscribed to debian-user.
~$ apt-cache show ifplugd
Maintainer: Oliver Kurth <email@example.com>
Depends: libc6 (>= 2.3.2.ds1-4), libdaemon0 (>= 0.7), debconf (>= 1.2.0)
Recommends: ifupdown (>= 0.6.4-4.2)
Description: A configuration daemon for ethernet devices
ifplugd is a daemon which will automatically configure your
ethernet device when a cable is plugged in and automatically
unconfigure it if the cable is pulled. This is useful on laptops with
onboard network adapters, since it will only configure the interface
when a cable is really connected.
* May beep when the cable is unplugged, plugged, the interface
configuration succeeded or failed.
* Syslog support
* Multiple ethernet interface support
* Support for wireless networking. Whenever an association to an AP
is detected the network is configured. Have a look on waproamd
if you need a facility to configure WEP keys before AP
* Compatibility mode for network devices which do not support cable