[Sysname-Vlan-interface10] ospfv3 trans-delay 3 instance 1
preference
Syntax
preference
[
ase
] [
route-policy
route-policy-name
]
preference
undo preference
[
ase
]
View
OSPFv3 view
Default level
2: System level
Parameters
ase
: Applies the preference to OSPFv3 external routes. If the keyword is not specified, the
preference applies to OSPFv3 internal routes.
route-policy route-policy-name
: References a routing policy to set preference for specific routes.
The name is a case-sensitive string of 1 to 63 characters.
Preference
: Preference of OSPFv3, in the range of 1 to 255.
Description
Use
preference
to specify a preference for OSPFv3 routes.
Use
undo preference
to restore the default.
By default, the preference for OSPFv3 internal routes is 10, and that for OSPFv3 external routes is
150.
The smaller the value is, the higher the preference is.
A router may run multiple routing protocols. Each protocol has a preference. When several routing
protocols find multiple routes to the same destination, the route found by the protocol with the highest
preference is selected.
Examples
# Set a preference of 150 for OSPFv3 routes.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] preference 150
router-id
Syntax
router-id
router-id
undo router-id
View
OSPFv3 view
Default level
2: System level
325