preference

Use preference to configure the preference for IS-IS.

Use undo preference to restore the default.

Syntax

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

undo preference

Default

IS-IS preference is 15.

Views

IS-IS view

Predefined user roles

network-admin

mdc-admin

Parameters

preference: Specifies an IS-IS protocol preference in the range of 1 to 255.

route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to assign a priority to the matching routes.

Usage guidelines

If a routing policy is specified in this command, the preference set by the routing policy applies to the matching routes. Other routes use the preference set by the preference command.

If multiple routing protocols find routes to the same destination, the route found by the routing protocol with the highest preference is selected as the optimal route.

Examples

# Configure the preference for IS-IS as 25.

<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] preference 25