l
protect
: discards packets with new source MAC addresses when the number of learned MAC
addresses reaches the limit.
l
restrict
: discards packets with new source MAC addresses and sends an alarm when the
number of learned MAC addresses exceeds the limit.
l
shutdown
: set the interface status to
error down
and sends an alarm when the number of
learned MAC addresses exceeds the limit.
By default, an interface cannot automatically restore to Up state after it is shut down. To
restore the interface, run the
shutdown
and
undo shutdown
commands on the interface in
sequence. Alternatively, run the
restart
command on the interface to restart the interface.
Step 7
(Optional) Run:
port-security mac-address sticky
mac-address
vlan
vlan-id
A sticky MAC address entry is configured.
----End
1.6.2.3 Checking the Configuration
Procedure
l
Run the
display current-configuration
interface
interface-type
interface-number
command to view the current configuration of an interface.
l
Run the
display mac-address security
[
vlan
vlan-id
|
interface-type interface-number
]
command to view secure dynamic MAC address entries.
l
Run the
display mac-address sticky
[
vlan
vlan-id
|
interface-type interface-number
]
command to view sticky MAC address entries.
----End
1.6.3 Configuring MAC Address Flapping Detection
MAC address flapping detection detects all MAC addresses on the device. When MAC address
flapping occurs, the device sends an alarm to the NMS.
Context
After MAC address flapping detection is configured in a VLAN, the device checks all MAC
addresses in the VLAN to detect MAC address flapping. When MAC address flapping occurs
on an interface, the device blocks the interface or MAC address, or reports an alarm according
to the configuration.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
vlan
vlan-id
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
1 MAC Address Table Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
17