Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

get mac address

Hi,

is there a OID that can show me the mac-address of the attached device to the port on cat4506 or 2950 (IOS)?

i think that ciscoworks do it

thanks

4 REPLIES
Gold

Re: get mac address

"sh ip arp" shows all mac address the switch has, but there is no info on which particular port the host is connected to.

Re: get mac address

Hi,

Have a look at

Using SNMP to Find a Port Number from a MAC Address on a Catalyst Switch

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a00801c9199.shtml

and

How To Get Dynamic CAM Entries (CAM Table) for Catalyst Switches Using SNMP

http://www.cisco.com/en/US/tech/tk648/tk362/technologies_tech_note09186a0080094a9b.shtml

The CAM table contains what you are looking for, namely MAC address to port information.

This should solve your problem.

Hope this helps

Martin

New Member

Re: get mac address

thanks - it the exact thing that i looking for

Re: get mac address

Good to know!

Happy New Year!

Martin

P.S.: please rate all helpful posts.

430
Views
0
Helpful
4
Replies