< Home

local-preference enable

Function

The local-preference enable command configures an Eth-Trunk to preferentially forward local traffic.

The local-preference disable command configures an Eth-Trunk not to preferentially forward local traffic.

The undo local-preference enable command configures an Eth-Trunk not to preferentially forward local traffic.

By default, an Eth-Trunk is enabled to preferentially forward local traffic.

The S5720I-10X-PWH-SI-AC and S5720I-6X-PWH-SI-AC do not support this configuration.

Format

local-preference { enable | disable }

undo local-preference enable

The S5735-L, S5735S-L, S5735S-L-M, S5735-S, and S5735S-S do not support the local-preference disable.

Parameters

None

Views

System view (S5735-L, S5735S-L, S5735S-L-M, S5735-S, and S5735S-S)

Eth-Trunk interface view (Other models excluding the S5735-L, S5735S-L, S5735S-L-M, S5735-S, and S5735S-S)

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a stack, an Eth-Trunk is configured to be the outbound interface of traffic to ensure reliable transmission. Member interfaces of the Eth-Trunk may be located on different devices. When the stack device forwards traffic, the Eth-Trunk may select an inter-device member interface based on the hash algorithm. This forwarding mode occupies bandwidth resources between devices and reduces traffic forwarding efficiency.

To solve the problem, run the local-preference enable command to enable the Eth-Trunk to preferentially forward local traffic. Then traffic arriving at the local device is preferentially forwarded through member interfaces of the local device. If there is no member interface on the local device, member interfaces on another device are used to forward traffic. This forwarding mode effectively saves inter-device bandwidth resources and improves traffic forwarding efficiency.

  • When the local device has Eth-Trunk member interfaces and the member interfaces function properly, the Eth-Trunk forwarding table of the local device contains only local Eth-Trunk member interfaces. Therefore, the hash algorithm selects a local member interface, and traffic is forwarded through the local device.

  • When the local device does not have any Eth-Trunk member interfaces or all member interfaces fail, the Eth-Trunk forwarding table of the local device contains all available Eth-Trunk member interfaces. The hash algorithm selects a member interface on another device, and traffic is forwarded through this device.

Precaution

Member interfaces of the local Eth-Trunk have sufficient bandwidth to forward local interface traffic, which prevents packet loss.

This function is only valid for known unicast packets, and is invalid for broadcast, unknown-unicast, and multicast (BUM) packets.

Example

# Configure an Eth-Trunk not to preferentially forward local traffic.

<HUAWEI> system-view
[HUAWEI] interface Eth-Trunk 10
[HUAWEI-Eth-Trunk10] undo local-preference enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >