set interface gigabit-ethernet port-security sticky


The set interface gigabit-ethernet port-security sticky command is used to enable or disable the sticky function on an interface.


Command Syntax
set interface gigabit-ethernet <interface-name> port-security sticky <true | false>


Parameter

Parameter

Description

gigabit-ethernet <interface-name>

Specifies the physical interface name. For example, te-1/1/49, ge-1/1/1.

sticky <true | false>

Enables or disables the sticky function on an interface. The value could be true or false.

  •   true: enables the sticky MAC function
  •   false: disables the sticky MAC function.

By default, sticky function is disabled.


Usage Guidelines

When the secure port goes down and up, dynamic secure MAC addresses will be cleared by the system. You can enable the sticky function to solve this problem.

After enabled the sticky function, the dynamic secure MAC addresses learned on the port are converted to sticky secure MAC. The sticky MAC will not be aged, and the sticky MAC table entries will not be lost when the port is down and up.

 NOTE:

  •   When the switch reboots or restarts, sticky secure MAC addresses are lost and need to be re-learned.
  •   Disabling the sticky function converts the sticky secure MAC addresses on the current interface to dynamic secure MAC addresses.


Example
• Enable the sticky function on interface ge-1/1/1.

admin@XorPlus# set interface gigabit-ethernet ge-1/1/1 port-security sticky true
admin@XorPlus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.