Friday, March 30, 2018

Find IP address on Cisco switch

I found two ways to locate an the port of an IP address on a Cisco switch.

If the IP address is assigned by DHCP and you have DCHP Snooping turned on (which you should), then you can use "sh ip dhcp snooping binding" to show all DHCP IP leases that went through that switch. 

If DHCP Snooping is not turned on and DHCP isn't used to assign the IP address, first ping the IP you're looking for on the switch. Then, run "sh ip arp" and get the mac address of the IP. Finally, use "sh mac address-table | include <mac address>" to show the interface the IP is on.

No comments:

Post a Comment