10-21-2003 03:23 PM - edited 03-02-2019 11:09 AM
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.
10-21-2003 11:17 PM
The "show cam
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]
01-15-2004 11:18 PM
Hi,
it's also possible to use L2trace command on CatOS switches.
Regards,
Milan
10-22-2003 12:15 AM
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??
10-22-2003 02:00 AM
If you are using IOS based Catalysts, "sh mac-address-table | include 1234.5678.90ab" should do the trick.
01-15-2004 03:53 PM
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?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide