The preference command specifies the preference for RIP routes and sets the preference for the specific route by applying the route-policy.
The undo preference command restores the default setting.
By default, the preference of RIP routes is 100.
| Parameter | Description | Value |
|---|---|---|
| preference | Specifies the preference for routes. | The value is an integer ranging from 1 to 255. By default, it is 100. |
| route-policy | Indicates the route-policy, through which the preference of eligible routes can be set. | - |
| route-policy-name | Specifies the name of the route-policy. | The value is a string of 1 to 40 case-sensitive characters and cannot contain a space. |
The smaller the preference value is, the higher the preference is. To enable RIP routes to have a higher preference than the routes learned by other IGP protocols, you need to configure a smaller preference value for the RIP routes. The preference determines the algorithm through which the optimal route is obtained among the routes in the IP routing table.