Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

trace mac-address

Hi all,

By using mac-address we can trace the IP address of the particular switch port, like that is there any way to trace mac-address & connected switch port with IP address.

It would be appreciated.

Regards,

Naidu.

2 REPLIES
Hall of Fame Super Blue

Re: trace mac-address

Naidu

If you have just an IP address you need to go onto the device that has the layer 3 interface for the subnet of that ip address and look at the arp table eg.

PC = 192.168.5.10 vlan10

Lgo onto the switch with the vlan 10 L3 interface on it and run

"sh arp | include 192.168.5.10"

This will give you the mac-address of the PC. You can then run

sh mac-address-table address "xxxx.xxxx.xxxx" (IOS)

or

sh cam xx-xx-xx-xx-xx-xx (Catos)

Note that the above command(s) may well return a port that is connected to anothe switch (most likely a trunk). You would then need to log onto the switch at the other end of the link and run the mac-address commands again.

HTH

Jon

New Member

Re: trace mac-address

Hi Jon,

Thanks for your early reply.

I tried both commands and worked out.

Regards,

Naidu.

477
Views
4
Helpful
2
Replies
CreatePlease to create content