01-03-2008 11:02 PM - edited 03-05-2019 08:16 PM
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.
01-03-2008 11:49 PM
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
01-04-2008 02:07 AM
Hi Jon,
Thanks for your early reply.
I tried both commands and worked out.
Regards,
Naidu.
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