system-view
The system view is displayed.
Step 2
Run:
drop illegal-mac enable
The industrial switch router is configured to discard packets with an all-0 MAC address.
By default, the industrial switch router does not discard packets with an all-0 MAC address.
NOTE
The AR530&AR550 do not support discarding packets with an all-0 MAC address.
Step 3
(Optional) Run:
drop illegal-mac alarm
The industrial switch router is configured to send an alarm to the NMS when receiving packets
with an all-0 MAC address.
By default, the industrial switch router does not send an alarm to the NMS when receiving
packets with an all-0 MAC address.
NOTE
The industrial switch router sends only one alarm after receiving packets with an all-0 MAC address. To
enable the industrial switch router to send an alarm again after receiving packets with an all-0 MAC address,
run the
drop illegal-mac alarm
command.
----End
Checking the Configuration
Run the
display current-configuration
command to check whether the industrial switch
router is configured to discard packets with an all-0 MAC address.
1.7 Configuration Examples
This section provides several configuration examples of MAC address.
1.7.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. The network requires the following configurations:
l
To prevent hackers from using MAC addresses to attack the network, configure a static
MAC address entry for each user host on the Router. Set the aging time for the dynamic
MAC address entries to 500 seconds.
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.
19