[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting eth0 to come up automatically when plugging in the cable



On Wed, Jan 02, 2008 at 09:19:26AM +0200, Micha wrote:
> Is there a (not too complicated) way  to get eth0 to come up automatically
> (with dhcp) when the cable is plugged in and go down when it is disconnected?
> 
> I currently have the default setup where it is defined as auto with dhcp,
> so dhcp is always running, 
> /etc/network/interfaces:
> 
> # The primary network interface
> allow-hotplug eth0
> iface eth0 inet dhcp
> auto eth0

Try commenting out the 'auto eth0'. The 'allow-hotplug' should do what 
you need, but it is made ineffective by the 'auto', which keeps the 
interface up no matter what. At least that's what I think it does. See 
'man interfaces' for more details.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Attachment: signature.asc
Description: Digital signature


Reply to: