Determine Linux ethernet interface speed and duplex

Determine the auto-negotiated Ethernet connection speed and duplex using the mii-tool command.


Running the following command as superuser with no options will generate basic information about all of the Ethernet interfaces on the computer:

mii-tool

The resulting output will look something like:

eth0: negotiated 100baseTx-FD, link ok

This output shows one interface (eth0) which was auto-negotiated to 100 Mbps (100baseTx) and full duplex (FD).

Adding the -v option to the command generates verbose output and will tell you more about the interface including the manufacturer and model (if available) and the interface’s capabilities.

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.

2 Responses to “Determine Linux ethernet interface speed and duplex”

  1. May 10, 2010 at 10:56 am, Anonymous said:

    hi i want to find the ethernet speed and transmission details for RH Linux AS 4 system.
    i have tries ethtool and mii-tool, but it does not work for RH Linux AS 4 system. please find a way to deal with it.

    Reply

    • April 19, 2011 at 1:52 pm, Vetri said:

      sudo mii-tool in the command line

      Reply

Leave a Reply

You may also like-

Solaris: Check hme ethernet link speed, duplex, and statusSolaris: Check hme ethernet link speed, duplex, and statusWhen troubleshooting networking issues, it is often helpful to determine the state of an ethernet interface. Solaris offers access to many configurable networking parameters ... Show Media Type Supported by an InterfaceShow Media Type Supported by an InterfaceThis command is useful for showing the valid media options for an interface: ifconfig -m ep0 ep0: flags=8843 mtu 1500 inet 161.81.18.66 netmask 0xfffffff8 ...