日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > linux >内容正文

linux

ethtool用法 linux_Linux命令之Ethtool用法详解

發(fā)布時(shí)間:2025/3/8 linux 27 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ethtool用法 linux_Linux命令之Ethtool用法详解 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

Linux/Unix命令之Ethtool

描述:

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

概要:

ethtool ethX? ?? ?//查詢ethX網(wǎng)口基本設(shè)置

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

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

ethtool –d ethX? ? //查詢ethX網(wǎng)口注冊性信息

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

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

ethtool –s ethX [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]舉例:1)[root@linux /]#?ethtool eth1

Settings for eth0:

Supported ports: [ TP ]

Supported link modes: ? 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

1000baseT/Full

Supports auto-negotiation: Yes

Advertised link modes: ?10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

1000baseT/Full

Advertised auto-negotiation: Yes

Speed: 1000Mb/s

Duplex: Full

Port: Twisted Pair

PHYAD: 1

Transceiver: internal

Auto-negotiation: on

Supports Wake-on: g

Wake-on: d

Link detected: yes2)[root@linux /]#ethtool -i eth1

driver: bnx2

version: 2.0.8-rh

firmware-version: 6.2.12 bc 5.2.3 NCSI 2.0.11

bus-info: 0000:01:00.03)[root@linux /]#?ethtool -S eth1

NIC statistics:

rx_bytes: 216494818

rx_error_bytes: 0

tx_bytes: 27084170553

tx_error_bytes: 0

rx_ucast_packets: 2933822

rx_mcast_packets: 33

rx_bcast_packets: 956

tx_ucast_packets: 18464909

tx_mcast_packets: 6

tx_bcast_packets: 179

tx_mac_errors: 0

tx_carrier_errors: 0

rx_crc_errors: 0

rx_align_errors: 0

tx_single_collisions: 0

tx_multi_collisions: 0

tx_deferred: 0

tx_excess_collisions: 0

tx_late_collisions: 0

tx_total_collisions: 0

rx_fragments: 0

rx_jabbers: 0

rx_undersize_packets: 0

rx_oversize_packets: 0

rx_64_byte_packets: 959

rx_65_to_127_byte_packets: 2930241

rx_128_to_255_byte_packets: 2634

rx_256_to_511_byte_packets: 752

rx_512_to_1023_byte_packets: 169

rx_1024_to_1522_byte_packets: 56

rx_1523_to_9022_byte_packets: 0

tx_64_byte_packets: 183

tx_65_to_127_byte_packets: 357

tx_128_to_255_byte_packets: 750

tx_256_to_511_byte_packets: 224

tx_512_to_1023_byte_packets: 991032

tx_1024_to_1522_byte_packets: 17472548

tx_1523_to_9022_byte_packets: 0

rx_xon_frames: 0

rx_xoff_frames: 0

tx_xon_frames: 0

tx_xoff_frames: 0

rx_mac_ctrl_frames: 0

rx_filtered_packets: 0

rx_ftq_discards: 0

rx_discards: 0

rx_fw_discards: 0

總結(jié)

以上是生活随笔為你收集整理的ethtool用法 linux_Linux命令之Ethtool用法详解的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。