cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
462
Views
0
Helpful
0
Replies

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

daschneider
Level 1
Level 1

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

0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: