Use the load-balancing flow label code command to toggle between the sub-TLV identifiers—0x11 and
0x17. If there is a mismatch between two endpoints in the load-balancing flow label code, then the PWs will
have a mismatched TLV value resulting in a load balancing failure.
The no form of the load-balancing flow label code command uses the flow label sub-TLV identifier 0x11.
In the L2VPN bridge group bridge-domain vfi autodiscovery bgp signaling-protocol submode, the static
keyword is optional. If the static keyword is not used, flow load balancing is dynamic. In this case, the routers
dynamically select ingress or egress or both traffic flows for load balancing, based on this command
configuration on both endpoints of a pseudowire. Even if this command configuration on the pseudowire’s
endpoints mismatch, the least possible of the traffic flows is enabled for load balancing. For example, consider
the following mismatched but dynamic flow load balancing configuration: if one endpoint is configured for
egress traffic load balancing, while the other is configured for ingress as well as egress load balancing, then
load balancing is enabled for egress on the first endpoint and only the ingress on the latter endpoint.
Task ID
OperationTask ID
read, writel2vpn
Examples
This example shows the output of the load-balancing flow-label command of the both keyword.
RP/0/RSP0/CPU0:router#config
RP/0/RSP0/CPU0:router(config)#l2vpn
RP/0/RSP0/CPU0:router(config-l2vpn)#pw-class p1
RP/0/RSP0/CPU0:router(config-l2vpn-pwc)#encapsulation
RP/0/RSP0/CPU0:router(config-l2vpn-pwc)#encapsulation mpls
RP/0/RSP0/CPU0:router(config-l2vpn-pwc-mpls)#load-balancing
RP/0/RSP0/CPU0:router(config-l2vpn-pwc-mpls)#load-balancing flow-label
RP/0/RSP0/CPU0:router(config-l2vpn-pwc-mpls)#load-balancing flow-label both
RP/0/RSP0/CPU0:router(config-l2vpn-pwc-mpls)#load-balancing flow-label both static
Related Commands
DescriptionCommand
Configures MPLS pseudowire encapsulation.pw-class encapsulation mpls, on page 128
Cisco ASR 9000 Series Aggregation Services Router VPN and Ethernet Services Command Reference, Release
6.1.x
104
Point to Point Layer 2 Services Commands
load-balancing flow-label