How To find Network Interface Details Using Linux Mii-Tool

| March 20, 2011 | 0 Comments

Interface Details

Both mii-tool and ethernet tool which allows Linux System Administrator to modify or change the check the Network Interface Card. Both the tools can be used for diagnostic and identification of Ethernet devices. Even You 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 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

Tags: , , ,

Category: Linux Administration

Leave a Reply

You must be logged in to post a comment.