How To Find Network Interface Details Using Linux Mii-Tool

March 20, 2011 | By
| Reply More

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

Filed Under : LINUX HOWTO, NETWORK

Tagged With :

Free Linux Ebook to Download

Leave a Reply

Commenting Policy:
Promotion of your products ? Comment gets deleted.
All comments are subject to moderation.