Virtualization, Cloud, Infrastructure and all that stuff in-between
My ramblings on the stuff that holds it all together
How to find which port a device MAC address is plugged into on a Cisco switch
March 30, 2018
Posted by on I have to do this every so-often to reverse engineer the cabling in my lab (which isn’t easily accessible, well.. without some walking and moving things), and by the time I have to do it, I’ve invariably forgotten the command fro the last time and waste time googling the many variants to do so, so – parking it here for reference!
show mac address-table | include
note: MAC needs to be in aaaa.bbbb format (don’t ask me why, you can also search for partial MACs, e.g the last 2 digits)
show mac address-table | include e50d
Will give you an output like..
100 0418.d6ac.e50d DYNAMIC Fa0/44