ethtool

相關(guān)命令: 暫無相關(guān)命令

ethtool是用于查詢及設(shè)置網(wǎng)卡參數(shù)的命令。


參數(shù):


ethtool eth*? ? ? #查詢eth*網(wǎng)口基本設(shè)置

ethtool –h? ? ? ? #顯示ethtool的命令幫助(help)

ethtool –i eth*? ? #查詢eth*網(wǎng)口的相關(guān)信息

ethtool –d eth*? ? #查詢eth*網(wǎng)口注冊(cè)性信息

ethtool –r eth*? ? #重置eth*網(wǎng)口到自適應(yīng)模式

ethtool –S eth*? ? #查詢eth*網(wǎng)口收發(fā)包統(tǒng)計(jì)

ethtool –s eth*? [speed 10|100|1000]\? ? ? ? #設(shè)置網(wǎng)口速率10/100/1000M

[duplex half|full]\? ? ? ? ? #設(shè)置網(wǎng)口半/全雙工

[autoneg on|off]\? ? ? ? ? ? #設(shè)置網(wǎng)口是否自協(xié)商

[port tp|aui|bnc|mii]\? ? ? ? #設(shè)置網(wǎng)口類型

[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網(wǎng)口基本設(shè)置


[root@redhat ~]# ethtool -i eth1? ? ? #查詢eth1網(wǎng)口相關(guān)信息


[root@redhat ~]# ethtool -S eth1? ? ? #查詢eth1網(wǎng)口收發(fā)包統(tǒng)計(jì)


[root@redhat ~]# ethtool -s eth1 autoneg off speed 100 duplex full? #設(shè)置eth1網(wǎng)口速率



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]

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • Ansible ad-hoc 什么是ad-hoc? ad-hoc簡(jiǎn)而言之就是“臨時(shí)命令”,執(zhí)行完即結(jié)束,并不會(huì)保存...
    邂逅_a754閱讀 710評(píng)論 0 0
  • ethtool命令 一、 簡(jiǎn)介 ??ethtool命令用于獲取以太網(wǎng)卡的配置信息,或者修改這些配置。 二、 命...
    橡皮24閱讀 1,999評(píng)論 0 2
  • 1.Endace DAG Suricata附帶原生Endace DAG卡支持。這意味著Suricata可以直接使用...
    lx_jian閱讀 3,774評(píng)論 0 0
  • 前言 之前記錄過處理因?yàn)長VS網(wǎng)卡流量負(fù)載過高導(dǎo)致軟中斷發(fā)生丟包的問題,RPS和RFS網(wǎng)卡多隊(duì)列性能調(diào)優(yōu)實(shí)踐,對(duì)一...
    王奧OX閱讀 8,090評(píng)論 0 6
  • 今天感恩節(jié)哎,感謝一直在我身邊的親朋好友。感恩相遇!感恩不離不棄。 中午開了第一次的黨會(huì),身份的轉(zhuǎn)變要...
    余生動(dòng)聽閱讀 10,858評(píng)論 0 11

友情鏈接更多精彩內(nèi)容