cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2245
Views
0
Helpful
5
Replies

Show to get interfaces more than one MAC address connected on sumary way

BrunoPrata
Level 1
Level 1

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

5 Replies 5

ADP_89
Level 1
Level 1

Hello,

 

It might depends on the platform, but have you tried "show mac address-table interface Gi1/0/45 | count ."

 

ADP

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 .

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

Thank you. I will try.

Hello,

 

I think you can do this with a TCL script...I'll see if I can configure something...