config port_security ports
Restrictions
Example usage:
To configure the port security:
show port_security
Purpose
Syntax
Description
Parameters
Restrictions
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#
----
1
2
3
4
5
6
7
8
9
10
DES-3026:4#
DES-30XX Layer 2 Switch CLI Reference Manual
Only administrator-level users can issue this command.
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#
Used to display the current port security configuration.
show port_security {ports <portlist>}
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.
ports <portlist> − Specifies a port or range of ports to be viewed.
None.
Admin State
Max. Learning Addr.
-----------
-------------------
Disabled
Disabled
Disabled
Disabled
Disabled
Disabled
Enabled
Disabled
Disabled
Disabled
DeleteOnReset – The locked addresses will not age out
until the Switch has been reset.
Lock Address Mode
-----------------
1
DeleteOnReset
1
DeleteOnReset
1
DeleteOnReset
1
DeleteOnReset
1
DeleteOnReset
1
DeleteOnReset
10
DeleteOnReset
1
DeleteOnReset
1
DeleteOnReset
1
DeleteOnReset
124