Configuring Load Balancing Mode
Configuring Per-packet Load Balancing Mode
By default, the load balancing modes of the traffic on control plane and forwarding plane are per-flow. You can configure the commands as shown in Table 10-1 to change the mode to per-packet.
Views |
Command Format |
Influence Range |
Note |
---|---|---|---|
System view |
load-balance packet { slot slot-id | all } |
|
Configures the per-packet load balancing mode for packet forwarding. |
Interface view |
mpls l2vpn load-balance packet |
Inbound Martini/SVC VLL traffic of the interface |
Prerequisites: a Martini VLL or an SVC VLL has been configured on the corresponding interface and a tunnel policy has been configured for the L2VPN. If VLL FRR is enabled on the interface, this command takes effect on both primary and secondary PWs. |
Eth-Trunk interface view |
load-balance packet-all |
Inbound traffic of the interface |
By default, Layer 3 Eth-Trunk interfaces carry out IP-based load balancing and Layer 2 Eth-Trunk interfaces carry out MAC-based load balancing. |
Configuring Per-flow Load Balancing Mode
By default, the load balancing modes of the traffic on control plane and forwarding plane are per-flow. You can configure the commands as shown in Table 10-2 to change the mode to per-flow if the mode has been changed to per-packet.
Views |
Command Format |
Influence Range |
Note |
---|---|---|---|
System view |
load-balance flow { slot slot-id | all } or undo load-balance packet { slot slot-id | all } |
|
Configure the per-flow load balancing mode for packet forwarding. |
Interface view |
undo mpls l2vpn load-balance packet |
Inbound Martini/SVC VLL traffic of the interface |
Prerequisites: a Martini VLL or an SVC VLL has been configured on the corresponding interface and a tunnel policy has been configured for the L2VPN. If VLL FRR is enabled on the interface, this command takes effect on both primary and secondary PWs. |
Layer3 Eth-Trunk interface view |
load-balance src-dst-ip, or undo load-balance |
Inbound traffic of the interface |
By default, Layer 3 Eth-Trunk interfaces carry out IP-based load balancing. |
Configuring Load Balancing Mode on a BAS Interface
Views |
Command Format |
Influence Range |
---|---|---|
Eth-Trunk interface view |
bas-load-balance { flow-mode | user-mode | real-flow-mode } |
BAS online traffic |
Follow-up Procedure
Run the save command to save the current configuration to the configuration file when a set of configuration is finished and the expected functions have been achieved.