How To Find Network Interface Details Using Linux Mii-Tool

Interface Details

Both mii-tool and ethernet tool allow linux system administrator to modify or change or check the network interface card. Both the tools can be used for diagnostic and identification of ethernet devices. Even you can control the links, set the auto negotiation mode, set the simlex, halfduplex or fullduplex mode. (Simplex, half duplex and full duplex are referred to as dialog modes and they can determine the direction in which data can flow through the network media).

Using this command you can set speed and duplex of your interface card. Make sure that your NIC should support mii-tool.

Example: 1

[root@localhost ~]# mii-tool
eth0: negotiated 100baseTx-FD, link ok

Detail information on each card can be found using -v option. You can find the link status speed of the connectivity.

[root@tristan]# mii-tool -v
eth0: negotiated, link ok
product info: vendor 00:08:18, model 25 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
eth1: negotiated, link ok
product info: vendor 00:08:18, model 25 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

Example: 2

[root@localhost ~]# mii-tool --force 10baseT-FD

Above command will set the speed of the interface 10Mb.

[root@localhost ~]# mii-tool
eth0: 10 Mbit, full duplex, link ok

Example: 3

[root@localhost ~]# mii-tool –restart

Above Command will restart the auto negotiation.

Below options will change the settings of eth0 interface to 100 Mbs Full-Duplex:

[root@localhost ~]#mii-tool -F 100baseTx-FD eth0

About Bobbin Zachariah

Founder of LinOxide, passionate lover of Linux and technology writer. Started his career in Linux / Opensource from 2000. Love traveling, blogging and listening music. Reach Bobbin Zachariah about me page and google plus page.

Author Archive Page

Have anything to say?

Your email address will not be published. Required fields are marked *

All comments are subject to moderation.