cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1541
Views
0
Helpful
2
Replies

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

dipak jaiswal
Level 1
Level 1

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 2

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 rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: