All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] detecting link failure
@ 2002-11-19  8:24 nitin panjwani
  2002-11-19  8:43 ` Arthur van Leeuwen
  0 siblings, 1 reply; 2+ messages in thread
From: nitin panjwani @ 2002-11-19  8:24 UTC (permalink / raw)
  To: lartc

Hi All,

I am running some tests in which I have to bring down
my interface down as soon as I tear down the cable.
Cable tearing results only in the link failure(as link
light went off), but it doens't bring my interface
down. 

Is there a way to bring the interface down as soon as
my link fails, probably using 'ip link' or 'ip
monitor'. Does anyone know about it.

If there is some hardware monitering tool that can
detect the link failure, probably I can use this to
write a small program which will bring down the
interface as soon as I link failure is detected 

Thanks,
NItin 




__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site
http://webhosting.yahoo.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] detecting link failure
  2002-11-19  8:24 [LARTC] detecting link failure nitin panjwani
@ 2002-11-19  8:43 ` Arthur van Leeuwen
  0 siblings, 0 replies; 2+ messages in thread
From: Arthur van Leeuwen @ 2002-11-19  8:43 UTC (permalink / raw)
  To: lartc



On Tue, 19 Nov 2002, nitin panjwani wrote:

> Hi All,
>
> I am running some tests in which I have to bring down
> my interface down as soon as I tear down the cable.
> Cable tearing results only in the link failure(as link
> light went off), but it doens't bring my interface
> down.
>
> Is there a way to bring the interface down as soon as
> my link fails, probably using 'ip link' or 'ip
> monitor'. Does anyone know about it.

Monitor using mii-tool.

> If there is some hardware monitering tool that can
> detect the link failure, probably I can use this to
> write a small program which will bring down the
> interface as soon as I link failure is detected

Well, you *could* theoretically write a kernel module that would monitor
link status and call back to userland... that would result in the
quickest teardown of the link.

Doei, Arthur.

-- 
  /\    / |      arthurvl@sci.kun.nl      | Work like you don't need the money
 /__\  /  | A friend is someone with whom | Love like you have never been hurt
/    \/__ | you can dare to be yourself   | Dance like there's nobody watching

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-19  8:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-19  8:24 [LARTC] detecting link failure nitin panjwani
2002-11-19  8:43 ` Arthur van Leeuwen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.