Re: detecting link failure

Linux Advanced Routing and Traffic Control

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

 




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/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux