您好,登錄后才能下訂單哦!
小編給大家分享一下Linux常用命令ethtool怎么用,希望大家閱讀完這篇文章之后都有所收獲,下面讓我們一起去探討吧!
ethtool [參數]
常用參數:
-i | 顯示網卡驅動的信息 |
---|---|
-E | 修改網卡只讀存儲器字節 |
-K | 修改網卡 Offload 的狀態 |
ethx | 查詢ethx網口基本設置,其中 x 是對應網卡的編號,如eth0、eth2等 |
-s | 修改網卡的部分配置 |
-t | 讓網卡執行自我檢測 |
例1
[root@redhat ~]# ethtool eth2 #查詢eth2網口基本設置 [root@redhat ~]# ethtool -i eth2 #查詢eth2網口相關信息 [root@redhat ~]# ethtool -S eth2 #查詢eth2網口收發包統計 [root@redhat ~]# ethtool -s eth2 autoneg off speed 100 duplex full #設置eth2網口速率
例2
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]
看完了這篇文章,相信你對“Linux常用命令ethtool怎么用”有了一定的了解,如果想了解更多相關知識,歡迎關注億速云行業資訊頻道,感謝各位的閱讀!
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。