protocols ospfv3 router-id <router-id>
Specifies a router identifier (ID) for an OSPFv3 process.
If no router ID is explicitly configured, the OSPF3 process calculates an ID for the router by using the following algorithm:
- Use the IP address of the loopback interface.
- Use the highest IP address of the addresses on router interfaces.
- If no interfaces are defined, use 0.0.0.0.
- process-id
- An OSPFv3 process ID. Enter alphanumeric characters.
- router-id
- The router ID for an OSPFv3 process. This ID overrides the router ID calculated by the OSPFv3 process. The format is an IPv4 address.
Configuration mode
protocols {
ospfv3 {
process process-id {
router-id router-id
}
}
}
Use this command to specify a router ID for an OSPFv3 process.
Configure each router with a unique router-id. In an OSPFv3 router process that has active neighbors, a new router-id is used at the next reload or when you start the OSPFv3 manually.
Modifying the router ID causes the router to restart.
Use the set form of this command to specify a router ID for an OSPFv3 process.
Use the delete form of this command to restore defaults for the router ID.
Use the show form of this command to display the router ID for an OSPFv3 process.