Re: [ANNOUNCE] netplug, a daemon that handles network cablesgetting plugged in and out

From: Måns Rullgård
Date: Fri Aug 29 2003 - 03:28:52 EST


David T Hollis <dhollis@xxxxxxxxxxxxxx> writes:

>>Thank you, thank you, thank you. I was just thinking today how
>>annoying it is that whenever I boot up my laptop, dhclient runs and tries
>>to get an IP address on the ethernet interface until it's ^C'd. Since
>>I often use the Ethernet interface this is not a bad default, but dhclient
>>can't even realize on its own that there's no cable plugged in.
>
> Hmm, that seems to raise the question - why doesn't dhclient just
> handle that? On a DHCP interface, it's running anyway. if it paid
> attention to link status, it would know when to re-request an IP. If
> you are statically assigned, you don't really care anyway.

Well, sometimes it's better to not have the interface configured UP
when there's no cable connected. It avoids some very long timeouts
when some program tries to connect to something. It's better to just
get a host unreachable error immediately.

--
Måns Rullgård
mru@xxxxxxxxxxxx

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/