508
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
Parameters
ase
: Sets a preference to OSPFv3 external routes. If you do not specify this keyword, 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
prefix-suppression
Use
prefix-suppression
to disable an OSPFv3 process from advertising all prefixes except for the prefixes
of loopback interfaces and passive interfaces.
Use
undo prefix-suppression
to restore the default.
NOTE:
This command is available in Release 2311P04 and later versions.
Syntax
prefix-suppression
undo prefix-suppression
Default
An OSPFv3 process advertises all prefixes.
Views
OSPFv3 view
Predefined user roles
network-admin