Configuring a Load Balancing Mode

955 0 0 0

 

Configuring a Load Balancing Mode

You can configure a load balancing profile and perform load balancing based on known or unknown unicast packets.

The parameters vary depending on the software version and model.

Performing Load Balancing Based on Known or Unknown Unicast Packets (Supported by Only the CE12800E&CE8800&7800&6800&5800, exclude CE6870EI and CE6875EI)

l   Configure a load balancing mode for known unicast packets.

Run the load-balance { dst-ip | dst-mac | random | round-robin | src-ip | src-mac | src-dst-ip | src-dst-mac | enhanced [ resilient ] profile profile-name } command in the Eth-Trunk interface view.

# Configure Eth-Trunk 1 to load balance known unicast packets based on destination MAC addresses.

<HUAWEI> system-view
[~HUAWEI] interface eth-trunk 1
[*HUAWEI-Eth-Trunk1] load-balance dst-mac
[*HUAWEI-Eth-Trunk1] commit

l   Configure a load balancing mode for unknown unicast packets.

Run the load-balance unknown-unicast { mac | enhanced } command in the system view.

# Configure load balance unknown unicast packets based on source and destination MAC addresses.

<HUAWEI> system-view
[~HUAWEI] load-balance unknown-unicast mac
[*HUAWEI] commit

Configuring a Load Balancing Profile

1.         Run the system-view command to enter the system view.

2.         Run the load-balance profile profile-name command to configure a global load balancing profile and enter the profile view.

3.         Configure a load balancing mode according to Table 3-1 or Table 3-2.

Table 1-1 Configuring load balancing modes for different packets on the CE12800, CE6870EI and CE6875EI, exclude CE12800E

Packet (Inbound Interface)

Default Load Balancing Mode

Configured Load Balancing Mode

IPv4 packets

src-ip, dst-ip, l4-src-port, and l4-dst-port

Run the ip [ src-ip | dst-ip | l4-src-port | l4-dst-port | protocol ] * command.

IPv6 packets

src-ip, dst-ip, l4-src-port, and l4-dst-port

Run the ipv6 [ src-ip | dst-ip | protocol ] * command.

MPLS packets

top-label, 2nd-label, and fields in the inner IP header (src-ip and dst-ip or ipv6 src-ip and ipv6 dst-ip)

Run the mpls [ 2nd-label | 3rd-label | top-label ] * command.

VPLS packets

top-label, 2nd-label, and fields in the inner ETH header (src-mac, dst-mac, and ETH TYPE)

Run the user-defined ethernet-over-mpls [ dot1q-tag tag-number ] { inner-sip sip-offset sip-nybble-number | inner-dip dip-offset dip-nybble-number }* command.

Layer 2 packets except IPv4, IPv6, VPLS, and MPLS packets

src-mac, dst-mac, and vlan

Run the l2 [ src-mac | dst-mac | vlan | eth-type ] * command.

FCoE packets

dst-fcid and src-fcid

Run the fcoe { dst-fcid | src-fcid } * command.

TRILL packets

Ingress node:

l  Layer 2 packets: src-mac, dst-mac, and vlan

l  Layer 3 packets: src-ip, dst-ip, l4-src-port, and l4-dst-port

Run the ip [ src-ip | dst-ip | l4-src-port | l4-dst-port | protocol ] * command.

Run the l2 [ src-mac | dst-mac ] * command.

Transit node: src-mac, dst-mac, vlan, src-ip, and dst-ip in the inner tag

Run the trill egress mode { l2 | ipv4 | ipv6 } command.

The switch supports load balancing based on the source MAC address, destination MAC address, source IP address, destination IP address, and VLAN ID. The items used in load balancing depends on the l2, ip, and ipv6 commands.

Egress node: src-mac, dst-mac, vlan, src-ip, and dst-ip in the inner tag

VXLAN

NOTE

CE6870EI and CE6875EI do not support this load balancing mode.

Run the vxlan { inner-src-mac | inner-dst-mac | inner-src-ip | inner-dst-ip | inner-l4-src-port | inner-l4-dst-port | inner-protocol | l4-src-port | shift shift-data } * command.

 

Table 1-2 Configuring load balancing modes for different packets on the CE12800E&CE8800&7800&6800&5800, exclude CE6870EI and CE6875EI

Packet (Inbound Interface)

Default Load Balancing Mode

Configured Load Balancing Mode

IPv4 packets

src-ip, dst-ip, l4-src-port, and l4-dst-port

Run the ip [ src-ip | dst-ip | l4-src-port | l4-dst-port | protocol ] * command.

IPv6 packets

src-ip, dst-ip, l4-src-port, and l4-dst-port

Run the ipv6 [ src-ip | dst-ip | protocol | l4-src-port | l4-dst-port ] * command.

MPLS packets

NOTE

CE12800E that has the ED-E/EG-E/EGA-E series cards installed and CE6880EI do not support this load balancing mode.

top-label and 2nd-label

On the CE12800E that has the FD-X series cards installed: Run the mpls [ 2nd-label | 3rd-label | 4th-label | 5th-label | src-ip | dst-ip | top-label | src-interface ] *

On other devices: Run the mpls [ 2nd-label | src-ip | dst-ip | top-label ] * command.

Layer 2 packets except IPv4, IPv6, and MPLS packets

src-mac and dst-mac

Run the l2 [ src-mac | dst-mac | src-interface | eth-type ] * command.

FCoE packets

NOTE

CE12800E that has the ED-E/EG-E/EGA-E series cards installed and CE6880EI do not support this load balancing mode.

dst-fcid and src-fcid

Run the fcoe { dst-fcid | src-fcid } * command.

TRILL packets

NOTE

CE12800E and CE6880EI do not support this load balancing mode.

Ingress node:

l  Layer 2 packets: src-mac and dst-mac

l  Layer 3 packets: src-ip, dst-ip, l4-src-port, and l4-dst-port

TRILL packets on the transit node can be load balanced based on the configured mode in the profile only when the load-balance enhanced [ resilient ] profile profile-name command is configured in the Eth-Trunk interface view. By default, the load balancing mode of an Eth-Trunk is enhanced profile.

On the ingress and egress nodes, TRILL packets are load balanced based on the configured mode in the profile, with no need to perform the preceding configuration.

Transit or egress node:

l  Layer 2 packets: src-mac and dst-mac in the inner tag

l  Layer 3 packets: src-ip, dst-ip, l4-src-port, and l4-dst-port

 

4.         Run the commit command to commit the configuration.

# Configure the switch to load balance Layer 2 packets based on source and destination MAC addresses of Layer 2 packets.

<HUAWEI> system-view
[~HUAWEI] load-balance profile abcd
[*HUAWEI-load-balance-profile-abcd] l2 src-mac dst-mac
[*HUAWEI-load-balance-profile-abcd] commit

If load balancing on Eth-Trunk member interfaces is uneven, run the eth-trunk { src-interface | seed seed-data | universal-id universal-id | hash-mode hash-mode-id } * command in the load balancing profile view to configure a load balancing mode of the Eth-Trunk. The configured load balancing mode is valid for all Eth-Trunks. The default value is recommended.

# Set the load balancing mode of an Eth-Trunk to 9 in the load balancing profile abcd when the source IP address changes.

<HUAWEI> system-view
[~HUAWEI] load-balance profile abcd
[*HUAWEI-load-balance-profile-abcd] eth-trunk hash-mode 9
[*HUAWEI-load-balance-profile-abcd] commit

 

You can also find the answer in Common Eth-Trunk Operations in Common Operation Guide.

  • x
  • convention:

Comment

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login