Setting the Preference of OSPF Routes
Procedure
- Run system-view
The system view is displayed.
- Run ospf [ process-id ]
The OSPF process view is displayed.
- Run preference [ ase | inter | intra ] { preference | route-policy route-policy-name } *
The preference of OSPF routes is set.
- The parameter ase is used to set the preference of AS-external routes.
- The parameter
inter is used to set the preference of inter-area routes.
- The parameter
intra is used to set the preference of intra-area routes.
- The parameter preference specifies the preference of OSPF routes. A smaller value of preference indicates a higher preference.
- The parameter route-policy route-policy-name indicates that a routing policy is used to set the preference of specified routes.
By default, the preference of OSPF routes is 10. When the parameter ase is specified, the default preference of AS-external routes is 150.
- Run commit
The configuration is committed.