Command Reference Guide

Port Security Commands
CLI Command Reference
September 2014 Page 449
HP Moonshot Switch Module CLI Command Reference
port-security mac-address move
This command converts dynamically locked MAC addresses to statically locked addresses for an interface or
range of interfaces.
port-security mac-address sticky
This command enables sticky mode Port MAC Locking on a port. If accompanied by a MAC address and a VLAN
ID (for interface config mode only), it adds a sticky MAC address to the list of statically locked MAC addresses.
These sticky addresses are converted back to dynamically locked addresses if sticky mode is disabled on the
port. The
vid is the VLAN ID. The Global command applies the “sticky” mode to all valid interfaces (physical and
LAG). There is no global sticky mode as such.
Sticky addresses that are dynamically learned will appear in
show running config as port-security mac-
address sticky mac-address vid entries. This distinguishes them from static entries.
Example: The following shows an example of the command.
(Routing)(Config)# port-security mac-address sticky
(Routing)(Interface)# port-security mac-address sticky
(Routing)(Interface)# port-security mac-address sticky 00:00:00:00:00:01 2
no port-security mac-address sticky
The no form removes the sticky mode. The sticky MAC address can be deleted by using the command no port-
security mac-address mac-address vid
.
Format
port-security mac-address move
Mode Interface Config
Format
port-security mac-address sticky
Mode Global Config
Format
port-security mac-address sticky [mac-address vlanid]
Mode Interface Config
Format
no port-security mac-address sticky
Mode Global Config
Format
no port-security mac-address sticky [mac-address vlanid]
Mode Interface Config