If multiple dynamic routing protocols run on a device, the device needs to select optimal routes from the routes of these protocols. In this case, you can set a priority for each routing protocol. In this manner, when different protocols discover the routes to the same destination, the route discovered by the protocol with the highest priority is selected.
Procedure
- Run system-view
The system view is displayed.
- Run ospfv3 [ process-id ]
The OSPFv3 view is displayed.
- Run preference [ ase ] { preference | route-policy route-policy-name | route-filter route-filter-name } *
The priority of OSPF is set.
- The parameter ase sets the priority for AS-external routes.
- The parameter preference specifies the priority for OSPF routes. The smaller the value, the higher the priority.
- route-policy route-policy-name specifies the name of a route-policy used to filter routes.
- route-filter route-filter-name specifies the name of a route-filter used to filter routes.
- Run commit
The configuration is committed.