On 11/06/11 00:43, Brian wrote:
> On Fri 10 Jun 2011 at 23:40:35 +1000, Scott Ferguson wrote:
> 
>> On 10/06/11 22:20, Brian wrote:
>>>
>>> Remove cable.
>>>
>>>    root@dektop3:~# dmesg | tail -n 1
>>>    [  158.220270] via-rhine 0000:00:12.0: eth0: link down
>>>
>> <snipped>
>>>
>>> eth0 is not brought down 
>>
>> Yes it is --------------------------------------^
> 
> 'link down' is a kernel message recognising the disappearence of the
> cable connection, not a declaration that eth0 is down. If it were not
> active the interface would not appear in the ifconfig output and would
> not be available. The routing table still exists. The machine knows
> where to send packets but nothing leaves through eth0.
> 
>>> and also retains its IP address.
>>
>> Not "also". It's a static address.
> 
> An address obtained via dhcp would also be retained because eth0 is
> still up.

You could have saved yourself some typing with more careful editing of
my post. :-)

Re-inserted text (referring to an active cable being plugged and unplugged:-
----------
If you change the static settings to dhcp it should change - provided
network manager is not installed of course.
eg. change static to dhcp and comment out the last five lines
restart the network and ifconfig should aquire an network settings - the
nic will be brought down when the cable is later removed - *but settings
will be retained (lease determined).*
----------
Bringing "up a NIC" is an admittedly poor way of saying "bringing up a
connection" - but it has no bearing on device creation. Which is what
hotplug does - when a device is removable. If it's not removable the
hotplug line has no effect.

> I assure you allow-hotplug does function during booting. Try it with
> dpcp. Now auto and dhcp. See the difference?

Given that most of my boxen do not have that line I can safely say -
that is demonstrably incorrect. Test it.

eg. /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.7.30
netmask 255.255.255.0
network 192.168.7.0
broadcast 192.168.7.255
gateway 192.168.7.1
nameserver 8.8.8.8

Will work just fine.
Ditto:-
eg. /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp


Don't have removable NIC? Then you don't use hotplug. Period.

The Debian documentation does *not* say the hotplug line is un-needed -
but that is the case.

Perhaps some knowledgable person will set me straight on why I'd need
the "allow-hotplug/auto-hotplug" (they have the same effect) stanza when
I don't have removeable NICs?

[quote Jean Tourrilhes]
Background on network hotplug :
        There are basically two types of network interfaces, static
(i.e. found at boot-time) and dynamic/removable/hotplug (that may
appear/disapear at any time).
        Up to now, the only dynamic network interfaces were 16 bits
Pcmcia network cards, which are managed by 'cardmgr' (included in the
Pcmcia package). Cardmgr and ifupdown do interract properly, no
problem there.
        Nowadays, a lot of 32 bits Bardbus network cards and USB
network devices are being sold and supported by Linux. Those devices
are managed exclusively through the hotplug system. Therefore, proper
interoperation of ifupdown and hotplug is required to be able to
support those devices.
[/quote]


Cheers

-- 
Tuttle? His name's Buttle.
There must be some mistake.
Mistake? [Chuckles]
We don't make mistakes.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4df24a4c.4060...@gmail.com

Reply via email to