查看網卡是百兆仍是千兆

  查看網卡是百兆仍是千兆

網卡對於咱們來講至關於屢見不鮮,本身買的還好,人家會告訴你是什麼型號,工做環境調動,又沒有人告訴你網卡信息這就須要本身辨識了,究竟怎樣查看網卡是百兆仍是千兆呢?經過如下幾步就能夠啦:(如下是我用電魚的SALI-IMX6Q爲例操做的)ui

使用ethtool命令spa

ethtool是Linux下用於查詢及設置網卡參數的命令io

輸入指令以下所示:sed

root@imx6qdlsolo:~# ethtool eth0自適應

Settings for eth0:im

        Supported ports: [ TP MII ]統計

        Supported link modes:   10baseT/Half 10baseT/Full查詢

                                100baseT/Half 100baseT/Full註釋

                                1000baseT/Full譯文

        Supported pause frame use: Symmetric

        Supports auto-negotiation: Yes

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

                                100baseT/Half 100baseT/Full

                                1000baseT/Full

        Advertised pause frame use: Symmetric

        Advertised auto-negotiation: Yes

        Link partner advertised link modes:  10baseT/Half 10baseT/Full

                                             100baseT/Half 100baseT/Full

                                             1000baseT/Full

        Link partner advertised pause frame use: Symmetric

        Link partner advertised auto-negotiation: Yes

        Speed: 1000Mb/s

        Duplex: Full

        Port: MII

        PHYAD: 1

        Transceiver: external

        Auto-negotiation: on

        Supports Wake-on: g

        Wake-on: d

        Link detected: yes

root@imx6qdlsolo:~#

 

詳細參數參考:(//後面是註釋,是原文的譯文)

ethtool ethX /

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

ethtool –i ethX //查詢ethX網口的相關信息

ethtool –d ethX //查詢ethX網口註冊性信息

ethtool –r ethX //重置ethX網口到自適應模式

ethtool –S ethX //查詢ethX網口收發包統計

ethtool –s ethX [speed 10|100|1000]\ //設置網口速率10/100/1000M

[duplex half|full]\ //設置網口半/全雙工

[autoneg on|off]\ //設置網口是否自協商

[port tp|aui|bnc|mii]\ //設置網口類型

若是對你有幫助的話,就推一下博主吧!

相關文章
相關標籤/搜索