port to mac address mapping using OID values

Mar 01, 2006 1 Replies

hi..... is it possible to get port to mac address mapping through snmp tables.. if so please help me in this ...



Sure. It would have to come from a router as access points and bridges don't know about IP addresses. However MIB table vary with different hardware. The ARP table is always listed. Since you didn't bother to supply the specific hardware, you can do a MIB walk, dump all the OID's, and look through the list for something that might be of interest. You'll find the MAC address tacked onto the tail end of the atTable OID with the IP address as the value. It's probably part of ASN.1. Yep... See RFC1157 at:

formatting link
search for "ARP cache" under atTable which maps the network address (IP) to the physical address (MAC).

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required