Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

New Member

tracing switch port.

Dear All,

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

Regards,

Naidu.

3 REPLIES
New Member

Re: tracing switch port.

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

New Member

Re: tracing switch port.

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.

New Member

Re: tracing switch port.

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

565
Views
4
Helpful
3
Replies
CreatePlease to create content