port-security timer autolearn aging

Use port-security timer autolearn aging to set the secure MAC aging timer.

Use undo port-security timer autolearn aging to restore the default.

Syntax

port-security timer autolearn aging time-value

undo port-security timer autolearn aging

Default

Secure MAC addresses do not age out.

Views

System view

Predefined user roles

network-admin

mdc-admin

Parameters

time-value: Specifies the aging timer in minutes for secure MAC addresses. The value is in the range of 0 to 129600. To disable the aging timer, set the timer to 0.

Usage guidelines

The timer applies to all sticky secure MAC addresses and those automatically learned by a port.

A short aging time improves port access security and port resource utility but affects online user stability. Set an appropriate secure MAC address aging timer according to your device performance and the network environment.

Examples

# Set the secure MAC aging timer to 30 minutes.

<Sysname> system-view
[Sysname] port-security timer autolearn aging 30

Related commands

display port-security

port-security mac-address security