1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

ethtool

Last updated at Posted at 2021-03-12

NICの状態を表示する。

# ethtool eth0

通常のサーバで実行すると以下のように表示される。

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: 0
         Transceiver: internal
         Auto-negotiation: on
         Supports Wake-on: umbg
         Wake-on: g
         Current message level: 0x00000007 (7)
         Link detected: yes

LANケーブルが挿さっている場合は「Link detected: yes」と表示される。
LANケーブルが抜けている場合は「Link detected: no」と表示される。

1000BASEのNICを使用しているのにスピードが「100Mb/s」だったり、
デュプレックスが「half」になっている場合はHUBとの相性やケーブルの不具合などが考えられる。

ethtoolコマンドを実行して[Speed]や[Duplex]の値がおかしいときは、以下のように強制的に修正して状況が改善されるかどうかを確認する。

# ethtool -s eth0 speed 100 ←速度を100Mb/sに設定
# ethtool -s eth0 duplex full ←デュプレックスをfullに設定
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?