Step 2
Verify the configuration.
# Run the
display mac-limit
command in any view to check whether the MAC address limiting
rules are successfully configured.
<Huawei>
display mac-limit
-----------------------------------------------------------------------
PORT VLAN Maximum Action Alarm
-----------------------------------------------------------------------
Eth2/0/1 - 4 discard enable
Eth2/0/2 - 100 discard enable
-----------------------------------------------------------------------
----End
Configuration Files
Configuration file of the Router
#
sysname Huawei
#
interface Ethernet2/0/1
mac-limit maximum 4
#
interface Ethernet2/0/2
mac-limit maximum 100
#
return
6.9.4 Example for Configuring a MAC Address Learning Rule in a
VLAN
Networking Requirements
As shown in
, Ethernet2/0/1 and Ethernet2/0/2 of the Router are connected to LSWs.
The LSWs are connected to users, including a few IP phone users and many computer users. IP
phone users are in VLAN 100, and computer users are in VLAN 200. To prevent MAC address
attacks and save MAC address table space, configure a rule to limit the number of MAC
addresses learned in VLAN 200.
Figure 6-4
Network diagram for MAC address limiting in a VLAN
Router
Eth2/0/2
Eth2/0/1
IP
network
LSW
LSW
VLAN100
VLAN200
……
Huawei AR3200 Series Enterprise Routers
Configuration Guide - LAN
6 MAC Address Table Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
178