< Home

mac-address aging-time

Function

The mac-address aging-time command sets the aging time of an address entry.

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

By default, the aging time is 300 seconds.

Format

mac-address aging-time seconds [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]

undo mac-address aging-time [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]

Parameters

Parameter Description Value
seconds Specifies the aging time.

The value can be zero or an integer ranging 10 to 1,000,000, in second.

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

vlan-id1 Specifies the starting VLAN ID. The value is an integer ranging from 1 to 4094.
vlan-id2 Specifies the ending VLAN ID. The value is an integer ranging from 1 to 4094. vlan-id1 must be larger than vlan-id2.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Only dynamic entries age while non-dynamic entries do not age.

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

Example

# Set the aging time of an address entry to 500 seconds.

<sysname> system-view
[sysname] mac-address aging-time 500

# Configure all the address entries not to be aged.

<sysname> system-view
[sysname] mac-address aging-time 0

# Set the aging time of the address entry of vlan 10 to 100 seconds.

<sysname> system-view
[sysname] mac-address aging-time 100 vlan 10

# Restore the aging time to the default value.

<sysname> system-view
[sysname] undo mac-address aging-time
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >