Configuring the maximum number of OSPF routes
Follow these steps to configure the maximum number of routes:
To do...
Enter system view
Enter OSPF view
Configure the maximum number of
OSPF routes
Configuring the maximum number of load-balanced routes
If several equal-cost routes to the same destination are available, you can configure them as
load-balanced routes to improve link utilization.
Follow these steps to configure the maximum number of load-balanced routes:
To do...
Enter system view
Enter OSPF view
Configure the maximum number of
load-balanced routes
Configuring OSPF preference
A router can run multiple routing protocols, and each protocol is assigned a preference. When the
routing protocols find routes to the same destination, the route found by the protocol with the highest
preference is selected as the best route.
Follow these steps to configure OSPF preference:
To do...
Enter system view
Enter OSPF view
Configure a preference for
OSPF
Use the command...
system-view
ospf [ process-id | router-id router-id |
vpn-instance vpn-instance-name ] *
maximum-routes { external | inter | intra }
number
Use the command...
system-view
ospf [ process-id | router-id router-id |
vpn-instance vpn-instance-name ] *
maximum load-balancing maximum
Use the command...
system-view
ospf [ process-id | router-id router-id
| vpn-instance vpn-instance-name ] *
preference [ ase ] [ route-policy
route-policy-name ] value
83
Remarks
—
—
Optional
The number varies with
devices.
Remarks
—
—
Optional
8 by default
Remarks
—
—
Optional
By default, the preference of OSPF
internal routes is 10, and the preference
of OSPF external routes is 150.