ethtool 开启网卡_ethtool-显示或修改以太网卡的配置信息

用法:

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 显示版本

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值