ethtool

From Wikipedia, the free encyclopedia
Jump to: navigation, search
ethtool
Original author(s) David S. Miller
Developer(s) Ben Hutchings
Initial release 1998; 16 years ago (1998)
Stable release 3.16.3 (17 September 2014; 14 days ago (2014-09-17)) [±][1]
Written in C
Operating system Linux kernel
Type utility program
License GNU General Public License v2
Website www.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[edit]

The command is useful for

  • Identification and diagnosis of Ethernet devices
  • Extended Ethernet devices statistics
  • Control speed, duplex, auto-negotiation and flow control for Ethernet devices
  • Control checksum offload and other hardware offload features
  • Control DMA ring sizes and interrupt moderation
  • Control receive queue selection for multiqueue devices
  • Upgrade firmware in flash memory

Example[edit]

To display the current parameters:

$ 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

See also[edit]

References[edit]

  1. ^ Torvalds, Linus (September 17 2014). "Linux 3.16.3". linux-kernel-mailing-list mailing list. https://lkml.org/lkml/2014/9/17/596.