Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Users might experience few discrepancies in Search results. We are working on this on our side. We apologize for the inconvenience it may have caused.
New Member

IP-MAC-Port relation via SNMP (C7606-S; ESM20G)

I tried to get the port/interface where a MAC address is learned via SNMP.

So far I found the IP-->MAC-->VLAN interface relation.

But what OID gives me the right port on the switch/router (Cisco7606S; ESM20 card)

I tried :

snmpwalk -v 2c -c <community> <device> 1.3.6.1.2.1.3.1.1.3 | grep "<IP>"

at.atTable.atEntry.atNetAddress.43.1.<IP> : IpAddress: <IP>

With that I got the IfIndex (43) where this IP is found. But IfIndex tells me that this is the VLAN interface. I finally like to get the port as it is shown with the command "show mac-address-table address <MAC-address>"

--> * <VLAN> 000f.bb23.e2d6 dynamic Yes 0 Gi1/0/9 efp_id <VLAN>

Gig1/0/9 would be the value I like to get via SNMP.

Many thanks for any help

240
Views
0
Helpful
0
Replies
CreatePlease to create content