The preference command sets the preference for an OSPFv3 route.
The undo preference command restores the default setting.
| Parameter | Description | Value |
|---|---|---|
| ase | Sets the preference for an AS external route or an NSSA route. | - |
| preference | Specifies the preference for OSPFv3 routes. | It is an integer ranging from 1 to 255. |
| route-policy route-policy-name | Specifies the name of a routing policy and sets the preference for specified routes. | The name is a string of 1 to 40 characters. |
Usage Scenario
The smaller the preference value, the higher the preference.
Multiple dynamic routing protocols may be run on a FW at the same time. Consequently, there is a problem of sharing and selecting routing information among routing protocols. Therefore, the system sets a default reference for each routing protocol. If different routing protocols find multiple routes to the same destination, the route discovered by the routing protocol with a higher preference is selected to forward IP packets.
Precautions
Creating a route-policy before it is referenced is recommended. If a nonexistent route-policy is referenced using the command, the configured priority applies to all OSPFv3 routes.