How to Configure OSPF for IPv6 (OSPFv3)

The basic features of the OSPFv3 routing protocol are almost same as provided by OSPFv2. However, OSPFv3 is designed to support IPv6-capable networks. In the previous posts, we have discussed a lot about the OSPF routing protocol. We recommend you to visit the following links before you should configure OSPF for IPv6.

Configure OSPF for IPv6 Step By Step

To configure OSPF for IPv6, we will use the following topology. You can use either Cisco Packet Tracer or GNS3 depending on your choice to create the following topology.

Configure OSPF for IPv6 (OSPFv3) on Cisoc Router

Once you have created the preceding topology, configure the following IPv6 addresses on the routers.IPv6 Address Table for OSPFv3

Once you have configured the preceding IPv6 addresses, you can start to configure OFPFv3 routing. If you stuck in configuring IPv6 addresses, click here to configure step by step IPv6 addresses. In order to configure the OSPFv3 routing, first, we would like to discuss the high-level steps used to configure OSPFv3 routing:

  1. Enabling IPv6 routing: In order to enable IPv6 routing on a router, you need to use ipv6 unicast-routing
  2. Assigning an OSPF router ID: In order to assign an OSPF router ID, you need to use the router-id <router-id> command in the router configuration mode.
  3. Defining areas and enabling OSPFv3 on the desired interfaces: In order to define an area and enable the OSPFv3 routing on an interface, you need to use the ipv6 ospf <process ID> area <area number> command in the interface configuration mode.

Configure OSPF for IPv6 (OSPFv3) on Router1

Once you have understood the high-level steps to configure OSPFv3, let’s begin the step by step OSPFv3 configuration.

  1. On Router1, execute the ipv6 unicast-routing command at the global configuration mode to enable IPv6 routing.
    Router1(config)#ipv6 unicast-routing
  2. Next, configure 1.1.1.1/8 IPv4 address on the lo0 loopback interface. This IP address will be used as router-id for this router.
Router1(config)#int Loopback1
Router1(config-if)#ip add 1.1.1.1 255.0.0.0
Router1(config-if)#exit
  1. Next, create an OSPFv3 process and define the router ID.
Router1(config)#ipv6 router ospf 1
Router1(config-rtr)#router-id 1.1.1.1
Router1(config-rtr)#exit
  1. Next, enable OSPFv3 routing on the interfaces that you want to advertise in the network, in this example, we will enable OSPFv3 routing on the FastEthernet0/0 interface.
Router1(config)#int fa0/0
Router1(config-if)#ipv6 ospf 1 area 0
Router1(config-if)#exit
Router1(config)#

Configure OSPF for IPv6 on Router2

Once you have configured OSPFv3 on Router1, move on to Router2 and execute the following commands.

  1. Execute the ipv6 unicast-routing command at the global configuration mode to enable the IPv6 routing.
Router2(config)#ipv6 unicast-routing
  1. Next, configure 2.2.2.2/8 IPv4 address on the lo0 loopback interface. This IP address will be used as router-id for this router.
Router2(config)#int Loopback1
Router2(config-if)#ip add 2.2.2.2 255.0.0.0
Router2(config-if)#exit
  1. Next, create an OSPFv3 process and define the router ID.
Router2(config)#ipv6 router ospf 1
Router2(config-rtr)#router-id 2.2.2.2
Router2(config-rtr)#exit
  1. Next, enable OSPFv3 routing on the interfaces that you want to advertise in the network.
Router2(config)#int fa0/0
Router2(config-if)#ipv6 ospf 1 area 0
Router2(config-if)#exit
Router2(config)#int fa0/1
Router2(config-if)#ipv6 ospf 1 area 1
Router2(config-if)#exit
Router2(config)#

Configure OSPF for IPv6 on Router3

Once you have configured OSPFv3 on Router1 and Router2, move on to Router3 and execute the following commands.

Router3(config)#ipv6 unicast-routing
Router3(config)#int Loopback1
Router3(config-if)#ip add 3.3.3.3 255.0.0.0
Router3(config-if)#exit
Router3(config)#ipv6 router ospf 1
Router3(config-rtr)#router-id 3.3.3.3
Router3(config-rtr)#exit
Router3(config)#int fa0/1
Router3(config-if)#ipv6 ospf 1 area 1
Router3(config-if)#exit

Verify OSPFv3 Configuration

Well, you have successfully configured OSPFv3 on all the routers. Now, it’s time to verify your configuration. To verify your configuration, examine the learned routes in the routing table.

  1. To show the routing table, execute the following command on any router.
Router#show ipv6 route
  1. To show the neighbor table, execute the following command on any router.
Router#show ipv6 neighbor

Show IPv6 OSPFv3 Routing

  1. To show the interfaces participating in the OSPF routing process, execute the following command.
Router#show ipv6 interfaces
  1. To show the OSPF border routers, execute the following command.
Router#show ipv6 border-routers

Configure OSPF for IPv6 OSPFv3 Routing

In the preceding figure, you can see that Router3 shows the OSPFv3-enabled interfaces and the ABR routers. In this article, we have explained a step by step guide to configure OSPF for IPv6 (OSPFv3). Hope, this helped you. We would love to hear your queries and suggestions. It will help us to improve the article(s).

Posted in IPv6, Routing Tagged with: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*