D-Link xStackTM DGS/DXS-3300 Series Switch User Manual


 
xStack DGS/DXS-3300 Series Layer 3 Stackable Gigabit Ethernet Switch CLI Manual
30
To configure the port security:
DGS-3324SRi:4#config port_security ports 5:1-5:5 admin_state
enable max_learning_addr 5 lock_address_mode DeleteOnReset
Command: config port_security ports 5:1-5:5 admin_state
enable max_learning_addr 5 lock_address_mode DeleteOnReset
Success
DGS-3324SRi: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.
The port list is specified by listing the lowest switch number and the
beginning port number on that switch, separated by a colon. Then the
highest switch number, and the highest port number of the range
(also separated by a colon) are specified. The beginning and end of
the port list range are separated by a dash. For example, 1:3
specifies switch number 1, port 3. 2:4 specifies switch number 2, port
4. 1:3-2:4 specifies all of the ports between switch 1, port 3 and
switch 2, port 4 in numerical order.
Restrictions None.
Example usage:
To display the port security configuration:
DGS-3324SRi:4#show port_security ports 1:1-1:19
Command: show port_security ports 1:1-1:19
Port# Admin State Max. Learning Addr. Lock Address Mode
---- ----------- ------------------- -----------------
1:1 Disabled 1 DeleteOnReset
1:2 Disabled 1 DeleteOnReset
1:3 Disabled 1 DeleteOnReset
1:4 Disabled 1 DeleteOnReset
1:5 Disabled 1 DeleteOnReset
1:6 Disabled 1 DeleteOnReset
1:7 Enabled 10 DeleteOnReset
1:8 Disabled 1 DeleteOnReset
1:9 Disabled 1 DeleteOnReset
1:10 Disabled 1 DeleteOnReset
1:11 Disabled 1 DeleteOnReset
1:12 Disabled 1 DeleteOnReset
1:13 Disabled 1 DeleteOnReset
1:14 Disabled 1 DeleteOnReset
1:15 Disabled 1 DeleteOnReset
1:16 Disabled 1 DeleteOnReset
1:17 Disabled 1 DeleteOnReset
1:18 Disabled 1 DeleteOnReset
1:19 Disabled 1 DeleteOnReset
DGS-3324SRi:4#