Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).

Configuring the Router to Discard Packets with an All-0 MAC Address

Configuring the Router to Discard Packets with an All-0 MAC Address

Context

A faulty network device may send packets with an all-0
source or destination MAC address to the router. You can configure the router to discard such packets and send an alarm to
the network management system (NMS). You can locate the faulty device
according to the alarm.

You can configure the router to discard packets with
an all-0 source or destination MAC address.

Procedure

Run:

system-view

The system view is displayed.

Run:

drop illegal-mac enable

The router is configured to discard packets with an all-0 MAC address.

By default, the router does not discard packets with an all-0 MAC address.

The 4GE-2S, 4ES2G-S, 4ES2GP-S, and 9ES2 cards
do not support discarding packets with an all-0 MAC address.

(Optional)
Run:

drop illegal-mac alarm

The router is configured to send an alarm to the NMS when receiving
packets with an all-0 MAC address.

By default, the router does not send an alarm
to the NMS when receiving packets with an all-0 MAC address.

NOTE:

The router sends only one alarm after receiving packets with an all-0 MAC address.
To enable the router to send an alarm again after receiving packets with an all-0 MAC
address, run the drop illegal-mac alarm command.

Checking the Configuration

Run the display
current-configuration command to check whether the router is configured to discard
packets with an all-0 MAC address.