Configuring OSPF Route Control 299
n
If no OSPF cost is configured for an interface, OSPF computes the cost 
automatically: Interface OSPF cost= Bandwidth reference value/Interface 
bandwidth. If the calculated cost is greater than 65535, the value of 65535 is 
used.
Configuring the
Maximum Number of
OSPF Routes
Follow these steps to configure the maximum number of routes:
Configuring the
Maximum Number of
Load-balanced Routes
If several routes with the same cost to the same destination are available, 
configuring them as load-balanced routes can improve link utilization.
Follow these steps to configure the maximum number of load-balanced routes:
Configuring a Priority
for OSPF
A router may run multiple routing protocols, and it sets a priority for each 
protocol. When a route found by several routing protocols, the route found by the 
protocol with the highest priority will be selected.
Follow these steps to configure a priority for OSPF:
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter OSPF view  ospf [ process-id | router-id 
router-id ] * 
- 
Configure a bandwidth 
reference value 
bandwidth-reference value Optional
The value defaults to 100 
Mbps.
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter OSPF view  ospf [ process-id | router-id 
router-id ] * 
- 
Configure the maximum 
number of OSPF routes 
maximum-routes { external 
| inter | intra } number 
Optional
The default number is 12288.
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter OSPF view  ospf [ process-id | router-id 
router-id ] * 
- 
Configure the maximum 
number of equivalent 
load-balanced routes 
maximum load-balancing 
maximum 
Optional
The default number is 4.
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter OSPF view  ospf [ process-id | router-id 
router-id ] * 
-