No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Common Operation Guide

CloudEngine 12800, 12800E, 8800, 7800, 6800, and 5800 Series Switches

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring a Load Balancing Mode

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)

  • 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
  • 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 17-1 or Table 17-2.

    Table 17-1  Configuring load balancing modes for different packets on the CE12800, 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

    NOTE:

    IPv6 packet load balancing modes, l4-src-port and l4-dst-port are controlled by the l4-src-port and l4-dst-port fields of IPv4 packets. That is, when the load balancing modes of IPv4 packets include l4-src-port or l4-dst-port, the l4-src-port or l4-dst-port field also participates in load balancing of IPv6 packets.

    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 ] * or mpls [ src-ip | dst-ip | l4-src-port | l4-dst-port ] * 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:
    • Layer 2 packets: src-mac, dst-mac, and vlan

    • 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 17-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:
    • Layer 2 packets: src-mac and dst-mac

    • 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:
    • Layer 2 packets: src-mac and dst-mac in the inner tag

    • 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 command in the load balancing profile view to configure a load balancing mode of the Eth-Trunk.
  • (For CE12800, CE6870EI and CE6875EI) eth-trunk { src-interface | seed seed-data | universal-id universal-id | hash-mode hash-mode-id } *
  • (For CE6880EI and CE12800E that has the ED-E/EG-E/EGA-E series cards installed) eth-trunk universal-id universal-id
  • (For CE12800E that has the FD-X series cards installed and CE8800&7800&6800&5800 excluding CE6870EI, CE6875EI, and CE6880EI) eth-trunk { hash-mode hash-mode-id | universal-id universal-id } *
It would take effect for all the Eth-Trunk member interfaces after teh command congiured.And the default value is recommanded
# 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
Translation
Download
Updated: 2018-10-08

Document ID: EDOC1000102369

Views: 124673

Downloads: 3136

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next