ipv6 preference

Function

The ipv6 preference command sets a priority for the IPv6 routes generated by IS-IS.

The undo ipv6 preference command restores the default value.

By default, the priority for the IPv6 routes generated by IS-IS is 15.

Format

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

undo ipv6 preference

Parameters

Parameter Description Value
route-policy route-policy-name

Specifies the name of a route-policy.

The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

route-filter route-filter-name

Specifies the name of route filter policy.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters.

preference

Specifies the priority. The smaller the value, the higher the priority.

The value is an integer ranging from 1 to 255.

Views

IS-IS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
isis write

Usage Guidelines

Usage Scenario

Multiple dynamic routing protocols can be run on a device. In this case, set a default priority for each routing protocol. If different protocols have routes to the same destination, the route with the highest priority is selected for IP packet forwarding.

You can set a priority only for specific routes matching a route-policy. For the route that matches the route-policy, the priority set in the route-policy is preferred to the priority set using the ipv6 preference command. If no priority is set in the route-policy or the ipv6 preference command is not run, the default priority is used.

Prerequisites

IPv6 has been enabled for the IS-IS process. For details, see isis ipv6 enable.

Example

# Set the priority for the IPv6 routes generated by IS-IS to 20.
<HUAWEI> system-view
[~HUAWEI] isis
[*HUAWEI-isis-1] ipv6 enable
[*HUAWEI-isis-1] ipv6 preference 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >