< 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
preference Specifies the preference of RIPng routes. The value is an integer that ranges from 1 to 255.
route-policy route-policy-name Specifies the name of a route-policy. 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.

Views

RIPng view

Default Level

2: Configuration level

Usage Guidelines

A smaller value indicates a higher preference. To make RIPng routes take precedence over other IGP routes, set a smaller preference value for RIPng routes. The preference values also determine which routing protocol's routes are optimal routes in an IPv6 routing table.

Example

# Set the preference of RIPng routes to 120.

<HUAWEI> system-view
[HUAWEI] ripng 100
[HUAWEI-ripng-100] preference 120

# Set the preference of the RIPng routes matching route-policy policy1 to 60.

<HUAWEI> system-view
[HUAWEI] ripng 100
[HUAWEI-ripng-100] preference route-policy policy1 60
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >