08-14-2007 01:50 AM - edited 03-05-2019 05:53 PM
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
08-14-2007 01:59 AM
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"
08-14-2007 02:00 AM
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
08-14-2007 02:04 AM
Hi,
Superb that's just what I wanted.
Thanks very much
Paul
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: