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 of PWs on an interface.
By default, flow-label-based load balancing of PWs is disabled on an interface.
Parameter | Description | Value |
---|---|---|
both |
Indicates both the send and receive capabilities of flow-label-based load balancing for the local device. |
- |
send |
Indicates the send capability of flow-label-based load balancing for the local device. |
- |
receive |
Indicates the receive capability of flow-label-based load balancing for the local device. |
- |
static |
Statically configures flow-label-based load balancing.
|
- |
Usage Scenario
When multiple links exist between 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 them one from the other. 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. To enable flow-label-based load balancing for PWs on an interface, run the mpls l2vpn flow-label command.
Prerequisites
MPLS L2VPN has been enabled, and PWs have been created.
Precautions
When configuring flow label-based load balancing for an L2VPN, note the following:
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] mpls l2vc 2.2.2.2 100 [*HUAWEI-GigabitEthernet0/1/0] mpls l2vpn flow-label both