preference (RIP)
Function
The preference command sets the preference for RIP routes.
The undo preference command restores the default preference of RIP routes.
The default preference for RIP routes is 100.
Parameters
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 route-policy-name | Specifies the routing policy that sets preference for the routes meeting conditions. | The value is a string of 1 to 40 case-sensitive characters without spaces. |
Usage Guidelines
A small value indicates a high preference. 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.