mac-address aging-time (Bridge domain view)

Function

The mac-address aging-time command configures the aging time of dynamic MAC address entries in a specified VLAN.

The undo mac-address aging-time command restores the default aging time.

The default aging time of dynamic MAC address entries is 300 seconds.

Format

mac-address aging-time timevalue

undo mac-address aging-time

Parameters

Parameter Description Value
timevalue

Specifies the aging time of dynamic MAC address entries.

The value is an integer that can be 0, or ranges from 60 to 1,000,000, in seconds.

If the aging time is set to 0, all the dynamic entries are not aged.

Views

Bridge domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mac write

Usage Guidelines

Usage Scenario

As network topologies change constantly, a device learns more and more MAC addresses. To avoid the explosive growth of MAC address entries, you can use the mac-address aging-time command to set a proper aging time to have the invalid MAC address entries deleted in time.

The system starts an aging timer for each dynamic MAC address entry. If the MAC address entry is not updated before the aging time expires, the entry will be deleted. If the MAC address entry is updated before the aging time expires, the aging time of the MAC address entry will be recalculated. The shorter the aging time is, the more sensitive a device is to the network changes.

The aging time of dynamic MAC address entries should be set based on the network condition and device performance.The aging time of dynamic MAC address entries in a stable network can be set longer.

  • The aging time of dynamic MAC address entries in a constantly changing network can be set shorter.
  • The capacity of the MAC address table on a low-end device is set smaller than that of the MAC address table on a high-end device. The aging time of MAC address entries on the low-end device can be set shorter to speed up entry aging and save space of the MAC address table.

Configuration Impact

If the aging time of dynamic MAC address entries is set to 0 seconds, the dynamic MAC address entries will not be aged and the MAC address entries in the MAC address table may grow explosively and affect device performance.

The mac-address aging-time seconds command run in the BD view takes effect in a specific bridge domain.

Precautions

After the system resets, dynamic MAC address entries are lost, whereas static MAC address entries and blackhole MAC address entries are neither aged nor lost.

Example

# Set the aging time of MAC address entries to 0 seconds.
<HUAWEI> system-view
[~HUAWEI] bridge-domain 10
[*HUAWEI-bd10] mac-address aging-time 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >