Displaying Port MAC Security Information

When port MAC security is enabled, various show commands can be used to display information about port security and secure MAC addresses.

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

  • The port security settings for an individual port or for all the ports on a specified module
  • The secure MAC addresses configured on the device
  • Port security statistics for an interface or for a module

The following example displays the port security settings for an individual port.

device# show port security ethernet 1/7/11

Port   Security Violation Shutdown-Time Age-Time Max-MAC
------ -------- --------- ------------- -------- -------
1/7/11 disabled  shutdown            10       10       1

The following example lists the secure MAC addresses configured on the device.

device# show port security mac

Port   Num-Addr Secure-Src-Addr Resource Age-Left Shutdown/Time-Left
------ -------- --------------- -------- -------- ------------------
1/7/11        1   0000.018.747c    Local       10                 no

The following example displays port security statistics for an individual port.

device# show port security statistics ethernet 1/7/11

Port   Total-Addrs Maximum-Addrs Violation Shutdown/Time-Left
-----  ----------- ------------- --------- ------------------
1/7/11           1             1         0                 no