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

MAC Search on a switch

Is there a command on the cisco switches that will allow you to type in and search for a specific MAC address of a PC and it tell you what port that pc is connected to? or even search by IP?

I know on HP Switches it is possible to search for a MAC but not sure about cisco switches.

5 REPLIES
Silver

Re: MAC Search on a switch

The "show cam " command will show you which port a PC is attached to (if locally attached) or what trunk or uplink port it has been learnt through.

http://www.cisco.com/univercd/cc/td/doc/product/lan/cat6000/sw_7_6/cmd_ref/sh_a_c.htm#18219

Console> (enable) show cam 00-00-81-01-23-45

* = Static Entry. + = Permanent Entry. # = System Entry. R = Router Entry.

X = Port Security Entry

VLAN Dest MAC/Route Des [CoS] Destination Ports or VCs / [Protocol Type]

---- ------------------ ----- -------------------------------------------

1 00-00-81-01-23-45 2/9 [IP]

Re: MAC Search on a switch

Hi,

it's also possible to use L2trace command on CatOS switches.

Regards,

Milan

New Member

Re: MAC Search on a switch

I have tried using show cam but the switches i have don't seem to recognise the command, what version of IOS do you need??

New Member

Re: MAC Search on a switch

If you are using IOS based Catalysts, "sh mac-address-table | include 1234.5678.90ab" should do the trick.

New Member

Re: MAC Search on a switch

If you have a whole group of IOS based Catalysts (in a cluster) is there any way to search all of them at once for the mac-address in question?

335
Views
3
Helpful
5
Replies
CreatePlease to create content