cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
45992
Views
5
Helpful
4
Replies

Finding a MAC address on the network

Scott Hanson
Level 3
Level 3

Hello,

 

 

On an all Cisco Network if I know the MAC address of a device on the network but not what switch it is on is there anyway to find out the switch it is on and the port?

 

 

thanks in advance!

4 Replies 4

Hello,

 

unless you have something like Cisco Network Assistant installed, you need to dig your way through to the switch where the host is connected. Let's say you are looking for MAC address ab12.cf34.aa21, on the router, issue the command:

 

show mac address-table | include ab12.cf34.aa21

 

The output will tell you the port of the connected device, e.g.:

 

ab12.cf34.aa21 DYNAMIC Fa0/2

 

If Fa0/2 is a trunk, go to that switch and follow the steps above, until you find the access port where the host with that MAC address is connected to...

 

Not the answer I was hoping for but thanks just the same

balaji.bandi
Hall of Fame
Hall of Fame

Why not write small shell script with scan all switches using snmp all devices in the network, if you have more switches in the network. can not required to go each switch and do show mac table.

 

BB

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Leo Laohoo
Hall of Fame
Hall of Fame
If the client doesn't talk OUT then no MAC address will be registered on the core/distro switch.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card