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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

how to find which switch a host pc connected??

how to find which switch a host pc connected??

1 REPLY
Hall of Fame Super Silver

Re: how to find which switch a host pc connected??

Hello Vinoth,

the steps are:

a) on the pc have someone gets its ip address using ipconfig /all

b) goes on the PC default gateway ping the PC and gets its MAC address using

sh ip arp pc.address

c) the sh ip arp tells you the outgoing interface on the router.

use

sh cdp n router.interface det

d) telnet/ssh to the switch ip address and start to look for the pc.mac.address

use

sh mac-address-table address pc.mac.address

verify what is out the interface if there is another switch again

sh cdp n switch.port det

access the next switch

sh mac-address-table address pc.mac.address

until you find a switch that out of an access port has the pc.mac.address

this works if the PC is connected.

Hope to help

Giuseppe

2937
Views
0
Helpful
1
Replies