01-04-2017 10:02 AM - edited 03-08-2019 08:47 AM
Does anyone know of a way to dump all connected mac addresses connected to every port on a Cisco switch(3850s)?
What would be ideal would be something like the 'show mac address-table interface' command, but for an interface range rather than a specific interface:
This is the type of output I'm looking for, with each mac address listed for the port in question:
switchxxx#show mac address-table interface g3/0/11
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
xx2 28f1.xxxx.xxxx DYNAMIC Gi3/0/11
xx2 e089.xxxx.xxxx DYNAMIC Gi3/0/11
xx3 e089.xxxx.xxxx DYNAMIC Gi3/0/11
Total Mac Addresses for this criterion: 3
switchxxx#
I'm thinking I could script it, but curious if there's an easier way.
Thanks,
Jon
Solved! Go to Solution.