User`s guide
113
19
PORT SECURITY COMMANDS
The Port Security commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command Parameter
config port_security
[<portlist> | all] {admin_state [enable | disable] | max_learning_addr <int 0-64> |
trap <interval 1-1000000>}
show port_security {<portlist>}
Each command is listed in detail, as follows:
config port_security
Purpose
To configure port security settings.
Syntax config port_security [<portlist> | all] {admin_state [enable |
disable] | max_learning_addr <int 0-64> | trap <interval 1-
1000000>}
Description
The config port_security command configures port security
settings for specific ports.
Parameters
portlist – A port or range of ports to be configured.
all – Configures port security for all ports on the Switch.
admin_state [enable | disable] – Enables or disables port security for
the listed ports.
max_learning_addr <int 0-64> - Limits the number of MAC
addresses dynamically listed in the FDB for the ports.
trap <interval 1-1000000> - Sends SNMP traps and defines the
minimum amount of time in seconds between consecutive traps.
Restrictions
Only administrator-level users can issue this command.
Example usage:
To configure port security:
DGS3100# config port_security 1-5 admin_state enable
max_learning_addr 5
Success.
DGS3100#