cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
313
Views
0
Helpful
3
Replies

How to determine which port that a host connects

paul_xedos
Level 1
Level 1

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 3

Jon Marshall
Hall of Fame
Hall of Fame

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"

graemeporter
Level 1
Level 1

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

Hi,

Superb that's just what I wanted.

Thanks very much

Paul

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: