Configure Learn Mode of STICKY Rule
Configuration Condition
Before configuring the learn mode of the STICKY rule, first complete the following task:
- Enable the port security function
Configure Learn Mode of STICKY Rule
If the user hopes to perform STICKY learning by MAC or MAC + VLAN, you can configure the learn mode of the STICKY rule as MAC mode. If the user hopes to perform the STICKY rule learning by MAC +IP, you can configure the learn mode of the STICKY rule as MAC+IP mode.
Table 3-8 Configure the learn mode of the STICKY rule
Step
|
Command
|
Description
|
Enter global configuration mode
|
configure terminal
|
-
|
Enter the L2 Ethernet interface configuration mode
|
interface interface-name
|
Either
After entering the L2 Ethernet interface configuration mode, the subsequent configuration just takes effect on the current port. After entering the aggregation group configuration mode, the subsequent configuration just takes effect on the aggregation group.
|
Enter the aggregation group configuration mode
|
interface link-aggregation link-aggregation-id
|
Configure the learn mode of the STICKY rule
|
port-security permit mac-address sticky mode { mac | mac-ip }
|
Mandatory
By default, the learn mode of the STICKY rule is MAC mode.
|