Configure Aging Function of Static MAC Address
Configuration Condition
Before configuring the aging function of the static MAC address, first complete the following task:
- Enable the port security function
Enable Aging Function of Static MAC Address
To detect whether the terminal of the effective entry of the MAC rule or IP rule is online, the user can enable the aging function of the static MAC address. After the aging function of the static MAC address and if it is detected that the terminal is offline, the effective entry of the terminal is deleted so that the chip resources can be released.
Table 3-9 Enable the aging function of the static MAC address
Step
|
Command
|
Description
|
Enter global configuration mode
|
configure terminal
|
-
|
Enter the L2 Ethernet interface configuration mode
|
interface interface-name
|
Either
After entering the L2
|
Enter the aggregation group configuration mode
|
interface link-aggregation link-aggregation-id
|
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.
|
Enable the aging function of the static MAC address
|
port-security aging static
|
Mandatory
By default, the aging function of the static MAC address is disabled.
|
Configure Age Time of Static MAC Address
The user can configure the reasonable age time according to the actual network environment configuration. In the general application, just keep the default value.
Table 3-10 Configure the age time of the static MAC address
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 age time of the static MAC address
|
port-security aging time time-value
|
Mandatory
By default, the age time of the static MAC address is 1 minute.
|