Displaying port MAC security information

You can display the following information about the port MAC security feature:

Displaying port MAC security details on the device

To display the port MAC security configured on a particular interface, enter the following command:

device# configure terminal
device(config)# interface Ethernet 3/2
device(conf-if-eth-3/2)# do show run interface Ethernet 3/2
interface Ethernet 3/2
switchport
switchport mode trunk
switchport port-security
switchport port-security max 10
switchport port-security mac-address 3200.1110.0002 vlan 250
switchport trunk allowed vlan add 250
switchport trunk tag native-vlan
no shutdown

Displaying port MAC security configuration details

To display the port MAC security configuration details across ports on the device, enter the following command:

device(conf-if-eth-3/2)# do show port-security
Secure    MaxSecureAddr  CurrentAddr  StaticSec  Violated  Action   Sticky
Port         (count)       (count)     (count)
Eth 3/2       10           0            1           No     Shutdown  No

Displaying port MAC security settings for an individual port

To display the statistics of the port MAC security configured for an interface, enter the following command:

device(conf-if-eth-3/2)# do show port-security interface ethernet 3/2
Port Security               : Enabled
Port Status                 : Up
Violation Mode              : Shutdown
Violated                    : No
Sticky Enabled              : No
Maximum MAC addresses       : 10
Total MAC addresses         : 0
Configured MAC addresses    : 1
Last violation time         :
Shutdown time (in Minutes)  : 0

Displaying secure MAC addresses information

To list the secure MAC addresses configured on the device, enter the following command.

device(conf-if-eth-3/2)# do show port-security addresses
                    Secure Mac Address Table
----------------------------------------------------------------
Vlan       Mac-address            Type                     Ports
250        3200.1110.0002         Secure-Static            Eth 3/2