broadcast discard (VLAN view)

Function

The broadcast discard command disables forwarding of broadcast packets within a VLAN.

The undo broadcast discard command enables forwarding of broadcast packets within a VLAN.

By default, broadcast packets can be forwarded within a VLAN.

Format

broadcast discard

undo broadcast discard

Parameters

None

Views

VLAN view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mac write

Usage Guidelines

Usage Scenario

When an interface in a VLAN receives a broadcast packet or a unicast packet, it searches the MAC address table for the destination MAC address. If no destination MAC address is found, the interface broadcasts the packet to other interfaces in this VLAN.

When static MAC address entries are configured, run the broadcast discard command to disable forwarding of broadcast packets within a VLAN. This improves network security by limiting attack broadcast packets.

Example

# Disable packet broadcasting in VLAN 2.
<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] broadcast discard
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >