< Home

mpls l2vpn flow-label

Function

The mpls l2vpn flow-label command enables flow label-based load balancing for PWs on an interface.

The undo mpls l2vpn flow-label command disables flow label-based load balancing for PWs on an interface.

By default, flow label-based load balancing is disabled for PWs on an interface.

Only the S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H support this command.

Format

mpls l2vpn flow-label { both | send | receive } [ secondary ] [ static ]

undo mpls l2vpn flow-label { both | send | receive } [ secondary ] [ static ]

undo mpls l2vpn flow-label [ secondary ]

Parameters

Parameter Description Value

both

Enables flow label-based load balancing for outgoing traffic and incoming traffic.

-

send

Enables flow label-based load balancing for outgoing traffic.

-

receive

Enables flow label-based load balancing for incoming traffic.

-

secondary

Enables flow label-based load balancing for the secondary PW. If secondary is not configured, flow label-based load balancing is configured for the primary PW. Flow label-based load balancing can be configured for a secondary PW only if the secondary PW exists.

-

static

Statically configures flow label-based load balancing. For dynamic PWs, if static is not configured, the flow label-based load balancing capability of the local end is negotiated by the remote end. For static PWs, the flow label-based load balancing capability is statically configured, irrespective of whether static is configured.

-

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When multiple links exist between provider (P) devices, configure flow label-based load balancing to improve L2VPN traffic forwarding efficiency. After flow label-based load balancing is enabled on a PE, the PE adds different labels for different L2VPN data flows to distinguish the data flows. After a P device receives a data packet carrying a flow label, it performs the Hash calculation and selects a forwarding path based on the flow label in the data packet. This processing implements load balancing. You can run the mpls l2vpn flow-label command to enable flow label-based load balancing for L2VPN on an interface.

Prerequisites

Before you enable flow label-based load balancing for an interface, create a VC connection on this interface and enable Multiprotocol Label Switching (MPLS) L2VPN.

Precautions

Flow label-based load balancing can be enabled only when any of the following conditions is true:
  • The receive parameter is configured on the local PE, and the send parameter is configured on the remote PE.
  • The send parameter is configured on the local PE, and the receive parameter is configured on the remote PE.
  • Both the send and receive parameters are configured on the local and remote PEs.

The secondary parameter indicates that flow label-based load balancing takes effect only for the secondary PW. If you specify secondary parameter, flow label-based load balancing takes effect only for the primary PW.

Example

# Enable flow label-based load balancing for PWs on Vlanif 100.

<HUAWEI> system-view
[HUAWEI] interface Vlanif 100
[HUAWEI-Vlanif100] mpls l2vc 2.2.2.2 100
[HUAWEI-Vlanif100] mpls l2vpn flow-label both
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >