preference

Use preference to specify a preference for OSPFv3 routes.

Use undo preference to restore the default.

Syntax

preference [ ase ] [ route-policy route-policy-name ] preference

undo preference [ ase ]

Default

The preference for OSPFv3 internal routes is 10, and that for OSPFv3 external routes is 150.

Views

OSPFv3 view

Predefined user roles

network-admin

mdc-admin

Parameters

ase: Sets a preference to OSPFv3 external routes. If the keyword is not specified, the command sets a preference for OSPFv3 internal routes.

route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters, to set a preference for matching routes.

preference: Specifies the preference of OSPFv3, in the range of 1 to 255. The smaller the value, the higher the preference.

Usage guidelines

If multiple routing protocols find multiple routes to the same destination, the router uses the route found by the protocol with the highest preference.

Examples

# Set a preference of 150 for OSPFv3 routes.

<Sysname> system-view
[Sysname] OSPFv3
[Sysname-OSPFv3-1] preference 150