< Home

preference (RIPng)

Function

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.

Format

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

undo preference

Parameters

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.

Views

RIPng view

Default Level

2: Configuration level

Usage Guidelines

The preference of the specified route can be changed by using the routing policy.

Example

# 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 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >