trace mac-address

Unanswered Question
Jan 3rd, 2008
User Badges:

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.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4 (1 ratings)
Loading.
Jon Marshall Thu, 01/03/2008 - 23:49
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

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


ilnaiduccna Fri, 01/04/2008 - 02:07
User Badges:


Hi Jon,


Thanks for your early reply.


I tried both commands and worked out.


Regards,

Naidu.

Actions

This Discussion