< Home

ipv6 preference

Function

The ipv6 preference command sets the preference of the IPv6 route generated by IS-IS.

The undo ipv6 preference command restores the default value.

By default, the preference of the IS-ISv6 protocol is 15.

Format

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

undo ipv6 preference

Parameters

Parameter Description Value
route-policy route-policy-name Specifies the name of the routing 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.
preference Specifies the protocol preference. The smaller the value, the higher the preference. The value is an integer ranging from 1 to 255.

Views

IS-IS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command is valid only for an IPv6 base topology.

The routing policy can be used to set the preference for the filtered routes. If the preference is set, only the routes that pass the route-policy can apply the preference specified by this command; otherwise, routes apply the default value of the preference.

Multiple dynamic routing protocols can be run on a router at the same time. To properly select routes, the system sets a default preference for each routing protocol. If different protocols find routes to the same destination, the route of the protocol with a higher priority is preferred.

The ipv6 preference command can take effect only after IPv6 is enabled for the IS-IS process by the ipv6 enable command.

Precautions

Creating a route-policy before it is referenced is recommended. By default, nonexistent route-policies cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent route-policy is referenced using the current command, the configured priority applies to all IS-IS IPv6 routes.

Example

# Set the preference for IS-ISv6 as 20.

<sysname> system-view
[sysname] ipv6
[sysname] isis
[sysname-isis-1] ipv6 enable
[sysname-isis-1] ipv6 preference 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >