* Carrier detection for network interfaces
@ 2003-11-15 16:16 Martin Schlemmer
2003-11-15 16:22 ` Jeff Garzik
0 siblings, 1 reply; 8+ messages in thread
From: Martin Schlemmer @ 2003-11-15 16:16 UTC (permalink / raw)
To: Linux Kernel Mailing Lists
Hi
Is there any proper way to detect a carrier signal with network
interfaces ? I have recently come across a problem where we tried
to do with with checking for 'RUNNING', which do not work for all
drivers, as well as mii-tool that fails in some cases.
Thanks,
--
Martin Schlemmer
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Carrier detection for network interfaces
2003-11-15 16:16 Carrier detection for network interfaces Martin Schlemmer
@ 2003-11-15 16:22 ` Jeff Garzik
2003-11-15 20:28 ` Martin Schlemmer
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Jeff Garzik @ 2003-11-15 16:22 UTC (permalink / raw)
To: azarah; +Cc: Linux Kernel Mailing Lists
Martin Schlemmer wrote:
> Is there any proper way to detect a carrier signal with network
> interfaces ? I have recently come across a problem where we tried
> to do with with checking for 'RUNNING', which do not work for all
> drivers, as well as mii-tool that fails in some cases.
What kernel version?
In 2.6 you have linkwatch. In 2.4 and 2.6, you have ETHTOOL_GLINK, and
mii-tool.
Jeff
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Carrier detection for network interfaces
2003-11-15 16:22 ` Jeff Garzik
@ 2003-11-15 20:28 ` Martin Schlemmer
2003-11-15 20:40 ` Jeff Garzik
2003-11-16 10:20 ` Ben Greear
2003-11-16 13:15 ` Matthias Andree
2 siblings, 1 reply; 8+ messages in thread
From: Martin Schlemmer @ 2003-11-15 20:28 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Linux Kernel Mailing Lists
On Sat, 2003-11-15 at 18:22, Jeff Garzik wrote:
> Martin Schlemmer wrote:
> > Is there any proper way to detect a carrier signal with network
> > interfaces ? I have recently come across a problem where we tried
> > to do with with checking for 'RUNNING', which do not work for all
> > drivers, as well as mii-tool that fails in some cases.
>
>
> What kernel version?
>
> In 2.6 you have linkwatch. In 2.4 and 2.6, you have ETHTOOL_GLINK, and
> mii-tool.
>
Anything more shell accessible (sysfs/proc) ?
Thanks,
--
Martin Schlemmer
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Carrier detection for network interfaces
2003-11-15 20:28 ` Martin Schlemmer
@ 2003-11-15 20:40 ` Jeff Garzik
2003-11-15 20:53 ` Martin Schlemmer
0 siblings, 1 reply; 8+ messages in thread
From: Jeff Garzik @ 2003-11-15 20:40 UTC (permalink / raw)
To: azarah; +Cc: Linux Kernel Mailing Lists
Martin Schlemmer wrote:
> On Sat, 2003-11-15 at 18:22, Jeff Garzik wrote:
>
>>Martin Schlemmer wrote:
>>
>>>Is there any proper way to detect a carrier signal with network
>>>interfaces ? I have recently come across a problem where we tried
>>>to do with with checking for 'RUNNING', which do not work for all
>>>drivers, as well as mii-tool that fails in some cases.
>>
>>
>>What kernel version?
>>
>>In 2.6 you have linkwatch. In 2.4 and 2.6, you have ETHTOOL_GLINK, and
>>mii-tool.
>>
>
>
> Anything more shell accessible (sysfs/proc) ?
ethtool is shell accessible.
Jeff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Carrier detection for network interfaces
2003-11-15 20:40 ` Jeff Garzik
@ 2003-11-15 20:53 ` Martin Schlemmer
0 siblings, 0 replies; 8+ messages in thread
From: Martin Schlemmer @ 2003-11-15 20:53 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Linux Kernel Mailing Lists
On Sat, 2003-11-15 at 22:40, Jeff Garzik wrote:
> Martin Schlemmer wrote:
> > On Sat, 2003-11-15 at 18:22, Jeff Garzik wrote:
> >
> >>Martin Schlemmer wrote:
> >>
> >>>Is there any proper way to detect a carrier signal with network
> >>>interfaces ? I have recently come across a problem where we tried
> >>>to do with with checking for 'RUNNING', which do not work for all
> >>>drivers, as well as mii-tool that fails in some cases.
> >>
> >>
> >>What kernel version?
> >>
> >>In 2.6 you have linkwatch. In 2.4 and 2.6, you have ETHTOOL_GLINK, and
> >>mii-tool.
> >>
> >
> >
> > Anything more shell accessible (sysfs/proc) ?
>
>
> ethtool is shell accessible.
>
Yep, thanks. Was just wondering if there was a way
that did not depend on additional tools beyond cat,
sed, grep, etc.
Thanks,
--
Martin Schlemmer
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Carrier detection for network interfaces
2003-11-15 16:22 ` Jeff Garzik
2003-11-15 20:28 ` Martin Schlemmer
@ 2003-11-16 10:20 ` Ben Greear
2003-11-16 13:15 ` Matthias Andree
2 siblings, 0 replies; 8+ messages in thread
From: Ben Greear @ 2003-11-16 10:20 UTC (permalink / raw)
To: Jeff Garzik; +Cc: azarah, Linux Kernel Mailing Lists
Jeff Garzik wrote:
> Martin Schlemmer wrote:
>
>> Is there any proper way to detect a carrier signal with network
>> interfaces ? I have recently come across a problem where we tried
>> to do with with checking for 'RUNNING', which do not work for all
>> drivers, as well as mii-tool that fails in some cases.
>
>
>
> What kernel version?
>
> In 2.6 you have linkwatch. In 2.4 and 2.6, you have ETHTOOL_GLINK, and
> mii-tool.
One thing to watch for, lots of drivers will not detect link
if the interface itself is not configured to be running (UP).
You can configure it up without an IP address of course...
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Carrier detection for network interfaces
2003-11-15 16:22 ` Jeff Garzik
2003-11-15 20:28 ` Martin Schlemmer
2003-11-16 10:20 ` Ben Greear
@ 2003-11-16 13:15 ` Matthias Andree
2003-11-16 18:22 ` Jeff Garzik
2 siblings, 1 reply; 8+ messages in thread
From: Matthias Andree @ 2003-11-16 13:15 UTC (permalink / raw)
To: Linux Kernel Mailing Lists
On Sat, 15 Nov 2003, Jeff Garzik wrote:
> What kernel version?
>
> In 2.6 you have linkwatch. In 2.4 and 2.6, you have ETHTOOL_GLINK, and
> mii-tool.
Whatever linkwatch is (can't find it with Google and freshmeat quickly).
For 3c59x, neither mii-tool nor ethtool work with 2.6, only mii-diag
will do.
--
Matthias Andree
Encrypt your mail: my GnuPG key ID is 0x052E7D95
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-11-16 18:23 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-15 16:16 Carrier detection for network interfaces Martin Schlemmer
2003-11-15 16:22 ` Jeff Garzik
2003-11-15 20:28 ` Martin Schlemmer
2003-11-15 20:40 ` Jeff Garzik
2003-11-15 20:53 ` Martin Schlemmer
2003-11-16 10:20 ` Ben Greear
2003-11-16 13:15 ` Matthias Andree
2003-11-16 18:22 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox