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.
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 ]
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. |
- |
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
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.