Configuring OSPF v3

Basic elements for configuration

The configuration of OSPF v3 in a single area is similar to the configuration of OSPF v2, with slight changes. The creation of the routing instance is similar with what has been done for OSPF v2.

Here is a sample OSPF v3 configuration. OSPF v3 is activated on interfaces eth0_0 and eth1_0. The interface eth1_0 is in passive mode, which means it only emits OSPF packets and does not receive them.

vrf main
    routing ospf6
       router-id 10.125.0.1
       interface eth1_0 area 0.0.0.0
       interface eth0_0 area 0.0.0.0
       ..
       ..
    routing interface eth1_0
       ipv6 ospf6 passive true

You can disable OSPF v3 without having to remove the configuration, by using following command:

vrf main
    routing ospf6
        enabled false

Nonetheless, it is always possible to suppress OSPF v3 configuration:

vrf main
    del routing ospf6
    ..

Verifying operation

The following commands can be used to verify OSPF v3 operation.

  • Display the global OSPF parameters (timers, area, router-id, etc.):
vrouter> show ospf6
  OSPFv3 Routing Process (0) with Router-ID 10.125.0.1
  Running 00:00:44
  LSA minimum arrival 1000 msecs
  Initial SPF scheduling delay 0 millisec(s)
  Minimum hold time between consecutive SPFs 50 millsecond(s)
  Maximum hold time between consecutive SPFs 5000 millsecond(s)
  Hold time multiplier is currently 1
  SPF algorithm last executed 00:00:22 ago, reason L+
  Last SPF duration 0 sec 40 usec
  SPF timer is inactive
  Number of AS scoped LSAs is 0
  Number of areas in this router is 1

  Area 0.0.0.0
     Number of Area scoped LSAs is 2
     Interface attached to this area: eth0_0 eth1_0
 SPF last executed 22.662241s ago
  • Display the OSPF v3 route:
vrouter> show ospf6 route
 *N IA 2001:500:1::/64                ::                     eth0_0 00:02:50
 *N IA 3ffe:1::/64                    ::                     eth1_0 00:02:50
  • Display the OSPF configuration for the specified interface:
vrouter> show ospf6 interface eth0_0
 eth0_0 is up, type BROADCAST
 Interface ID: 3
 Internet Address:
   inet6: 2001:500:1::1/64
   inet6: fe80::dced:1ff:fe4c:9269/64
 Instance ID 0, Interface MTU 1500 (autodetect: 1500)
 MTU mismatch detection: enabled
 Area ID 0.0.0.0, Cost 100
 State DR, Transmit Delay 1 sec, Priority 1
 Timer intervals configured:
  Hello 10, Dead 40, Retransmit 5
 DR: 10.1.1.1 BDR: 0.0.0.0
 Number of I/F scoped LSAs is 1
   0 Pending LSAs for LSUpdate in Time 00:00:00 [thread off]
   0 Pending LSAs for LSAck in Time 00:00:00 [thread off]
  • Display the state of the relations with the neighbors:
vrouter> show ospf6 neighbor
  Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
  10.125.0.2        1    00:00:31     Full/BDR             00:00:16 eth1_0[DR]

Configuration example

../../../../_images/basic-configuration.svg

Basic OSPF v3 configuration

rt1

vrf main
  routing ospf6
    router-id 10.1.1.1
    interface eth0_0 area 0.0.0.0
    interface eth1_0 area 0.0.0.0
    ..
    ..
  interface
    physical eth1_0
       ipv6 address 3ffe:1::1/64
       ..
    ..
    physical eth0_0
       ipv6 address 2001:500:1::1/64
       ..
    ..

rt2

vrf main
  routing ospf6
    router-id 10.1.1.2
    interface eth0_0 area 0.0.0.0
    interface eth1_0 area 0.0.0.0
    interface eth2_0 area 0.0.0.0
    ..
    ..
  interface
    physical eth2_0
       ipv6 address 3ffe:2::2/64
       ..
    ..
    physical eth0_0
       ipv6 address 2001:500:1::2/64
       ..
    ..
    physical eth1_0
       ipv6 address 2001:500:2::2/64
       ..
    ..

rt3

vrf main
  routing ospf6
    router-id 10.1.1.3
    interface eth0_0 area 0.0.0.0
    interface eth1_0 area 0.0.0.0
    ..
    ..
  interface
    physical eth0_0
       ipv6 address 3ffe:3::3/64
       ..
    ..
    physical eth1_0
       ipv6 address 2001:500:2::3/64
       ..
    ..
  • Check OSPF v3 operations:
rt1> show ospf6 neighbor
Neighbor ID     Pri    DeadTime    State/IfState         Duration I/F[State]
10.1.1.2          1    00:00:32     Full/BDR             00:03:25 ntfp1[DR]

Note

The state must be at Full, otherwise, this means that the OSPF v3 neighberhood is not correctly formed.

rt1> show ospf6 route

       Destination             Gateway                   I/F
---------------------------
*N Ia 2001:500:2::/64          ::                        eth1_0 00:17:01
*N Ia 2001:500:1::/64          fe80::dced:1ff:fee4:395c  eth1_0 00:16:56
*N Ia 3ffe:1::/64              ::                        eth1_0 00:17:01
*N Ia 3ffe:2::/64              fe80::dced:1ff:fee4:395c  eth1_0 00:16:56
*N Ia 3ffe:3::/64              fe80::dced:1ff:fee4:395c  eth1_0 00:16:56
  • Display the OSPF v3 Link-State databases and information about LSAs (Link State Advertisements)
vrouter> show ospf6 database

     Area Scoped Link State Database (Area 0.0.0.0)

Type LSId           AdvRouter       Age   SeqNum                        Payload
Rtr  0.0.0.0        10.1.1.1        429 80000002               10.1.1.1/0.0.0.3
Rtr  0.0.0.0        10.1.1.2        237 80000003               10.1.1.1/0.0.0.3
Rtr  0.0.0.0        10.1.1.2        237 80000003               10.1.1.2/0.0.0.8
Rtr  0.0.0.0        10.1.1.3        238 80000002               10.1.1.2/0.0.0.8
Net  0.0.0.3        10.1.1.1        429 80000001                       10.1.1.1
Net  0.0.0.3        10.1.1.1        429 80000001                       10.1.1.2
Net  0.0.0.8        10.1.1.2        237 80000001                       10.1.1.2
Net  0.0.0.8        10.1.1.2        237 80000001                       10.1.1.3
INP  0.0.0.0        10.1.1.1        429 80000003                    3ffe:1::/64
INP  0.0.0.3        10.1.1.1        429 80000001                2001:500:1::/64
INP  0.0.0.0        10.1.1.2        237 80000004                    3ffe:2::/64
INP  0.0.0.8        10.1.1.2        237 80000001                2001:500:2::/64
INP  0.0.0.0        10.1.1.3        238 80000003                    3ffe:3::/64

     I/F Scoped Link State Database (I/F loop in Area 0.0.0.0)

Type LSId           AdvRouter       Age   SeqNum                        Payload
Lnk  0.0.0.5        10.1.1.1       1116 80000001      fe80::4426:67ff:fef5:88b4

     I/F Scoped Link State Database (I/F ntfp1 in Area 0.0.0.0)

Type LSId           AdvRouter       Age   SeqNum                        Payload
Lnk  0.0.0.3        10.1.1.1       1109 80000001       fe80::dced:1ff:fe4c:9269
Lnk  0.0.0.6        10.1.1.2        432 80000001       fe80::dced:1ff:fee4:395c

     AS Scoped Link State Database

Type LSId           AdvRouter       Age   SeqNum                        Payload