DES-3000 Series Layer 2 Switch CLI Reference Manual
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-8
Command: show port_security ports 1-8
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
DES-3026:4#
delete port_security_entry_vlan_name
Purpose
Used to delete an entry from the Switch’s port security settings.
Syntax
delete
port_security_entry vlan_name <vlan_name 32> mac_address
<macaddr> port <port>
Description
This command is used to remove an entry from the port security entries
learned by the Switch and entered into the forwarding database.
Parameters
vlan_name <vlan_name 32>
- Enter the corresponding VLAN of the entry
to delete.
mac_address <macaddr>
- Enter the corresponding MAC address of the
entry to delete.
port <port>
- Enter the corresponding port of the entry to delete.
Restrictions Only
administrator-level users can issue this command.
139