The mpls field command configures a load balancing mode of MPLS packets in a load balancing profile.
The undo mpls field command deletes a specified load balancing mode of MPLS packets or restores the default load balancing modes of MPLS packets.
By default, load balancing of MPLS packets is based on the two outer labels (top-label and 2nd-label) of each packet.
Only the S5720-EI, S5720-HI, S5730-HI, S5730S-EI, S5730-SI, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720-LI, S6720S-EI, S6720S-LI, S6720S-SI, S6720-SI, S6730S-H, and S6730-H support this command.
mpls field [ 2nd-label | 3rd-label | dip | dmac | l4-dport | l4-sport | protocol | sip | smac | sport | top-label | vlan ] *
undo mpls field [ 2nd-label | 3rd-label | dip | dmac | l4-dport | l4-sport | protocol | sip | smac | sport | top-label | vlan ] *
Parameter |
Description |
Value |
---|---|---|
2nd-label |
Performs load balancing based on the second label of MPLS packets. |
- |
3rd-label |
Performs load balancing based on the third label of MPLS packets. |
- |
dip |
Performs load balancing based on destination IP addresses in MPLS packets. |
- |
dmac |
Performs load balancing based on destination MAC addresses in MPLS packets. |
- |
l4-dport |
Performs load balancing based on transport-layer destination port numbers in MPLS packets. |
- |
l4-sport |
Performs load balancing based on transport-layer source port numbers in MPLS packets. |
- |
protocol |
Performs load balancing based on protocol types in MPLS packets. |
- |
sip |
Performs load balancing based on source IP addresses in MPLS packets. |
- |
smac |
Performs load balancing based on source MAC addresses in MPLS packets. |
- |
sport |
Performs load balancing based on physical-layer source port numbers. |
- |
top-label |
Performs load balancing based on the top label of MPLS packets. |
- |
vlan |
Performs load balancing based on VLAN IDs. |
- |
Usage Scenario
The undo mpls field command with no parameter specified restores the default load balancing modes of MPLS packets. The undo mpls field command with a parameter specified deletes a specified load balancing mode of MPLS packets.
The mpls field 3rd-label command implements flow label-based load balancing on L2VPN networks.
Precautions
If you run the mpls field command multiple times, only the latest configuration takes effect.
Only the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S support the 3rd-label, l4-dport, l4-sport, and protocol load balancing mode.
Only 2nd-label, dmac, smac, sport, and top-label are supported on the S5730-SI, S5730S-EI, S6720-LI, S6720S-LI, S6720-SI, and S6720S-SI.
Load balancing based on MPLS labels takes effect for only labeled packets on the ingress.