Port security commands
display port-security
Use display port-security to display port security configuration, operation information, and statistics for
one or more ports.
Syntax
display port-security [ interface interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
Usage guidelines
If no port is specified, this command displays port security information for all ports.
Examples
# Display port security information for all ports.
<Sysname> display port-security
Port security is enabled globally
AutoLearn aging time is 1 minutes
Disableport Timeout: 20s
OUI value:
Index is 1, OUI value is 000d1a
Index is 2, OUI value is 003c12
Ten-GigabitEthernet1/0/1 is link-down
Port mode: userLoginWithOUI
NeedToKnow mode: NeedToKnowOnly
Intrusion protection mode: DisablePort
Max number of secure MAC addresses: 50
Current number of secure MAC addresses: 0
Authorization is ignored
Ten-GigabitEthernet1/0/2 is link-down
Port mode: noRestriction
NeedToKnow mode: disabled
Intrusion protection mode: NoAction
116