Thursday, September 19, 2013

How to find IP address and port of device attached to a CISCO switch

Connect to the switch

ping 192.168.1.x -- ping device
show ip arp | inc 192.168.1.x -- look for the mac address
show mac-address-table | Inc 0000.2222.3333 -- use mac address from the ARP table

The result will be something like this

192.168.1.x    00:17:32  0000.2222.3333  e1/10