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

Displaying port MAC security settings

You can display the port security settings for an individual port or for all the ports on a specified device. For example, to display the port security settings for port 1/7/11, enter the following command.


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

Displaying secure MAC addresses information

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


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

Displaying port security statistics

To display port security statistics for interface 1/7/11, enter the following command.


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

Displaying restricted MAC addresses information

To display a list of restricted MAC addresses on a port, enter a command such as the following.


device# show port security ethernet 1/1/5 restricted-macs