68
Predefined user roles
network-admin
Examples
# Configure GigabitEthernet 1/0/1 to learn a maximum of 600 MAC address entries.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] mac-address max-mac-count 600
# Disable the device from forwarding unknown frames received on GigabitEthernet 1/0/1 after the
MAC learning limit on GigabitEthernet 1/0/1 is reached.
[Sysname-GigabitEthernet1/0/1] undo mac-address max-mac-count enable-forwarding
Related commands
mac-address
mac-address max-mac-count
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
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.