The mpls ecmp load-balance command configures the load balancing mode when packets are forwarded through LSPs established by MPLS LDP.
The undo mpls ecmp load-balance command restores the default load balancing mode when packets are forwarded through LSPs established by MPLS LDP.
By default, the load balancing mode is label when packets are forwarded through LSPs established by MPLS LDP.
Only the S5720-HI, S5730-HI, S5731-H, S5731S-H, S5732-H, S6720-HI, S6730S-H, and S6730-H support this command.
mpls ecmp load-balance { sip | dip | label | l4-sport | l4-dport } *
undo mpls ecmp load-balance
Parameter | Description | Value |
---|---|---|
sip |
Indicates that load balancing is performed based on source IP addresses in MPLS packets. |
- |
dip |
Indicates that load balancing is performed based on destination IP addresses in MPLS packets. |
- |
label |
Indicates that load balancing is performed based on labels in MPLS packets. |
- |
l4-sport |
Indicates that load balancing is performed based on the transport-layer source port in MPLS packets. |
- |
l4-dport |
Indicates that load balancing is performed based on the transport-layer destination port in MPLS packets. |
- |
Usage Scenario
In real-world scenarios, you need to configure a proper load balancing mode based on MPLS service traffic characteristics on a transit node. If a service traffic parameter changes frequently, it is easier to load balance the traffic if you use the load balancing mode based on this parameter. For example, if the IP addresses of MPLS packets change frequently, it is easier to load balance traffic among LSPs if you use the load balancing mode based on dip or sip.
Precautions
This command takes effect only on newly established LSPs. If you want this command to take effect on previously created LSPs, run the reset mpls ldp command to re-establish the LSPs.