Setting the Maximum Number of Equal-Cost Routes

Routes of the same routing protocol with the same destination and cost are called equal-cost routes, and traffic can be load-balanced among these routes.

Context

Perform the following steps on the router that runs OSPFv3:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ospfv3 [ process-id ]

    The OSPFv3 view is displayed.

  3. Run maximum load-balancing number

    The maximum number of equal-cost routes is set.

    If the number of equal-cost routes is greater than number specified in the maximum load-balancing command, routes are selected for load balancing based on the following criteria:

    1. Route priority: Routes with smaller priority values are selected for load balancing. For details about route priority configuration, see 4.
    2. Interface index: If routes have the same priority, those with greater interface index values are selected for load balancing.
    3. Next hop IP address: If routes have the same priority and interface index, those with larger IP addresses are selected for load balancing.

  4. (Optional) Run nexthop neighbor-id { interface-name | interfaceType interfaceNum } weight value

    The preference for equal-cost routes is set.

    OSPFv3 selects a next hop from these equal-cost routes according to the weight. The smaller the weight is, the higher the route preference is.

  5. Run commit

    The configuration is committed.

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