F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
840
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
Default command 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.
Usage guidelines
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
Use router-id to configure the OSPFv3 router ID.
Use undo router-id to remove a configured router ID.
Syntax
router-id router-id
undo router-id
Views
OSPFv3 view