To configure OSPFv3 on a Cisco device, IPv6 must be enabled on the router. This can be switched on with the global configuration command
Once IPv6 is enabled on the router, OSPFv3 router configuration mode can be entered with the command
router ospfv3 followed by the chosen process ID.
A router ID is required to be defined in this router configuration mode for OSPFv3 to function, it can’t be in the format of IPv6 address as it only accepts a 32 bit value. A IPv4 address can be entered which does not need to be configured elsewhere on an interface on the router, but does not need to be unique across the OSPF domain.
The router ID is configured with the command
router-id. If a router ID is not statically configured, it follows the same rules as OSPFv2 to try create one. If there are not any IPv4 interfaces available, adjacencies will not form.
The next step is to initialise an address family with the command
address-family followed by the protocol type (
ipv4) then the keyword
If an address family is not specified, it is automatically created when interface specific OSPF configuration is added to an interface.
To add OSPF configuration to an interface, in interface configuration mode, input the command
ospfv3 followed by the process ID, then
ipv6 area followed by the area ID.