off topic - hope somebody can help
Does anybody knows why ethernet interfaces stay's up even when i unplug the ethernet cable?
I have 2 isp connected to a box, with a default route pointing both of them one using a higer weight to use it as backup conection (using iproute2). Ok, if i unplug the ethernet cable of eth of isp1 , the ethernet card stays up and nobody can make any connection. But, if i "really" force the interface shutdown of provider1 (doing ifdown eth1) the traffic goes instantly trough provider2.
Any idea how can i tear down an interface when i unplug the ethernet cable?
Thanks in advance.
after you yank the cable, what happens if you run mii-tool ethX . Does it say that the link is dead? If so, what I do is run mii-tool in monitor mode and just look for a "link down" statement in syslog. When it arrives, I down the interface with no cable. Not the most elegant, but it has worked for me for some time now.
Signature · 3 lines
Jason www.jasonandjessi.com It gimme the jibblies
Quoted 15 lines · Alexis
Does anybody knows why ethernet interfaces stay's up even when i unplug the ethernet cable?
I have 2 isp connected to a box, with a default route pointing both of them one using a higer weight to use it as backup conection (using iproute2). Ok, if i unplug the ethernet cable of eth of isp1 , the ethernet card stays up and nobody can make any connection. But, if i "really" force the interface shutdown of provider1 (doing ifdown eth1) the traffic goes instantly trough provider2.
Any idea how can i tear down an interface when i unplug the ethernet cable?
Thanks in advance.
Quoted 2 lines · Alexis
Does anybody knows why ethernet interfaces stay's up even when i unplug the ethernet cable?
Why shouldn't it? The interface is still fully functioning even if you
choose to disconnect it - I think plenty of people would get upset if the interface went down on its own just because the cable got unplugged (or the hub had a short power failure)...
Quoted 8 lines
I have 2 isp connected to a box, with a default route pointing both of them one using a higer weight to use it as backup conection (using iproute2). Ok, if i unplug the ethernet cable of eth of isp1 , the ethernet card stays up and nobody can make any connection. But, if i "really" force the interface shutdown of provider1 (doing ifdown eth1) the traffic goes instantly trough provider2.
Any idea how can i tear down an interface when i unplug the ethernet cable?
Personally I would prefer to do something like a ping test to each ISPs gateway router - then you can switch routes if any part of the connection between your box and the link to the Internet goes down, not just one specific piece of CAT5 cable.
Regards,
Antony.
Signature · 6 lines
Documentation is like sex.
When it's good, it's very very good.
When it's bad, it's still better than nothing.
Please reply to the list;
please don't CC me.Quoted 4 lines · Antony Stone
Why shouldn't it? The interface is still fully functioning even if you
choose to disconnect it - I think plenty of people would get upset if the interface went down on its own just because the cable got unplugged (or the hub had a short power failure)...
This is definately one of the biggest no-brain decisions Microsoft made with Windows 2000 - as soon as the link on an Ethernet adapter disappears, all open TCP sessions from the workstation are immediately reset.
Multiply that by power-cycling a 48-port switch, and you have a headache :/
gdh
Quoted 11 lines · Gavin Hamill
Quoted 4 lines · Antony Stone
Why shouldn't it? The interface is still fully functioning even if you
choose to disconnect it - I think plenty of people would get upset if the interface went down on its own just because the cable got unplugged (or the hub had a short power failure)...This is definately one of the biggest no-brain decisions Microsoft made with Windows 2000 - as soon as the link on an Ethernet adapter disappears, all open TCP sessions from the workstation are immediately reset.
Multiply that by power-cycling a 48-port switch, and you have a headache :/
Sheesh - I did not know that - I wrote what I did above on the basis that this would be such a stupid and inconvenient thing to do that of course nobody would implement it as a standard "feature".
Glad to know that no matter how hard I try, Microsoft still manages to exceed my expectations of their inept design concepts.
Antony.
Signature · 6 lines
I think, therefore I am.
I'm pink, therefore I'm Spam.
I drink, therefore I think I am.
Please reply to the list;
please don't CC me.Quoted 10 lines
Does anybody knows why ethernet interfaces stay's up even when i unplug the ethernet cable?
I have 2 isp connected to a box, with a default route pointing both of them one using a higer weight to use it as backup conection (using iproute2). Ok, if i unplug the ethernet cable of eth of isp1 , the ethernet card stays up and nobody can make any connection. But, if i "really" force the interface shutdown of provider1 (doing ifdown eth1) the traffic goes instantly trough provider2.
Any idea how can i tear down an interface when i unplug the ethernet cable?
you can use netplugd, look it up on freshemat.net.
Signature · 2 lines
damjan | дамјан This is my jabber ID --> [email protected] <-- not my mail address!!!
It could help
-----Mensaje original-----
De: Damjan [mailto:[email protected]]
Enviado el: Viernes, 11 de Junio de 2004 13:55
Para: [email protected]
CC: Alexis
Asunto: Re: off topic - hope somebody can help
Quoted 1 line
Does anybody knows why ethernet interfaces stay's up even when i unplug
the
Quoted 3 lines
ethernet cable?
I have 2 isp connected to a box, with a default route pointing both of
them one
Quoted 1 line
using a higer weight to use it as backup conection (using iproute2). Ok,
if i
Quoted 1 line
unplug the ethernet cable of eth of isp1 , the ethernet card stays up and
nobody
Quoted 1 line
can make any connection. But, if i "really" force the interface shutdown
of
Quoted 3 lines
provider1 (doing ifdown eth1) the traffic goes instantly trough provider2.
Any idea how can i tear down an interface when i unplug the ethernet
cable?
you can use netplugd, look it up on freshemat.net.
Signature · 2 lines
damjan | ?????? This is my jabber ID --> [email protected] <-- not my mail address!!!