# Mii-tool - Getting network interface status

**URL:** <https://linux-tips.com/t/mii-tool-getting-network-interface-status/197>\
**Category:** Network\
**Created:** [July 25, 2008, 11:05am UTC](https://linux-tips.com/t/mii-tool-getting-network-interface-status/197 "2008-07-25T11:05:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![demirezen](https://linux-tips.com/letter_avatar_proxy/v4/letter/d/54ee81/32.png) [@demirezen](https://linux-tips.com/u/demirezen)\
**Post date:** [July 25, 2008, 11:05am UTC](https://linux-tips.com/t/mii-tool-getting-network-interface-status/197/1 "2008-07-25T11:05:52Z")

</div>

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](http://manpages.org/mii-tool/8)
