DES-30XX Layer 2 Switch CLI Reference Manual
124
config port_security ports
DeleteOnReset
– The locked addresses will not age out
until the Switch has been reset.
Restrictions Only
administrator-level users can issue this command.
Example usage:
To configure the port security:
DES-3026:4#config port_security ports 1-5 admin_state enable
max_learning_addr 5 lock_address_mode DeleteOnReset
Command: config port_security ports 1-5 admin_state enable
max_learning_addr 5 lock_address_mode DeleteOnReset
Success
DES-3026:4#
show port_security
Purpose
Used to display the current port security configuration.
Syntax
show port_security {ports <portlist>}
Description
This command is used to display port security information of the
Switch ports. The information displayed includes port security admin
state, maximum number of learning address and lock mode.
Parameters
ports <portlist>
−
Specifies a port or range of ports to be viewed.
Restrictions None.
Example usage:
To display the port security configuration:
DES-3026:4#show port_security ports 1-10
Command: show port_security ports 1-10
Port# Admin State Max. Learning Addr. Lock Address Mode
---- ----------- ------------------- -----------------
1 Disabled 1 DeleteOnReset
2 Disabled 1 DeleteOnReset
3 Disabled 1 DeleteOnReset
4 Disabled 1 DeleteOnReset
5 Disabled 1 DeleteOnReset
6 Disabled 1 DeleteOnReset
7 Enabled 10 DeleteOnReset
8 Disabled 1 DeleteOnReset
9 Disabled 1 DeleteOnReset
10 Disabled 1 DeleteOnReset
DES-3026:4#