A SERVICE OF

logo

xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
29
clear port_security_entry
Purpose Used to clear MAC address entries learned from a specified port for the port security
function.
Syntax
clear port_security_entry port <portlist>
Description This command is used to clear MAC address entries which were learned by the Switch
by a specified port. This command only relates to the port security function. This
command will only take effect if the lock address mode set using the config
port_security ports command is set as permanent or delete on reset.
Parameters
<portlist> Specifies a port or port range to clear. 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. Non–contiguous portlist entries are separated by a
comma. (ex: 1:1–1:3,1:7–1:9)
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To clear a port security entry by port:
DGS–3426:5# clear port_security_entry port 1:6
Command: clear port_security_entry port 1:6
Success.
DGS–3426:5#
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’s ports. The
information displayed includes port security, admin state, maximum number of learning
address and lock mode.
Parameters
<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. Non–contiguous portlist entries are
separated by a comma. (ex: 1:1–1:3,1:7–1:9)
Restrictions None.
Example usage:
To display the port security configuration: