cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
767
Views
10
Helpful
4
Replies

How to see wich switch interface that associate to a certain device's IP or MAC address?

satyaz
Level 1
Level 1

Hi cisco experts!

So i'm a 4-months-old-Network Engineer which has a responsibility to troubleshoot end user's pc and cisco ip phone. Those devices connected to our access switch.

I have 2 questions : 

1. How to see wich switch interface that associate to a certain device's IP address?

2. How to see wich switch interface that associate to a certain device's MAC address?

Because usually there are problems with user pc for example, but i don't know which switch interface that i need to see. 

Any enlighment will be a huge help for me. Thx!

1 Accepted Solution

Accepted Solutions

Francesco Molino
VIP Alumni
VIP Alumni
Hi

On your core switch (the one hosting all svi, which are layer 3 interfaces), you can run the command sh ip arp x.x.x.x (ip address of your client).
This command will give you the mac address associated to that survive ip.

Then you can run: sh mac add add abcd.abcd.abcd (mac address you get previously).
This command will give you the interface where this mac is connected to. However, from the core switch, you will have first a port-channel or trunk interface going to your access switch. Then, once in this access switch, re-run the command and you'll get the final end user interface.


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

View solution in original post

4 Replies 4

Leo Laohoo
Hall of Fame
Hall of Fame

@satyaz wrote:

1. How to see wich switch interface that associate to a certain device's IP address?

2. How to see wich switch interface that associate to a certain device's MAC address?


If the downstream client is "talking", then enable IP Device Tracking.

Francesco Molino
VIP Alumni
VIP Alumni
Hi

On your core switch (the one hosting all svi, which are layer 3 interfaces), you can run the command sh ip arp x.x.x.x (ip address of your client).
This command will give you the mac address associated to that survive ip.

Then you can run: sh mac add add abcd.abcd.abcd (mac address you get previously).
This command will give you the interface where this mac is connected to. However, from the core switch, you will have first a port-channel or trunk interface going to your access switch. Then, once in this access switch, re-run the command and you'll get the final end user interface.


Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

God **bleep**, t works !

Thank you very much sir!

You're welcome!

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco