< Home

preference (RIP)

Function

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.

Format

preference { preference | route-policy route-policy-name } *

undo preference

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 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.

Views

RIP view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Set the preference of RIP routes to 120.

<FW> system-view
[FW] rip 1
[FW-rip-1] preference 120

# Set the preference of RIP routes that match the routing policy named rt-policy1 to 120.

<FW> system-view
[FW] rip 1
[FW-rip-1] preference 120 route-policy rt-policy1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >