xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
545 
 
Example 
To configure the maximum number of VLAN-based port security entries on VLAN 1 to be 64: 
DGS-3120-24TC:admin# config port_security vlan vlanid 1 max_learning_addr 64 
Command: config port_security vlan vlanid 1 max_learning_addr 64 
 
Success. 
 
 
56-4  delete port_security_entry 
Description 
This command is used to delete a port security entry. 
 
Format 
delete port_security_entry [vlan <vlan_name 32> | vlanid <vlanid 1-4094>] mac_address 
<macaddr> 
 
Parameters 
vlan - Specify the VLAN by VLAN name. 
<vlan_name 32> - Enter the VLAN name here. This name can be up to 32 characters long. 
vlanid - Specify the VLAN by VLAN ID. 
<vlanid 1-4094>
 - Enter the VLAN ID list here. This value must be between 1 and 4094. 
mac_address - Specify the MAC address of the entry. 
<macaddr> - Enter the MAC address used here. 
 
Restrictions 
Only Administrator, Operator and Power-User level users can issue this command. 
 
Example 
To delete the port security entry with a MAC address of 00-00-00-00-00-01 on VLAN 1: 
DGS-3120-24TC:admin# delete port_security_entry vlanid 1 mac_address 00-00-00-
00-00-01 
Command: delete port_security_entry vlanid 1 mac_address 00-00-00-00-00-01 
 
Success. 
 
 
56-5  clear port_security_entry 
Description 
This command is used to clear the MAC entries learned by the port security function.