ethtool

相关命令: 暂无相关命令

ethtool是用于查询及设置网卡参数的命令。


参数:


ethtool eth*      #查询eth*网口基本设置

ethtool –h        #显示ethtool的命令帮助(help)

ethtool –i eth*    #查询eth*网口的相关信息

ethtool –d eth*    #查询eth*网口注册性信息

ethtool –r eth*    #重置eth*网口到自适应模式

ethtool –S eth*    #查询eth*网口收发包统计

ethtool –s eth*  [speed 10|100|1000]\        #设置网口速率10/100/1000M

[duplex half|full]\          #设置网口半/全双工

[autoneg on|off]\            #设置网口是否自协商

[port tp|aui|bnc|mii]\        #设置网口类型

[phyad N]\               

[xcvr internal|exteral]\

[wol p|u|m|b|a|g|s|d...]\

[sopass xx:yy:zz:aa:bb:cc]\

[msglvl N]


例子


[root@redhat ~]# ethtool eth1        #查询eth1网口基本设置


[root@redhat ~]# ethtool -i eth1      #查询eth1网口相关信息


[root@redhat ~]# ethtool -S eth1      #查询eth1网口收发包统计


[root@redhat ~]# ethtool -s eth1 autoneg off speed 100 duplex full  #设置eth1网口速率



root@c:~# ethtool -k br-prv  #显示网卡详细信息

Features for br-prv:

Cannot get device udp-fragmentation-offload settings: Operation not supported

rx-checksumming: off [fixed]

tx-checksumming: on

tx-checksum-ipv4: off [fixed]

tx-checksum-ip-generic: on

tx-checksum-ipv6: off [fixed]

tx-checksum-fcoe-crc: off [fixed]

tx-checksum-sctp: off [fixed]

scatter-gather: on

tx-scatter-gather: on

tx-scatter-gather-fraglist: on

tcp-segmentation-offload: on

tx-tcp-segmentation: on

tx-tcp-ecn-segmentation: on

tx-tcp-mangleid-segmentation: on

tx-tcp6-segmentation: on

udp-fragmentation-offload: off

generic-segmentation-offload: on

generic-receive-offload: on

large-receive-offload: off [fixed]

rx-vlan-offload: off [fixed]

tx-vlan-offload: on

ntuple-filters: off [fixed]

receive-hashing: off [fixed]

highdma: on

rx-vlan-filter: off [fixed]

vlan-challenged: off [fixed]

tx-lockless: on [fixed]

netns-local: off [fixed]

tx-gso-robust: off [fixed]

tx-fcoe-segmentation: off [fixed]

tx-gre-segmentation: on

tx-gre-csum-segmentation: on

tx-ipxip4-segmentation: on

tx-ipxip6-segmentation: on

tx-udp_tnl-segmentation: on

tx-udp_tnl-csum-segmentation: on

tx-gso-partial: off [fixed]

tx-sctp-segmentation: on

tx-esp-segmentation: off [fixed]

fcoe-mtu: off [fixed]

tx-nocache-copy: off

loopback: off [fixed]

rx-fcs: off [fixed]

rx-all: off [fixed]

tx-vlan-stag-hw-insert: on

rx-vlan-stag-hw-parse: off [fixed]

rx-vlan-stag-filter: off [fixed]

l2-fwd-offload: off [fixed]

hw-tc-offload: off [fixed]

esp-hw-offload: off [fixed]

esp-tx-csum-hw-offload: off [fixed]

rx-udp_tunnel-port-offload: off [fixed]

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Ansible ad-hoc 什么是ad-hoc? ad-hoc简而言之就是“临时命令”,执行完即结束,并不会保存...
    邂逅_a754阅读 619评论 0 0
  • ethtool命令 一、 简介   ethtool命令用于获取以太网卡的配置信息,或者修改这些配置。 二、 命...
    橡皮24阅读 1,941评论 0 2
  • 1.Endace DAG Suricata附带原生Endace DAG卡支持。这意味着Suricata可以直接使用...
    lx_jian阅读 3,659评论 0 0
  • 前言 之前记录过处理因为LVS网卡流量负载过高导致软中断发生丢包的问题,RPS和RFS网卡多队列性能调优实践,对一...
    王奥OX阅读 7,816评论 0 6
  • 今天感恩节哎,感谢一直在我身边的亲朋好友。感恩相遇!感恩不离不弃。 中午开了第一次的党会,身份的转变要...
    迷月闪星情阅读 10,620评论 0 11