cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1512
Views
4
Helpful
3
Replies

tracing switch port.

ilnaiduccna
Level 1
Level 1

Dear All,

If have IP-address only and I want to know in which port that particular device connected.

Regards,

Naidu.

3 Replies 3

gauravshar
Level 2
Level 2

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

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.

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

Review Cisco Networking products for a $25 gift card