< Home

mac-address trap notification

Function

The mac-address trap notification command enables the trap function for MAC address learning or aging.

The undo mac-address trap notification command disables the trap function for MAC address learning or aging.

By default, the trap function for MAC address learning or aging is disabled.

Format

mac-address trap notification { aging | learn | all }

undo mac-address trap notification

Parameters

Parameter

Description

Value

aging

Enables the trap function for MAC address aging.

-

learn

Enables the trap function for MAC address learning.

-

all

Enables the trap function for MAC address learning and aging.

-

Views

Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, MultiGE interface view, Eth-Trunk interface view, port group view, 25GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To learn MAC address change in a timely manner, run the mac-address trap notification command to enable the trap function for MAC address learning or aging.

Precautions

When you run the mac-address trap notification command multiple times, only the latest configuration takes effect.

The trap function for MAC address learning or aging is not supported for the MAC address entries in a VSI.

Example

# Enable the trap function for MAC address learning on GE0/0/1.

<HUAWEI> system-view
[HUAWEI] interface GigabitEthernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] mac-address trap notification learn
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >