< Home

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

Context

If the switch receives packets that contain an all-0 source or destination MAC address, it may indicate that the sending device is faulty. You can configure the switch to discard these packets and send an alarm to the network management system (NMS). The alarm contains information that is useful for troubleshooting the faulty device.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run drop illegal-mac enable

    The switch is enabled to discard packets with an all-0 MAC address.

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

  3. (Optional) Run drop illegal-mac alarm

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

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

    The drop illegal-mac alarm command allows the switch to generate one alarm. You must configure the drop illegal-mac alarm command multiple times if more than one alarm is required.

Verifying the Configuration

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

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >