port unselected discard input-packet

Function

The port unselected discard input-packet command enables an Eth-Trunk interface to discard packets when it works in the backup state in an E-Trunk.

The undo port unselected discard input-packet command disables an Eth-Trunk interface from discarding packets when it works in the backup state in an E-Trunk.

By default, the ETH trunk interface is not enabled to discard packets according to its active and standby status in e-trunk.

Format

port unselected discard input-packet

undo port unselected discard input-packet

Parameters

None

Views

Eth-Trunk interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
interface-mgr write

Usage Guidelines

Usage Scenario

In dual-homing networking, E-Trunk is used to implement link-level and device-level reliability. If a device that is dual-homed to two devices working in master/backup mode sends traffic to the backup device, you need to run the port unselected discard input-packet command to enable the Eth-Trunk interface on the backup device to discard packets when the interface works in the backup state in an E-Trunk, thereby blocking traffic and preventing loops.

Prerequisites

The Eth-Trunk interface has been associated with an E-Trunk.

Configuration Impact

After this command is run, the backup Eth-Trunk interface will discard packets.

Precautions

This command cannot be run on an Eth-Trunk interface that is not associated with an E-Trunk.

Example

# Enable Eth-Trunk 1 to discard packets when it works in the backup state in an E-Trunk.
<HUAWEI> system-view
[~HUAWEI] interface Eth-trunk 1
[~HUAWEI-Eth-Trunk1] port unselected discard input-packet
Warning: If this command is configured, packets of the unselected Eth-Trunk interface will be discarded.continue? [Y/N]:y
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >