Configuring Load Balancing

To balance traffic on a DCN, configure load balancing.

Procedure

  • Configure north-south load balancing on each DC gateway.
    1. Run bgp { as-number-plain | as-number-dot }

      The BGP view is displayed.

    2. Enter the BGP VPN instance IPv4/IPv6 address family view.

      • Run ipv4-family vpn-instance vpn-instance-name

        The BGP VPN instance IPv4 address family view is displayed.

      • Run ipv6-family vpn-instance vpn-instance-name

        The BGP VPN instance IPv6 address family view is displayed.

    3. Run maximum load-balancing [ ebgp | ibgp ] number [ ecmp-nexthop-changed ]

      The maximum number of equal-cost routes for load balancing is configured.

    4. Run quit

      Return to the BGP view.

    5. Run l2vpn-family evpn

      The BGP EVPN address family view is displayed.

    6. Run peer { ipv4-address | group-name | ipv6-address } capability-advertise add-path { send | receive | both }

      The device is enabled to receive Add-Path routes from or advertise Add-Path routes to the peer L2GW/L3GW.

    7. Run peer { ipv4-address | group-name | ipv6-address } advertise add-path path-number path-number

      The number of preferred routes to be advertised to the peer L2GW/L3GW is configured.

    8. Run quit

      Return to the BGP view.

    9. Run quit

      Return to the system view.

    10. Run commit

      The configuration is committed.

  • Configure north-south load balancing on each L2GW/L3GW.
    1. Run bgp { as-number-plain | as-number-dot }

      The BGP view is displayed.

    2. Enter the BGP VPN instance IPv4/IPv6 address family view.

      • Run ipv4-family vpn-instance vpn-instance-name

        The BGP VPN instance IPv4 address family view is displayed.

      • Run ipv6-family vpn-instance vpn-instance-name

        The BGP VPN instance IPv6 address family view is displayed.

    3. Run maximum load-balancing [ ebgp | ibgp ] number [ ecmp-nexthop-changed ]

      The maximum number of equal-cost routes for load balancing is configured.

    4. Run quit

      Return to the BGP view.

    5. Run l2vpn-family evpn

      Enter the BGP EVPN address family view.

    6. Run bestroute add-path path-number path-number

      BGP Add-Path is enabled, and the number of preferred routes is specified.

    7. Run peer { ipv4-address | group-name | ipv6-address } capability-advertise add-path { send | receive | both }

      The device is enabled to receive Add-Path routes from or advertise Add-Path routes to the peer DC gateway.

    8. Run peer { ipv4-address | group-name | ipv6-address } advertise add-path path-number path-number

      The number of preferred routes to be advertised to the peer DC gateway is configured.

    9. Run quit

      Return to the BGP view.

    10. Run quit

      Return to the system view.

    11. Run commit

      The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >