Network interface status with mii-tool

To view and set status of a network interface, you can use mii-toolutility

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 use

the 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.







You must be login first or sign-up for an account to post comments.