Tuesday 6 November 2012

find what port an ip is connected to on your cisco device

1 - ping your broadcast address so it will be in the arp table
ping  192.168.1.255

2 - Display the arp table, get the mac address
show arp | i 192.168.1.100

3 - search the mac address table for the mac address, this will tell you what port its connected to
sh mac address-table | i aaaa.bbbb.cccc

other commands that can help:
show cdp neighbors detail (only works with all cisco devices and if its enabled)
sh ip device tracking interface gigabitEthernet <Interface> (only works if enabled)

No comments:

Post a Comment