Example
Run the
display current-configuration
command.
<Huawei>
display current-configuration | include drop
#
drop illegal-mac alarm
drop illegal-mac enable
#
6.8 Maintaining the MAC Address Table
This section describes how to maintain the MAC address table.
6.8.1 Debugging the MAC Address Table
Context
CAUTION
Debugging affects system performance. Run the
undo debugging all
command immediately
after debugging is completed.
When errors occur in MAC address based forwarding, run the following debugging command
in the user view to debug the MAC address table, view the debugging information, and locate
and analyze the fault.
Procedure
Step 1
Run the
debugging ethernet packet mac
{
dest_mac
mac-address
|
src_mac
mac-address
}
command to debug the Ethernet packets with the specified source MAC address or destination
address.
----End
6.9 Configuration Examples
This section provides examples showing how to configure the MAC address table.
6.9.1 Example for Configuring the MAC Address Table
Networking Requirements
As shown in
, the MAC address of PC1 is 0002-0002-0002, and the MAC address of
PC2 is 0003-0003-0003. The LSW connects the PCs to the Router. The LSW is connected to
Ethernet2/0/1 of the Router, which belongs to VLAN 2. The MAC address of the server is
0004-0004-0004. The server is connected to Ethernet2/0/2 of the Router, which belongs to
VLAN 2. LSW belongs to VLAN 4. The network requires the following configurations:
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.
172