Jump to content

Ethtool: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Merge in from mii-tool followung unopposed 2019 proposal
Line 58: Line 58:
<source lang="console">
<source lang="console">
$ ethtool -s eth0 speed 1000 duplex full autoneg off
$ ethtool -s eth0 speed 1000 duplex full autoneg off
</source>

==mii-tool==
'''mii-tool''' is an older program performing a similar function to ethtool. Since 2003,<ref>http://lists.olug.org/pipermail/olug/2003-September/010415.html</ref> it's considered obsolete and replaced by [[ethtool]].

===Example===
To display the current parameters:
<source lang="console">
$ mii-tool
eth0: no autonegotiation, 100baseTx-HD, link ok
</source>
To force the network speed to 1 Gbit/s, and the ''duplex'' in ''full'' on the port 1 (eth0):
<source lang="console">
$ mii-tool -F 1000baseTx-FD eth0
$ mii-tool
eth0: 1 000 Mbit, full duplex, link ok
</source>
</source>


Line 63: Line 79:
{{Portal|Free and open-source software}}
{{Portal|Free and open-source software}}
* [[iproute2]]
* [[iproute2]]
* [[mii-tool]]


==References==
==References==
Line 71: Line 86:
* {{Official website|https://www.kernel.org/pub/software/network/ethtool/}}
* {{Official website|https://www.kernel.org/pub/software/network/ethtool/}}
* [http://www.thegeekstuff.com/2010/10/ethtool-command/ Ethtool examples]
* [http://www.thegeekstuff.com/2010/10/ethtool-command/ Ethtool examples]
* [http://sourceforge.net/projects/net-tools/ Net Tools on sourceforge.net]



{{Unix commands}}
{{Unix commands}}

Revision as of 17:14, 9 February 2020

ethtool
Original author(s)David S. Miller
Developer(s)Ben Hutchings
Initial release1998; 26 years ago (1998)
Repository
Written inC
Operating systemLinux
TypeNetworking
LicenseGPLv2
Websitewww.kernel.org/pub/software/network/ethtool/

ethtool is a utility for Linux kernel-based operating system for displaying and modifying some parameters of network interface controllers (NICs) and their device drivers. ethtool is developed parallel to the Linux kernel.

Usage

The command is useful for:

Examples

To display the current parameters of the first network port (eth0):

$ ethtool eth0
Settings for eth0:
       Supported ports: [ TP MII ]
       Supported link modes:   10baseT/Half 10baseT/Full
                               100baseT/Half 100baseT/Full
       Supports auto-negotiation: Yes
       Advertised link modes:  10baseT/Half 10baseT/Full
                               100baseT/Half 100baseT/Full
       Advertised auto-negotiation: No
       Speed: 100Mb/s
       Duplex: Full
       Port: MII
       PHYAD: 1
       Transceiver: internal
       Auto-negotiation: off
       Supports Wake-on: g
       Wake-on: g
       Current message level: 0x00000007 (7)
       Link detected: yes

To force its speed and duplex, in 1000BASE-T:

$ ethtool -s eth0 speed 1000 duplex full autoneg off

mii-tool

mii-tool is an older program performing a similar function to ethtool. Since 2003,[1] it's considered obsolete and replaced by ethtool.

Example

To display the current parameters:

$ mii-tool
eth0: no autonegotiation, 100baseTx-HD, link ok

To force the network speed to 1 Gbit/s, and the duplex in full on the port 1 (eth0):

$ mii-tool -F 1000baseTx-FD eth0
$ mii-tool
eth0: 1 000 Mbit, full duplex, link ok

See also

References