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.
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 name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
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.