< Home

mpls field

Function

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.

Format

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

Parameters

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.

-

Views

Load balancing profile view

Default Level

2: Configuration level

Usage Guidelines

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.

  • For 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, MPLS packets can be load balanced based on source or destination IP addresses on the P and tunnel egress on an L2VPN network. If original data packets are Layer 2 packets and the sip or dip parameter is specified, MPLS packets are load balanced based on source or destination MAC addresses. For other models, load balancing based on source or destination IP addresses for MPLS packets does not take effect on the P and tunnel egress on an L2VPN network. You are advised to configure the 2nd-label, 3rd-label, or top-label load balancing mode.

Example

# In the load balancing profile a, set the load balancing mode of MPLS packets to 2nd-label, that is, load balancing based on the second label of MPLS packets.

<HUAWEI> system-view
[HUAWEI] load-balance-profile a
[HUAWEI-load-balance-profile-a] mpls field 2nd-label
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >