Mii-tool - Getting network interface status

To view and set status of a network interface, you can use mii-tool utility.

To view status of interfaces:

mii-tool

simply displays status of all interfaces.

Sample output is as below:eth0:

negotiated 100baseTx-FD, link ok
eth1: 100 Mbit, half duplex, no link

To set one interface to a value by using force, you can usethe command below:

mii-tool -F <media> <device>

where media is one of 100baseT4, 100baseTx-FD,100baseTx-HD, 10baseT-FD, 10baseT-HD and device is the interface name such as eth0 or eth1

Example:

mii-tool -F 100baseTx-FD eth0

sets interface eth0 to 100baseTx-FD without autonegotiation.

See also: man mii-tool