用法:
ethtool DEVNAME显示有关设备的标准信息
ethtool -s|--change DEVNAME更改通用选项
[ speed %d ]
[ duplex half|full ]
[ port tp|aui|bnc|mii|fibre ]
[ mdix auto|on|off ]
[ autoneg on|off ]
[ advertise %x ]
[ phyad %d ]
[ xcvr internal|external ]
[ wol p|u|m|b|a|g|s|d... ]
[ sopass %x:%x:%x:%x:%x:%x ]
[ msglvl %d | msglvl type on|off ... ]
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查询RX / TX环参数
ethtool -G|--set-ring DEVNAME设置RX / TX环路参数
[ rx N ]
[ rx-mini N ]
[ rx-jumbo N ]
[ tx N ]
ethtool -k|--show-features|--show-offload DEVNAME获取协议卸载状态和其他功能
ethtool -K|--features|--offload DEVNAME设置协议卸载和其他功能FEATURE on | off ...
ethtool -i|--driver DEVNAME显示驱动信息
ethtool -d|--register-dump DEVNAME做一个寄存器转储
[ raw on|off ]
[ file FILENAME ]
ethtool -e|--eeprom-dump DEVNAME做一个EEPROM转储
[ raw on|off ]
[ offset N ]
[ length N ]
ethtool -E|--change-eeprom DEVNAME在设备EEPROM中更改字节
[ magic N ]
[ offset N ]
[ length N ]
[ value N ]
ethtool -r|--negotiate DEVNAME重新启动N-WAY协商
ethtool -p|--identify DEVNAME显示可见的端口标识(例如闪烁)
[ TIME-IN-SECONDS ]
ethtool -t|--test DEVNAME执行适配器自检
[ online | offline | external_lb ]
ethtool -S|--statistics DEVNAME显示适配器统计
ethtool -n|-u|--show-nfc|--show-ntuple DEVNAME显示Rx网络流分类选项或规则
[ rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 |
rule %d ]
ethtool -N|-U|--config-nfc|--config-ntuple DEVNAME配置Rx网络流分类选项或规则
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
[ src %x:%x:%x:%x:%x:%x [m %x:%x:%x:%x:%x:%x] ]
[ dst %x:%x:%x:%x:%x:%x [m %x:%x:%x:%x:%x:%x] ]
[ proto %d [m %x] ]
[ src-ip %d.%d.%d.%d [m %d.%d.%d.%d] ]
[ dst-ip %d.%d.%d.%d [m %d.%d.%d.%d] ]
[ tos %d [m %x] ]
[ l4proto %d [m %x] ]
[ src-port %d [m %x] ]
[ dst-port %d [m %x] ]
[ spi %d [m %x] ]
[ vlan-etype %x [m %x] ]
[ vlan %x [m %x] ]
[ user-def %x [m %x] ]
[ dst-mac %x:%x:%x:%x:%x:%x [m %x:%x:%x:%x:%x:%x] ]
[ action %d ]
[ loc %d]] |
delete %d
ethtool -T|--show-time-stamping DEVNAME显示时间戳功能
ethtool -x|--show-rxfh-indir|--show-rxfh DEVNAME显示Rx流哈希间接和/或散列键
ethtool -X|--set-rxfh-indir|--rxfh DEVNAME设置Rx流散列间接和/或散列键
[ equal N | weight W0 W1 ... ]
[ hkey %x:%x:%x:%x:%x:.... ]
ethtool -f|--flash DEVNAME将固件映像从指定文件闪存到设备上的某个区域
FILENAME [ REGION-NUMBER-TO-FLASH ]
ethtool -P|--show-permaddr DEVNAME显示永久的硬件地址
ethtool -w|--get-dump DEVNAME获取转储标志,数据
[ data FILENAME ]
ethtool -W|--set-dump DEVNAME设置设备的转储标志
N
ethtool -l|--show-channels DEVNAME查询信道
ethtool -L|--set-channels DEVNAME设置信道
[ rx N ]
[ tx N ]
[ other N ]
[ combined N ]
ethtool --show-priv-flags DEVNAME查询私有标志
ethtool --set-priv-flags DEVNAME设置私有标志
FLAG on|off ...
ethtool -m|--dump-module-eeprom|--module-info DEVNAME查询/解码模块EEPROM信息和光学诊断(如果可用)
[ raw on|off ]
[ hex on|off ]
[ offset N ]
[ length N ]
ethtool --show-eee DEVNAME显示EEE设置
ethtool --set-eee DEVNAME设置EEE设置
[ eee on|off ]
[ advertise %x ]
[ tx-lpi on|off ]
[ tx-timer %d ]
ethtool -h|--help 显示帮助
ethtool --version 显示版本