newspaint

Documenting Problems That Were Difficult To Find The Answer To

What Speed Is My Ethernet Interface or Link?

Operating System Command
Linux (mii-tool)
root@host:~# mii-tool eth0
eth0: negotiated 1000baseT-HD flow-control, link ok
      
Linux (ethtool)
root@host:~# ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Advertised pause frame use: Symmetric
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: g
        Wake-on: g
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: yes
      
Linux (dmesg)
root@host:~# dmesg |grep eth0 |grep -i link
[524281.831899] tg3 0000:02:00.0: eth0: Link is down
[524286.847555] ADDRCONF(NETDEV_UP): eth0: link is not ready
[524292.981252] tg3 0000:02:00.0: eth0: Link is up at 1000 Mbps, full duplex
[524292.983015] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
      
OpenWRT Switch
root@host:~# swconfig list
Found: switch0 - ag71xx-mdio.0
root@host:~# swconfig dev switch0 show
Global attributes:
        enable_vlan: 0
        enable_mirror_rx: 0
        enable_mirror_tx: 0
        mirror_monitor_port: 0
        mirror_source_port: 0
Port 0:
        mib: Port 0 MIB counters
  ...
        pvid: 0
        link: port:0 link:up speed:1000baseT full-duplex txflow rxflow 

Port 1:
        mib: Port 1 MIB counters
  ...
        pvid: 0
        link: port:1 link:down

Port 2:
  ...
        pvid: 0
        link: port:2 link:down

Port 3:
  ...
        pvid: 0
        link: port:3 link:up speed:100baseT full-duplex auto

Port 4:
  ...
        pvid: 0
        link: port:4 link:up speed:1000baseT full-duplex auto
      
Windows 7
C:\> wmic NIC where NetEnabled=true get Name, Speed
Name                                Speed
Realtek PCIe GBE Family Controller  1000000000
      
Solaris
ndd -set /dev/hme instance 0
ndd -get /dev/hme link_status
ndd -get /dev/hme link_mode
ndd -get /dev/hme link_speed
      


See Also

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: