Configuring the Switch 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 switch. You can configure the switch to discard such packets and send an alarm to the network management system (NMS) to help the network administrator locate the faulty device.
You can configure the switch 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 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.
- (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 only one alarm. You must run the drop illegal-mac alarm command again if more than one alarm is required.