cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
Join Customer Connection to register!
151
Views
0
Helpful
1
Replies
zakfleming1
Beginner

Show ports that have more than 2 Mac Addresses

Hi,

 

I was wondering if there is a way using the show mac address-table command to show a list of ports that have more than 2 mac addresses associated with them please? show mac address-table returns many unwanted results and makes it hard to work with.

 

Thanks

1 REPLY 1
Rolf Fischer
Engager

Hi,

I'm not aware of such a command but you could enable port-security on your access-ports, allow the expected maximum number of MAC addresses per port and use the "show port-security" command.

Example:

interface range <range>
 switchport port-security maximum 10
 switchport port-security violation restict
 switchport port-security
!

Sw1#show port-security | include _[2-9]_
Secure Port  MaxSecureAddr  CurrentAddr  SecurityViolation  Security Action
                (Count)       (Count)          (Count)
---------------------------------------------------------------------------
     Fa2/17             10            2                  0         Restrict
     Fa2/38             10            2                  0         Restrict

 

HTH

Rolf