![Huawei S6700 Series Configuration Manual Download Page 125](http://html.mh-extra.com/html/huawei/s6700-series/s6700-series_configuration-manual_169517125.webp)
Perform the following steps on the switch running OSPF.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
ospf
[
process-id
]
The OSPF process view is displayed.
Step 3
Run:
maximum load-balancing
number
The maximum number of equal-cost routes is set.
NOTE
The maximum number of equal-cost routes is 32, by default, it is 32. The value range and default value of
the maximum number of equal-cost routes may vary according to the product. You can change the
maximum number and default number by purchasing a license.
Step 4
(Optional) Run:
nexthop
ip-address
weight
value
The route preferences are configured for load balancing.
When the number of equal-cost routes on the live network is greater than that specified in the
maximum load-balancing
command, valid routes are randomly selected for load balancing. To
specify valid routes for load balancing, run the
nexthop
command to set the route preference.
Ensure that the preferences of valid routes to be used must be high.
The smaller the
weight
value, the higher the preference of the route. The default
weight
value
is 255, which indicates that load balancing is implemented regardless of the route preferences.
----End
4.5.4 Configuring a Stub Router
To ensure that a route is not interrupted during flapping-triggering maintenance operations such
as upgrade, you can configure a switch as a stub router to allow traffic to bypass the route on
the stub router.
Context
After a stub router is configured, the route on the stub router will not be preferentially selected.
After the route cost is set to the maximum value 65535, traffic generally bypasses the switch.
This ensures an uninterrupted route on the switch during maintenance operations such as
upgrade.
Perform the following steps on the switch running OSPF.
S6700 Series Ethernet Switches
Configuration Guide - IP Routing
4 OSPF Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
106