Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring OSPFv3 for IPv6

Figure 1: OSPFv3 for IPv6 Topology DiagramOSPFv3 for IPv6 Topology Diagram

Figure 1 shows an OSPFv3 topology. Routers 0, 1, 2, and 3 are connected to the OSPFv3 backbone Area 0; Routers 2, 3, and 4 connect to each other across Area 1; and Area 2 is located between Router  4 and Router 5. Because Router 5 does not have a direct adjacency to Area 0, a virtual link is required across Area 1 between Router 3 and Router 4. Similarly, because Routers 0 and 1 have two separate Area 0 backbone sections, you need to configure a second virtual link across Area 1 between Routers 2 and 3.

On Router 0, add the so-0/3/2 interface into Area 0 of the OSPFv3 process.

Router 0

On Router 1, add the at-2/0/0 interface into Area 0 of the OSPFv3 process:

Router 1

On Router 2, add the interfaces connected to Routers 1, 3, and 4 into the OSPFv3 process. You must also complete the virtual link to Router 3 through Area 1 so that Router 1 can access the discontiguous portion of the OSPF backbone found on Router 0.

Router 2

For the OSPFv3 process on Router 3, configure the interfaces connected to Router 2 and Router 4 into Area 1 and the interface connected to Router 0 into Area 0. You must also configure two virtual links through Area 1—one connecting to Router 2 and the second connecting to Router 4. The virtual links allow Router  5 to access the OSPF backbone, and connect the discontiguous sections of Area 0 located at Router 0 and Router 1.

Router 3

On Router 4, add the connected interfaces into the OSPFv3 process. You must also complete the virtual link to Router 3 through Area 1 so that Router 5 can access the OSPF backbone.

Router 4

On Router 5, add the fe-0/0/0 interface into the OSPFv3 process to complete this example:

Router 5

Verifying Your Work

To verify proper operation of OSPFv3 for IPv6, use the following commands:

  • show ospf3 interface

  • show ospf3 neighbor

  • show ospf3 database

  • show ospf3 route

  • show interfaces terse (to see the IPv6 link local address assigned to the lo0 interface)

    Note:

    To view prefix information, you must use the extensive option with the show ospf3 database command.

The following sections show the output of these commands used with the configuration example.

Note:

In the below sample output, the stars indicate the “best” routes. These routes are the routes that are installed in the routing table.

Router 0 Status

To provide a comparison between OSPFv3 show commands and legacy OSPFv2 show commands, the following is some sample output of the OSPFv2 connection between Routers 0 and 3:

Router 1 Status

Router 2 Status

Router 3 Status

To provide a comparison between OSPFv3 show commands and legacy OSPFv2 show commands, the following is some sample output of the OSPFv2 connection between Routers 0 and 3:

Router 4 Status

Router 5 Status