ETHTOOL(8) | System Manager's Manual | ETHTOOL(8) |
ethtool - query or control network driver and hardware settings
ethtool devname
ethtool -h|--help
ethtool --version
ethtool -a|--show-pause devname
ethtool -A|--pause devname [autoneg on|off] [rx on|off] [tx on|off]
ethtool -c|--show-coalesce devname
ethtool -C|--coalesce devname [adaptive-rx on|off] [adaptive-tx on|off] [rx-usecs N] [rx-frames N] [rx-usecs-irq N] [rx-frames-irq N] [tx-usecs N] [tx-frames N] [tx-usecs-irq N] [tx-frames-irq N] [stats-block-usecs N] [pkt-rate-low N] [rx-usecs-low N] [rx-frames-low N] [tx-usecs-low N] [tx-frames-low N] [pkt-rate-high N] [rx-usecs-high N] [rx-frames-high N] [tx-usecs-high N] [tx-frames-high N] [sample-interval N]
ethtool -g|--show-ring devname
ethtool -G|--set-ring devname [rx N] [rx-mini N] [rx-jumbo N] [tx N]
ethtool -i|--driver devname
ethtool -d|--register-dump devname [raw on|off] [hex on|off] [file name]
ethtool -e|--eeprom-dump devname [raw on|off] [offset N] [length N]
ethtool -E|--change-eeprom devname [magic N] [offset N] [length N] [value N]
ethtool -k|--show-features|--show-offload devname
ethtool -K|--features|--offload devname feature on|off ...
ethtool -p|--identify devname [N]
ethtool -P|--show-permaddr devname
ethtool -r|--negotiate devname
ethtool -S|--statistics devname
ethtool --phy-statistics devname
ethtool -t|--test devname [offline|online|external_lb]
ethtool -s devname [speed N] [duplex half|full] [port tp|aui|bnc|mii] [mdix auto|on|off] [autoneg on|off] [advertise N] [phyad N] [xcvr internal|external] [wol p|u|m|b|a|g|s|f|d...] [sopass xx:yy:zz:aa:bb:cc] [msglvl N | msglvl type on|off ...]
ethtool -n|-u|--show-nfc|--show-ntuple devname
[ rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 |
rule N ]
ethtool -N|-U|--config-nfc|--config-ntuple
devname
rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 m|v|t|s|d|f|n|r... |
flow-type
ether|ip4|tcp4|udp4|sctp4|ah4|esp4|ip6|tcp6|udp6|ah6|esp6|sctp6
[src xx:yy:zz:aa:bb:cc [m xx:yy:zz:aa:bb:cc]]
[dst xx:yy:zz:aa:bb:cc [m xx:yy:zz:aa:bb:cc]]
[proto N [m N]]
[src-ip ip-address [m ip-address]]
[dst-ip ip-address [m ip-address]]
[tos N [m N]]
[tclass N [m N]]
[l4proto N [m N]]
[src-port N [m N]]
[dst-port N [m N]]
[spi N [m N]]
[l4data N [m N]]
[vlan-etype N [m N]]
[vlan N [m N]]
[user-def N [m N]]
[dst-mac xx:yy:zz:aa:bb:cc [m xx:yy:zz:aa:bb:cc]]
[action N] [context N]
[loc N] |
delete N
ethtool -w|--get-dump devname [data filename]
ethtool -W|--set-dump devname N
ethtool -T|--show-time-stamping devname
ethtool -x|--show-rxfh-indir|--show-rxfh devname
ethtool -X|--set-rxfh-indir|--rxfh devname [hkey xx:yy:zz:aa:bb:cc:...] [ equal N | weight W0 W1 ... | default ] [hfunc FUNC] [context CTX | new] [delete]
ethtool -f|--flash devname file [N]
ethtool -l|--show-channels devname
ethtool -L|--set-channels devname [rx N] [tx N] [other N] [combined N]
ethtool -m|--dump-module-eeprom|--module-info devname [raw on|off] [hex on|off] [offset N] [length N]
ethtool --show-priv-flags devname
ethtool --set-priv-flags devname flag on|off ...
ethtool --show-eee devname
ethtool --set-eee devname [eee on|off] [tx-lpi on|off] [tx-timer N] [advertise N]
ethtool --set-phy-tunable devname [ downshift on|off [count N] ]
ethtool --get-phy-tunable devname [downshift]
ethtool --reset devname [flags N] [mgmt] [mgmt-shared] [irq] [irq-shared] [dma] [dma-shared] [filter] [filter-shared] [offload] [offload-shared] [mac] [mac-shared] [phy] [phy-shared] [ram] [ram-shared] [ap] [ap-shared] [dedicated] [all]
ethtool --show-fec devname
ethtool --set-fec devname encoding auto|off|rs|baser [...]
ethtool is used to query and control network device driver and hardware settings, particularly for wired Ethernet devices.
devname is the name of the network device on which ethtool should operate.
ethtool with a single argument specifying the device name prints current settings of the specified device.
0x001 | 10baseT Half | |
0x002 | 10baseT Full | |
0x004 | 100baseT Half | |
0x008 | 100baseT Full | |
0x010 | 1000baseT Half | (not supported by IEEE standards) |
0x020 | 1000baseT Full | |
0x20000 | 1000baseKX Full | |
0x20000000000 | 1000baseX Full | |
0x800000000000 | 2500baseT Full | |
0x8000 | 2500baseX Full | (not supported by IEEE standards) |
0x1000000000000 | 5000baseT Full | |
0x1000 | 10000baseT Full | |
0x40000 | 10000baseKX4 Full | |
0x80000 | 10000baseKR Full | |
0x40000000000 | 10000baseCR Full | |
0x80000000000 | 10000baseSR Full | |
0x100000000000 | 10000baseLR Full | |
0x200000000000 | 10000baseLRM Full | |
0x400000000000 | 10000baseER Full | |
0x200000 | 20000baseMLD2 Full | (not supported by IEEE standards) |
0x400000 | 20000baseKR2 Full | (not supported by IEEE standards) |
0x80000000 | 25000baseCR Full | |
0x100000000 | 25000baseKR Full | |
0x200000000 | 25000baseSR Full | |
0x800000 | 40000baseKR4 Full | |
0x1000000 | 40000baseCR4 Full | |
0x2000000 | 40000baseSR4 Full | |
0x4000000 | 40000baseLR4 Full | |
0x400000000 | 50000baseCR2 Full | |
0x800000000 | 50000baseKR2 Full | |
0x10000000000 | 50000baseSR2 Full | |
0x8000000 | 56000baseKR4 Full | |
0x10000000 | 56000baseCR4 Full | |
0x20000000 | 56000baseSR4 Full | |
0x40000000 | 56000baseLR4 Full | |
0x1000000000 | 100000baseKR4 Full | |
0x2000000000 | 100000baseSR4 Full | |
0x4000000000 | 100000baseCR4 Full | |
0x8000000000 | 100000baseLR4_ER4 Full |
p | Wake on PHY activity |
u | Wake on unicast messages |
m | Wake on multicast messages |
b | Wake on broadcast messages |
a | Wake on ARP |
g | Wake on MagicPacket™ |
s | Enable SecureOn™ password for MagicPacket™ |
f | Wake on filter(s) |
d | Disable (wake on nothing). This option clears all previous options. |
msglvl N
msglvl type on|off ...
drv | 0x0001 General driver status |
probe | 0x0002 Hardware probing |
link | 0x0004 Link state |
timer | 0x0008 Periodic status check |
ifdown | 0x0010 Interface being brought down |
ifup | 0x0020 Interface being brought up |
rx_err | 0x0040 Receive error |
tx_err | 0x0080 Transmit error |
tx_queued | 0x0100 Transmit queueing |
intr | 0x0200 Interrupt handling |
tx_done | 0x0400 Transmit completion |
rx_status | 0x0800 Receive completion |
pktdata | 0x1000 Packet contents |
hw | 0x2000 Hardware status |
wol | 0x4000 Wake-on-LAN status |
The precise meanings of these type flags differ between drivers.
tcp4 | TCP over IPv4 |
udp4 | UDP over IPv4 |
ah4 | IPSEC AH over IPv4 |
esp4 | IPSEC ESP over IPv4 |
sctp4 | SCTP over IPv4 |
tcp6 | TCP over IPv6 |
udp6 | UDP over IPv6 |
ah6 | IPSEC AH over IPv6 |
esp6 | IPSEC ESP over IPv6 |
sctp6 | SCTP over IPv6 |
m | Hash on the Layer 2 destination address of the rx packet. |
v | Hash on the VLAN tag of the rx packet. |
t | Hash on the Layer 3 protocol field of the rx packet. |
s | Hash on the IP source address of the rx packet. |
d | Hash on the IP destination address of the rx packet. |
f | Hash on bytes 0 and 1 of the Layer 4 header of the rx packet. |
n | Hash on bytes 2 and 3 of the Layer 4 header of the rx packet. |
r | Discard all packets of this flow type. When this option is set, all other options are ignored. |
ether | Ethernet |
ip4 | Raw IPv4 |
tcp4 | TCP over IPv4 |
udp4 | UDP over IPv4 |
sctp4 | SCTP over IPv4 |
ah4 | IPSEC AH over IPv4 |
esp4 | IPSEC ESP over IPv4 |
ip6 | Raw IPv6 |
tcp6 | TCP over IPv6 |
udp6 | UDP over IPv6 |
sctp6 | SCTP over IPv6 |
ah6 | IPSEC AH over IPv6 |
esp6 | IPSEC ESP over IPv6 |
For all fields that allow both a value and a mask to be specified, the mask may be specified immediately after the value using the m keyword, or separately using the field name keyword with -mask appended, e.g. src-mask.
-1 | Drop the matched flow |
-2 | Use the matched flow as a Wake-on-LAN filter |
0 or higher | Rx queue to route the flow |
flag on|off Sets the state of the named private flag.
count N |
Sets the PHY downshift re-tries count. |
Gets the PHY downshift count/status.
Forward Error Correction modes selected by a user are expected to be persisted after any hotplug events. If a module is swapped that does not support the current FEC mode, the driver or firmware must take the link down administratively and report the problem in the system logs for users to correct.
Sets the FEC encoding for the device. Combinations of options are specified as e.g. encoding auto rs ; the semantics of such combinations vary between drivers.
auto | Use the driver's default encoding |
off | Turn off FEC |
RS | Force RS-FEC encoding |
BaseR | Force BaseR encoding |
Not supported (in part or whole) on all network drivers.
ethtool was written by David Miller.
Modifications by Jeff Garzik, Tim Hockin, Jakub Jelinek, Andre Majorel, Eli Kupermann, Scott Feldman, Andi Kleen, Alexander Duyck, Sucheta Chakraborty, Jesse Brandeburg, Ben Hutchings, Scott Branden.
ethtool is available from http://www.kernel.org/pub/software/network/ethtool/
November 2018 | Ethtool version 4.19 |