The Layer 2 Ethernet Switching Interface BRIDGE-MIB is supported in the
Cisco 887, 880, and 890 platforms. The BRIDGE-MIB enables the user to know the
Media Access Control (MAC) addresses and spanning tree information of the
Ethernet switch modules. The user can query the MIB agent using the SNMP
protocol and get the details of Ethernet switch modules, such as MAC addresses,
of each interface and spanning protocol information.
The Bridge-MIB uses the following approaches to get the Layer 2
BRIDGE-MIB information:
- Community-string-based approach
- Context-based approach
In the community string based approach, one community string is created
for each VLAN. Based on the query, the respective VLAN MIB is displayed.
To get the BRIDGE-MIB details, use the snmp-server community public RW
command in the configuration mode.
Router(config)# snmp-server community public RW
Use the following syntax to query the SNMP BRIDGE-MIB details:
snmpwalk -v2c <ip address of the ISR, ...> public .1.3.6.1.2.1.17
snmpwalk -v2c <ip address of the ISR, ...> public@2 .1.3.6.1.2.1.17
snmpwalk -v2c <ip address of the ISR, ...> public@3 .1.3.6.1.2.1.17
 Note |
When you create a VLAN ‘x’, the logical entity public@x is added. If
you query with public community, the Layer 3 MIB is displayed. When you query
with public@x, the Layer 2 MIB for VLAN ‘x’ is displayed.
|
In the context based approach, the SNMP context mapping commands are
used to display the values for Layer 2 interfaces. Each VLAN is mapped to a
context. When the user queries with a context, the MIB displays the data for
that specific VLAN, which is mapped to the context. In this approach, each VLAN
is manually mapped to a context.
To get the BRIDGE-MIB details, use the following commands in the
configuration mode:
Router(config)# Routersnmp-server group public v2c context bridge-group
Router(config)# snmp-server community public RW
Router(config)# snmp-server community private RW
Router(config)# snmp-server context bridge-group
Router(config)# snmp mib community-map public context bridge-group
Use the following syntax to query the SNMP BRIDGE-MIB details.
snmpwalk -v2c <ip address of the ISR, ...> public@1 .1.3.6.1.2.1.17 ?L2-MIB
snmpwalk -v2c <ip address of the ISR, ...> private .1.3.6.1.2.1.17?L3-MIB
 Note |
When you query with the public community, the Layer 2 MIB is
displayed. Use a private group for Layer 3 MIB.
|
For more details to configure and retrieve the BRIDGE-MIB details, see:
http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094a9b.
shtml#brgmib