forward-mode (Slot view)

Function

The forward-mode command sets the forwarding mode to high-performance forwarding or half-line-rate forwarding for interfaces except VE and global GRE interfaces.

The undo forward-mode command restores the default configuration.

By default, packets are forwarded in half-line-rate mode.

Format

forward-mode through

forward-mode loopback

undo forward-mode [ through ]

Parameters

Parameter Description Value
loopback

Indicates half-line-rate forwarding mode, in which the interface bandwidth is set to half of the bandwidth of an interface board.

-

through

Indicates high-performance forwarding mode, in which the interface bandwidth is set to the bandwidth of an interface board.

-

Views

Slot view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
forwarding write

Usage Guidelines

Usage Scenario

For interfaces (except VE and global GRE interfaces), packets are forwarded in high-performance mode enabled using the forward-mode through command. However, Downstream HQoS cannot be implemented on interfaces except VE interfaces and global GRE interfaces. To use the downstream HQoS function, you have to set the forwarding mode to half-line-rate using the forward-mode loopback command.

Configuration Impact

In half-line-rate forwarding mode, the bandwidth of an interface equals half of the maximum bandwidth supported on an interface board. After you run the forward-mode through command, an interface switches to the high-performance forwarding mode, and the interface bandwidth equals the maximum bandwidth supported on an interface board.

Precautions

In VS mode, this command is supported only by the admin VS.

Centralized GRE tunnels can work in either software loopback or hardware loopback mode. The loopback mode must be configured in the slot view. When working in software loopback mode, a GRE interface has a bandwidth equal to the maximum bandwidth supported by the interface board. When working in hardware loopback mode, a GRE interface has a bandwidth half of that supported by the interface board. If high forwarding performance is required, using the software loopback mode is recommended.

In VS mode, this command is supported only by the admin VS.

Example

# Set the forwarding mode to high-performance for all interfaces (except VE and global GRE interfaces) on the board in slot 1.
<HUAWEI> system-view
[~HUAWEI] slot 1
[~HUAWEI-slot-1] forward-mode through
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >