mac-address notification mac-move
Use mac-address notification mac-move to enable MAC address move notifications and optionally set a MAC move detection interval.
Use undo mac-address notification mac-move to restore the default.
Syntax
mac-address notification mac-move [ interval interval-value ]
undo mac-address notification mac-move
Default
MAC address move notifications are disabled, and the MAC move detection interval for MAC address moves is 1 minute.
Views
System view
Predefined user roles
network-admin
Parameters
interval interval-value: Sets a detection interval for MAC address moves, in the range of 1 to 60 minutes. If you do not specify this option, the default setting of 1 minute is used.
Usage guidelines
With MAC address move notifications enabled, the system displays the MAC address move logs when it detects MAC address moves. Each record of the MAC address move logs contains the following information:
MAC address.
VLAN ID of the MAC address entry.
Current port and source port of the MAC address moves.
Number of MAC address moves within a MAC move detection interval.
After you execute this command:
If the snmp-agent trap enable mac-address command is also executed, the system sends SNMP information to the SNMP module of the device.
If the snmp-agent trap enable mac-address command is not executed, the system sends syslog messages to the information center module.
Within a detection interval, an IRF member device can display a maximum of 20 MAC address move records. The latest record will override the oldest one.
Examples
# Enable MAC address move notifications.
<Sysname> system-view [Sysname] mac-address notification mac-move [Sysname] %May 14 17:16:45:688 2013 HPE MAC/4/MAC_FLAPPING: MAC address 0000-0012-0034 in VLAN 500 has moved from port XGE1/0/1 to port XGE1/0/2 for 1 times
The output shows that:
The VLAN ID of which MAC address 0000-0012-0034 is VLAN 500.
The MAC address moved from port Ten-GigabitEthernet 1/0/1 to port Ten-GigabitEthernet 1/0/2.
The MAC address has moved once within the last 1 minute (the default interval).
Related commands
display mac-address mac-move