レイヤ2スイッチの場合、スイッチMACアドレスを取得するには?

レイヤ2スイッチの場合、スイッチMACアドレスを取得するには?
arp -a

表示されません。では、MACをどのように取得できますか? (例:Linuxでは)

ベストアンサー1

スイッチがマネージドスイッチの場合は、lldpctlソフトウェアパッケージlldpd(Debian / Ubuntu)を使用して対応するMACアドレスを確認できます。

パッケージlldpは次のように説明されています。

lldpdは、すべてのデバイスのネイバーを見つけるのに役立つ802.1ab実装(LLDP)です。

マニュアルページにはlldpctl使用方法が記載されています。

NAME
     lldpctl — control LLDP daemon

SYNOPSIS
     lldpctl [-d] [-L location] [-P policy] [-O poe] [-o poe] [interface ...]

DESCRIPTION
     The lldpctl program controls lldpd(8) daemon.

     When no specific option is given, lldpctl displays the list of 
     discovered neighbors along with some of their advertised capabilities.
     If some interfaces are given, only those interfaces will be displayed.
...

引用する

おすすめ記事