09-16-2018 06:48 AM - edited 03-08-2019 04:10 PM
Hello world,
I know that is possible to get this information with the command below, but I need to count the macs. Is there any way to get them something like Gi 1/0/45 - 8 MACS?
sh mac address-table
09-16-2018 07:12 AM
Hello,
It might depends on the platform, but have you tried "show mac address-table interface Gi1/0/45 | count ."
ADP
09-16-2018 07:17 AM
Good tip, but is there a way to check that on the whole sw instead of per interface ?
I would like to say, get the list of all interfaces on the SW and on each one have the count number... because I would like to the ones that have more than one mac .
09-16-2018 08:40 AM
I see what you mean. There is no way to do that via the show mac-address table command.
But there is a way using port security.. Well this is an entire framework to add to the data plane security in order to get what you are looking for. Let's assume that you are keen to implement it and you understand the consequences, once you enabled the max mac address per port you can use the command "show port-security" to get a view of learned macs for each interface where the secutity is enabled.
Read about it here: https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst4500/12-2/20ew/configuration/guide/config/port_sec.html
And let me know if this might work 4 u.
HTH,
ADP
09-16-2018 04:56 PM
Thank you. I will try.
09-16-2018 02:17 PM
Hello,
I think you can do this with a TCL script...I'll see if I can configure something...
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide