No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

MIB Reference

S12700 V200R010C00

This document provides the function overview, relationships between tables, description of single objects, description of MIB tables, and description of alarm objects.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Querying MAC Address Table

Querying MAC Address Table

Querying the Mapping Between MAC Addresses and Interfaces

dot1dTpFdbTable describes existing MAC address entries on the device. dot1dTpFdbAddress describes MAC addresses, and dot1dTpFdbPort describes the Layer 2 interface indexes corresponding to the MAC addresses.

dot1dBasePortIfIndex in dot1dBasePortTable describes the mapping between Layer 2 interface indexes and interface indexes, and ifName describes the mapping between interface indexes and interface names.

NOTE:

Layer 2 interface indexes are a set of numbers that identify Layer 2 interfaces, and interface indexes are a set of numbers that identify all interfaces including Layer 2 and Layer 3 interfaces.

Table 2-9  Description of MIB objects

Object

Description

OID

dot1dTpFdbAddress

This object indicates the MAC address.

1.3.6.1.2.1.17.4.3.1.1

dot1dTpFdbPort

This object indicates the Layer 2 interface index corresponding to the MAC address.

1.3.6.1.2.1.17.4.3.1.2

dot1dBasePortIfIndex

This object indicates the interface index corresponding to the Layer 2 interface index.

1.3.6.1.2.1.17.1.4.1.2

ifName

This object indicates the interface name corresponding to the interface index.

1.3.6.1.2.1.31.1.1.1.1

To query the mapping between MAC addresses and interfaces, perform the following steps:
  1. Query existing MAC address entries on the device using dot1dTpFdbAddress.

    As shown in Figure 2-77, select dot1dTpFdbAddress and perform the Walk operation to query all MAC address entries on the device.

    dot1dTpFdbAddress.172.133.61.166.164.32 indicates that there is the MAC address AC:85:3D:A6:A4:20. The value 172.133.61.166.164.32 is the MAC address AC:85:3D:A6:A4:20 in decimal notation.

    Figure 2-77  Query result of dot1dTpFdbAddress
  2. Query the Layer 2 interface indexes corresponding to the MAC addresses through dot1dTpFdbPort.

    As shown in Figure 2-78, select dot1dTpFdbPort and perform the Walk operation to query Layer 2 interface indexes corresponding to all MAC address entries on the device.

    dot1dTpFdbPort.172.133.61.166.164.32 (integer) 11 indicates that the MAC address 172.133.61.166.164.32 corresponds to Layer interface index 11.

    Figure 2-78  Query result of dot1dTpFdbPort
  3. Query the interface indexes corresponding to the Layer 2 interface indexes through dot1dBasePortIfIndex.

    As shown in Figure 2-79, select dot1dBasePortIfIndex and perform the Walk operation to query the interface indexes corresponding to all Layer 2 interface indexes on the device.

    dot1dBasePortIfIndex.11 (integer) 152 indicates that Layer 2 interface index 11 corresponds to interface index 152.

    Figure 2-79  Query result of dot1dBasePortIfIndex
  4. Query the interface names corresponding to the interface indexes through ifName.

    As shown in Figure 2-80, select ifName and perform the Walk operation to query the interface names corresponding to all interface indexes on the device.

    ifName.152 (octet string) XGigabitEthernet6/0/3 indicates that interface index 11 corresponds to XGigabitEthernet6/0/3, that is, the MAC address AC:85:3D:A6:A4:20 corresponds to the outbound interface XGigabitEthernet6/0/3.

    Figure 2-80  Query result of ifName
Translation
Download
Updated: 2019-08-21

Document ID: EDOC1000142096

Views: 180583

Downloads: 80

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next