The preference command specifies the preference for RIPng routes.
The undo preference command restores the default setting.
By default, the preference of RIPng routes is 100.
| Parameter | Description | Value |
|---|---|---|
| route-policy route-policy-name | Indicates the routing policy, through which the preference of eligible routes can be set. | The value must be the name of an existing routing policy. |
| preference | Specifies the preference value of RIPng routes. | The value is an integer ranging from 1 to 255. |
# Set the preference of RIPng routes to 120.
<sysname> system-view
[sysname] ripng 100
[sysname-ripng-100] preference 120
# Change the preference of RIPng routes by using the routing policy.
<sysname> system-view
[sysname] ripng 100
[sysname-ripng-100] preference route-policy policy1 60
# Restore the default preference of RIPng routes.
<sysname> system-view
[sysname] ripng 100
[sysname-ripng-100] undo preference