cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1151
Views
4
Helpful
2
Replies

trace mac-address

ilnaiduccna
Level 1
Level 1

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 2

Jon Marshall
Hall of Fame
Hall of Fame

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

Hi Jon,

Thanks for your early reply.

I tried both commands and worked out.

Regards,

Naidu.