mac-address notification mac-move
Use mac-address notification mac-move to enable MAC address move notifications and optionally specify a MAC move detection interval.
Use undo mac-address notification mac-move to disable MAC address move notifications.
Syntax
mac-address notification mac-move [ interval interval ]
undo mac-address notification mac-move
Default
MAC address move notifications are disabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
interval interval: Specifies the interval for detecting 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 records the MAC address move logs every MAC move detection interval. 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 detection interval.
A MAC address can have only one MAC address move record. If a MAC address moves multiple times, the new record overrides the old record.
Within a detection interval, each card can record MAC address move information for a maximum of 20 MAC addresses. The records are ranked in descending order of MAC move counts. When the MAC move count of a new record is higher than the MAC move count of any existing record, the device performs the following operations:
Discards the record that has the lowest MAC move count.
Ranks the MAC address move records in descending order of MAC move count.
Then in the next detection interval, the device discards all MAC address move records generated in the previous detection interval and starts another round of MAC move record generation.
After you execute this command, the system sends only syslog messages to the information center module. If the snmp-agent trap enable mac-address command is also executed, the system also sends SNMP notifications to the SNMP module.
Examples
# Enable MAC address move notifications.
<Sysname> system-view [Sysname] mac-address notification mac-move [Sysname] %May 14 17:16:45:688 2013 Sysname 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 MAC address 0000-0012-0034 is VLAN 500.
The MAC address moved from Ten-GigabitEthernet 1/0/1 to Ten-GigabitEthernet 1/0/2.
The MAC address has moved once within a MAC move detection interval.
Related commands
display mac-address mac-move