02-02-2008 09:51 AM - edited 03-05-2019 08:54 PM
Dear All,
If have IP-address only and I want to know in which port that particular device connected.
Regards,
Naidu.
02-02-2008 12:28 PM
Mr. Naidu,
There are two commands you can take simultaneous help from.
At router do 'sho ip arp IP adress' which should give IP add to MAC binding. Note this mac address. Now you come to the switch connected to router and do 'sho mac-addres | inc MAC address', you will get the interface which either connects to the device or leads to the device through another switch. Take help of 'sho cdp ne' to identify any cisco device/switch at that port. Do the same 'sho mac-addres | inc mac address' operation on the next switch and you will ultimatelty reach to the device.
there is one more method called 'layer2 traceroute' which require mac of the device to be traced and all the swithes in between should support layer 2 tracert feature.
search google or cisco.com for l2 tracert details.
--gaurav
02-03-2008 09:08 PM
Hi gaurav,
Thanks for your qucik respond but as you told the command 'sh mac-address | inc MAC address' giving only vlan number and again mac-adds.
AP_CS01_VJN#sh mac-address-table | include 080.421b.50c2
11 0080.421b.50c2 DYNAMIC Po1
Regards,
Naidu.
02-03-2008 09:25 PM
Exactly. Now identify which cisco switch is connected to Po1 port of the AP_CS01_VJN switch. you can use 'show cdp ne' for this task. After identifying this switch telnet to it and repeat the task of 'show mac-add-------' and again look for 'sho cdp ne' for the new port. Let me know if you get the desired answer.
--gaurav
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