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. And see here for current known issues.

New Member

How to determine which port that a host connects

Hi,

I'd like to associate a host to a port. I know the IP and MAC address of the host in question but I'd ilke to find out the switch port it connects without having to physically trace cables. Is there an easy way of doing this?

Thanks

Paul

3 REPLIES
Hall of Fame Super Blue

Re: How to determine which port that a host connects

Hi

Do you know the switch it is connected to. If not doesn't matter, just takes a bit more time.

Assuming IOS on your switches

sh mac-address-table address "mac address".

This will either tell you which port it is attached to or it will show it has been learned via a trunk port. If it has been learn't by a trunk port you need to do a

"sh cdp neigh" and track down the switch at the other end of the trunk link and repeat the above process.

HTH

Jon

Edit - if CatOS command would be

"sh cam "mac address"

Re: How to determine which port that a host connects

Hi Paul!

On IOS switches, you can use these commands:

show ip arp

and

show mac-address-table

If you know the specific MAC, then you could do (e.g.)

show mac-address-table | include 01234.5678.9abc

Hope this helps!

Kind regards,

Graeme

New Member

Re: How to determine which port that a host connects

Hi,

Superb that's just what I wanted.

Thanks very much

Paul

129
Views
0
Helpful
3
Replies
CreatePlease to create content