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