07-31-2013 04:24 AM - edited 03-07-2019 02:41 PM
I was wondering if there is a simple way of tracking down what port an IP address lives on in a network.
I some times recive calls that an IP address on my network is flooding a virus out to another company. I have about 600 PC's in my cisco network and would like to know if their is an easy way of doing this.
07-31-2013 08:07 AM
look in dhcp for the IP address, find the corresponding MAC address.
then do a show mac address table xxxx.xxxx.xxxx
that will tell you the port that it is plugged into
07-31-2013 08:40 AM
Assuming you have a Distribution > Access Switch topology.
Login to your distribution switch and ping the device.
#ping 10.1.1.1
Then look in the ARP cache to obtain the MAC address:
#show ip arp 10.1.1.1
Then look in the MAC address table for that MAC address to find which Access switch the host is connected to:
#show mac address-table | i 1234:5678:abcd
This should give you an outgoing port number which will be a link to one of your access switches. To find out which switch look at the CDP info for that port.
#show cdp neighbout Gi1/1
Once you know the Access Switch the host is connected to, login to that switch and look in the MAC address table again:
#show mac address-table | i 1234:5678:abcd
Assuming there are no daisy chained switches, the port which is shown in the MAC table should be the port your hos is connected to.
Cheers
07-31-2013 11:28 AM
Thank you very much for the response very good steps and it did help
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide