Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

How to find out, which switch port a user is connected

Hi,

How can we find out, at which switch and switch port does the particular pc/user is connected. I have the ip address of the pc/user. We have all Cisco IOS switches(i.e. 6509, 4507, 4503,2960,3550 etc). Can it be done by just single command or so.

Suppose, if we have around 200 switches. Then how can we find out.

Would appreciate any body's help on this. Thanks a lot in advance.

Regards

Dipak

2 REPLIES

Re: How to find out, which switch port a user is connected

Hello

From the core switch

This command will find the mac-address of the host

Ping x.x.x.x
Sh ip arp | in x.x.x.x ( IP address of host)

Then the below command will so either identify the port the host it is connected to or the port/trunk it originating from(possible a interconnect port to another switch and from this you can do the same again on that switch(s) and trace to the actual location of the host

Sh mac-address address xxxx.xxxx.xxxx


Res
Paul

Sent from Cisco Technical Support iPad App

Please don't forget to rate any posts that have been helpful. Thanks.
Super Bronze

Re: How to find out, which switch port a user is connected

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

From the core switch

As a clarification, you need to ping from a device with an "interface" on that subnet to obtain the destination host's MAC.

PS:

If you're fortunate enough to have Cisco equipment to support it, there's also a L2 traceroute - e.g.: http://www.cisco.com/en/US/docs/switches/lan/catalyst6500/ios/12.2SX/configuration/guide/l2trace.html

142
Views
0
Helpful
2
Replies
CreatePlease to create content