Link State Detection

David Bandel david.bandel
Mon Nov 22 07:06:48 PST 2004


On Mon, 22 Nov 2004 17:26:10 +1100, James McDonald
<james at jamesmcdonald.id.au> wrote:
>  
> I have a linux server with three nics in it. 
>   
> 2 are using ne2k-pci cards and one is a 8139too card 
>   
> I can use ethtool to find out the Link state on the 8139too 
>   
> simply by running 
>   
> ethtool eth0 
> <snippage> 
> Link detected: no 
>   
> Which gives me th Link State of yes or no. 
>   
> However running it on the  ne2k-pci doesn't give me squat 
>  ethtool eth1
> Settings for eth1:
> No data available
>  
> What is a universally useful command to detect the link state of a NIC? 

Not sure that there is a universal command.  Those NICs that use mii
can be seen using mii-tool.  If you have mii loaded as a module,
you'll see what NICs use mii, then you can use mii-tool on those.

Ciao,

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto


More information about the Linux-users mailing list