LoginSignup
1
2

More than 5 years have passed since last update.

NICのリンクアップを確認する方法

Last updated at Posted at 2018-02-28

目的

どのLANポートがどのNIC(eth0、1)か判別する。

放置されている物理サーバ(複数LANポート)を使用するときがあり、どのポートがeth0? eth1?となった。
この状態を解消できそう

環境

RHEL6
→複数ポート
※RHEL7でも同様

手順

① サーバにコンソール接続し、サーバ背面にあるいづれかのLANポートにLANケーブルを接続する。
※LANケーブルの対向先もスイッチなどに接続する。

② 試しにeth0で確認する。

[root@test ~]# ethtool eth0

③ 最下行のLink detectedが「Yes」であればLANケーブルを接続したLANポートが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 pause frame use: No
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        MDI-X: Unknown
        Supports Wake-on: d
        Wake-on: d
        Current message level: 0x00000007 (7)
        Link detected: yes
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