cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3439
Views
3
Helpful
5
Replies

MAC Search on a switch

mark.withington
Level 1
Level 1

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 5

bbranch
Level 3
Level 3

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]

Hi,

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

Regards,

Milan

mark.withington
Level 1
Level 1

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??

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

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?

Review Cisco Networking for a $25 gift card