how to see mac address table on the l2 interface using snmp
I have set snmp on my cisco cat3750 and cat2960: snmp-server community public RO.
I have cheked it by snmpwalk -c public -v 1 <ip of my switch> system. It works!
But when I try to get mac address table through snmwalk -c public -v 1 <ip of my switch> 18.104.22.168.22.214.171.124.3.1.1 it shows nothing about mac address table. What I do wrong? Can you (experts) show me please an example of snmp equivalent show mac- int <my interface> command?
Re: how to see mac address table on the l2 interface using snmp
You need to use community string indexing to walk the MAC address table for each VLAN configured on the switch. For example, to get all the MAC address entries for VLAN 10, do:
snmwalk -c public@10 -v 1 126.96.36.199.188.8.131.52.3.1.1
To get the MACs on a given switchport, you will need to add the dot1dBasePort index to the end of this OID. That will be different for each port, and can be mapped back to an ifIndex (then back to an ifDescr) using the dot1dBasePortTable.
Hi everyone, I would like to thank you in advance for any help you can provide a newcomer like myself!
Im studying the 100-105 book by Odom and am currently on the topic of Port security. I purchased a used 2960 and I'm trying to follow a...
While deploying a number of 18xx/2802/3802 model access points (APs), which run AP-COS as their operating platform. It can be observed on some occasions that while many of their access points were able to join the fabric WLC withou...
I am going to design and build an LAN network under a tunnel underground with long distance between the switches.
I will have 2 Catalyst switches and 8 Industrial IE3000, and they will be connected with fiber.
For now I am planning on use Layer-2 s...