Description

This article provides information on how to find which MAC address (default VLAN) is learnt from which interface via SNMP.

Symptoms

{master:0}
root@Test> show ethernet-switching table vlan default
Ethernet-switching table: 1 unicast entries
VLAN      MAC address          Type      Age   Interfaces
default    *                   Flood      -   All-members
default   00:19:e2:57:92:c3   Learn        0   ge-0/0/1.0

Solution

The CLI commands to query which particular MAC Address is learnt from which interface are as follows:

{master:0}
root@Test> show snmp mib walk dot1dTpFdbAddress
dot1dTpFdbAddress.0.25.226.87.146.195 = 00 19 e2 57 92 c3

{master:0}
root@Test> show snmp mib walk dot1dTpFdbPort
dot1dTpFdbPort.0.25.226.87.146.195 = 514

{master:0}
root@Test> show snmp mib get dot1dBasePortIfIndex.514
dot1dBasePortIfIndex.514 = 508

{master:0}
root@Test> show snmp mib get ifName.508
ifName.508 = ge-0/0/1.0

Modification History

2020-02-17: Article reviewed for accuracy; no changes required.