9-42
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
[Sysname-OSPFv3-1] preference 150
router-id
Syntax
router-id
router-id
undo router-id
View
OSPFv3 view
Default Level
2: System level
Parameters
router-id
: 32-bit router ID, in IPv4 address format.
Description
Use the
router-id
command to configure the OSPFv3 router ID.
Use the
undo router-id
command to remove a configured router ID.
Router ID is the unique identifier of a device running an OSPFv3 process in the autonomous system.
The OSPFv3 process cannot run without a Router ID.
Make sure that different processes have different Router IDs.
Related commands:
ospfv3
.
By configuring different router IDs for different processes, you can run multiple OSPFv3 processes on
a router.
Examples
# Configure the Router ID as 10.1.1.3 for OSPFv3 process 1.
<Sysname> system-view
[Sysname] ospfv3 1