D-Link dgs-3420 Work Light User Manual


 
xStack® DGS-3420 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide
639
64-5 clear port_security_entry
Description
This command is used to clear the MAC entries learned from the specified port(s) or VLAN(s) for
the port security function.
Format
clear port_security_entry {ports [<portlist> | all] | {[vlan <vlan_name 32> | vlanid <vidlist>]}}
Parameters
ports - (Optional) The port-security entries learned on the specified port will be cleared.
<portlist> - Specify a range of ports to be configured.
all
- All the port-security entries learned by the system will be cleared.
vlan - (Optional) The port-security entries learned on the specified VLANs will be cleared.
<vlan_name 32> - Specify the VLAN name. The maximum length is 32 characters.
vlanid - (Optional) Specify a list of VLANs by VLAN ID.
<vidlist> - Specify a list of the VLAN IDs.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To clear port security entry for port 6:
DGS-3420-28SC:admin#clear port_security_entry port 6
Command: clear port_security_entry port 6
Success.
DGS-3420-28SC:admin#
64-6 show port_security_entry
Description
This command is used to display a port security entry.
Format
show port_security_entry {ports {<portlist>} {[vlan <vlan_name 32> | vlanid <vidlist>]}}
Parameters
ports
- (Optional) Specify a range of ports to be displayed.
<portlist> - Specify a range of ports to be displayed.
vlan - (Optional) Specify a VLAN to display its entry.
<vlan_name 32>
- Specify the VLAN name. The maximum length is 32 characters.
vlanid - (Optional) Specify a VLAN list to display its entry.
<vidlist> - Specify a list of the VLAN IDs.