port to mac address mapping using OID values

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

Reply to
swaroopvincent
Loading thread data ...

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).

Reply to
Jeff Liebermann

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.