{ broadcast | unknown-multicast | unknown-unicast } discard (interface view)

Function

The broadcast discard command disables an interface from forwarding broadcast packets.

The undo broadcast discard command restores the default configuration.

The unknown-multicast discard command disables an interface from forwarding unknown multicast packets.

The undo unknown-multicast discard command restores the default configuration.

The unknown-unicast discard command disables an interface from forwarding unknown unicast packets.

The undo unknown-unicast discard command restores the default configuration.

By default, an interface is enabled to unknown unicast, broadcast, and multicast packets.

Format

broadcast discard

unknown-multicast discard

unknown-unicast discard

undo broadcast discard

undo unknown-multicast discard

undo unknown-unicast discard

Parameters

None

Views

Layer 2 100GE interface view, 100ge sub-interface view, Layer 2 10GE interface view, 10GE sub-interface view, 200GE sub-interface view, 25GE-L2 view, 25GE sub-interface view, 400GE-L2 view, 400GE sub-interface view, Layer 2 40GE interface view, 40GE sub-interface view, Layer 2 50GE interface view, 50GE sub-interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, Layer 2 GE interface view, GE sub-interface view, Global VE sub-interface view, PW-VE sub-interface view, VE sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mac write

Usage Guidelines

Usage Scenario

When interfaces receive broadcast packets, unknown multicast packets, or unknown unicast packets, the interfaces broadcast these packets. However, if these packets are from attackers, they will consume a lot of device resources, causing device performance deterioration and even device breakdown. To resolve this problem, run this command to disable an interface from forwarding broadcast packets, unknown multicast packets, or unknown unicast packets.

Example

# Disable GE 0/1/1 from broadcasting packets.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[~HUAWEI-GigabitEthernet0/1/1] portswitch
[*HUAWEI-GigabitEthernet0/1/1] broadcast discard
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >