3.
Next hop IP address: If routes have the same priorities and interface index values, routes
with larger IP address are selected for load balancing.
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
5.4.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 router 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 router.
This ensures an uninterrupted route on the router during maintenance operations such as upgrade.
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:
stub-router
[
on-startup
[
interval
] ]
A stub router is configured.
By default, no router is configured as a stub router.
If a router is configured as a stub router, the router keeps functioning as a stub router for 500s.
HUAWEI NetEngine80E/40E Router
Configuration Guide - IP Routing
5 OSPF Configuration
Issue 02 (2014-09-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
288