Curriculum
Course: CCNP ENARSI Labs
Login

Curriculum

CCNP ENARSI Labs

Text lesson

7.5 Verify OSPFv3

The commands to verify traditional OSPFv3 and OSPFv3 with AF may differ. This is because OSPFv3 with AF commands include information for both IPv4 and IPv6 address families, whereas traditional OSPFv3 is for IPv6 only.

Step 1: Verifying neighbor adjacencies.

a. Use the show ipv6 ospf neighbor command on D1 to display OSPFv3 neighbors. This is a command used for routers configured with traditional OSPFv3. The equivalent command for OSPFv2 would be show ip ospf neighbor.

D1# show ipv6 ospf neighbor

 

            OSPFv3 Router with ID (1.1.1.2) (Process ID 123)

 

Neighbor ID     Pri   State           Dead Time   Interface ID   Interface

1.1.1.1           1   FULL/DR         00:00:39    6              GigabitEthernet0/1

 

b. This same command on a router running OSPFv3 with AF would generate similar output. For example, on R1 issue the same show ipv6 ospf neighbor command. Notice the output is only OSPFv3 for the IPv6 AF.

R1# show ipv6 ospf neighbor

 

            OSPFv3 Router with ID (1.1.1.1) (Process ID 123)

 

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface

2.2.2.1           1   FULL/BDR        00:00:31    5               GigabitEthernet0/0

1.1.1.2           1   FULL/BDR        00:00:38    471             GigabitEthernet0/1

 

c. Now, issue the show ospfv3 neighbor command on R1. This is a command used for routers configured for OSPFv3 with AF. Notice the output includes neighbors for both IPv4 and IPv6 address families.

R1# show ospfv3 neighbor

 

          OSPFv3 123 address-family ipv4 (router-id 1.1.1.1)

 

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface

2.2.2.1           1   FULL/BDR        00:00:38    5               GigabitEthernet0/0

 

          OSPFv3 123 address-family ipv6 (router-id 1.1.1.1)

 

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface

2.2.2.1           1   FULL/BDR        00:00:32    5               GigabitEthernet0/0

1.1.1.2           1   FULL/BDR        00:00:30    471             GigabitEthernet0/1

 

 

Traditional OSPFv3 commands are similar to those for OSPFv2, except ipv6 is used as an argument instead of ip, for example show ip ospf neighbor and show ipv6 ospf neighbor. OSPFv3 with AF uses the argument ospfv3 which includes both OSPF for IPv4 and IPv6 AFs. For example, show ospfv3 neighbor.

Traditional OSPFv3 commands can be used when a router is configured for OSPFv3 with AF, but the OSPFv3 AF router will only show OSPF for IPv6 AF information. OSPFv3 with AF commands cannot be used on routers configured with traditional OSPFv3.

To summarize the show command arguments:

  • OSPFv2: Use show ip ospf (IPv4 only
  • Traditional OSPFv3: Use show ipv6 ospf (IPv6 only)
  • OSPFv3 with AF: Use show ospfv3 (IPv4 and IPv6 AF) or show ipv6 ospf (IPv6 only)

Question:

Why does the show ipv6 ospf neighbor command only display OSPFv3 neighbors in the IPv6 AF?

Type your answers here.

The show ipv6 ospf neighbor command is used to display OSPFv3 neighbor adjacencies, specifically for IPv6 indicated by the ipv6 keyword in the command. The router ID 1.1.1.6 and 3.3.3.6 are associated with the IPv6 AF.

Step 2: Examining the IP routing tables.

a. Use the show ipv6 route ospf command on D1 to display OSPFv3 routing entries in the IPv6 routing table.

D1# show ipv6 route ospf

IPv6 Routing Table – default – 9 entries

Codes: C – Connected, L – Local, S – Static, U – Per-user Static route

       B – BGP, R – RIP, H – NHRP, I1 – ISIS L1

       I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary, D – EIGRP

       EX – EIGRP external, ND – ND Default, NDp – ND Prefix, DCE – Destination

       NDr – Redirect, RL – RPL, O – OSPF Intra, OI – OSPF Inter

       OE1 – OSPF ext 1, OE2 – OSPF ext 2, ON1 – OSPF NSSA ext 1

       ON2 – OSPF NSSA ext 2, la – LISP alt, lr – LISP site-registrations

       ld – LISP dyn-eid, lA – LISP away, le – LISP extranet-policy

OI  2001:DB8:ACAD:2001::/64 [110/4]

     via FE80::1:1, GigabitEthernet0/1

OI  2001:DB8:ACAD:2002::/64 [110/5]

     via FE80::1:1, GigabitEthernet0/1

OI  2001:DB8:ACAD:A001::/64 [110/2]

     via FE80::1:1, GigabitEthernet0/1

OI  2001:DB8:ACAD:A002::/64 [110/3]

     via FE80::1:1, GigabitEthernet0/1

 

Question:

Display the routes using the show ip route ospf. Why are there no routes displayed using this command?

Type your answers here.

D1 is in an IPv6-only area. D1 is only implementing traditional OSPFv3 for IPv6 and has not been configured for OSPFv2 for IPv4.

b. Understanding the difference between commands associated with OSPFv2 and OSPFv3 can seem challenging at times. The show ip route ospfv3 command is used to view OSPFv3 routes in the IPv4 routing table. The show ipv6 route ospf command is used to view OSPFv3 routes in the IPv6 routing table. The show ipv6 route ospf command is the same command used with traditional OSPFv3 for IPv6.

R1# show ip route ospf

 

R1# show ip route ospfv3

Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP

       D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area

       N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2

       E1 – OSPF external type 1, E2 – OSPF external type 2

       i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2

       ia – IS-IS inter area, * – candidate default, U – per-user static route

       o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP

       a – application route

       + – replicated route, % – next hop override, p – overrides from PfR

 

Gateway of last resort is not set

 

      10.0.0.0/8 is variably subnetted, 4 subnets, 3 masks

O IA     10.10.4.0/30 [110/3] via 172.16.0.1, 00:17:34, GigabitEthernet0/0

O IA     10.10.5.0/24 [110/4] via 172.16.0.1, 00:17:34, GigabitEthernet0/0

      172.16.0.0/16 is variably subnetted, 3 subnets, 2 masks

O        172.16.1.0/30 [110/2] via 172.16.0.1, 00:17:34, GigabitEthernet0/0

 

 

R1# show ipv6 route ospfv3

                       ^

% Invalid input detected at ‘^’ marker.

 

 

R1# show ipv6 route ospf

IPv6 Routing Table – default – 9 entries

Codes: C – Connected, L – Local, S – Static, U – Per-user Static route

       B – BGP, R – RIP, H – NHRP, I1 – ISIS L1

       I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary, D – EIGRP

       EX – EIGRP external, ND – ND Default, NDp – ND Prefix, DCE – Destination

       NDr – Redirect, RL – RPL, O – OSPF Intra, OI – OSPF Inter

       OE1 – OSPF ext 1, OE2 – OSPF ext 2, ON1 – OSPF NSSA ext 1

       ON2 – OSPF NSSA ext 2, a – Application

O   2001:DB8:ACAD:1002::/64 [110/2]

     via FE80::D1:2, GigabitEthernet0/1

OI  2001:DB8:ACAD:2001::/64 [110/3]

     via FE80::2:1, GigabitEthernet0/0

OI  2001:DB8:ACAD:2002::/64 [110/4]

     via FE80::2:1, GigabitEthernet0/0

O   2001:DB8:ACAD:A002::/64 [110/2]

     via FE80::2:1, GigabitEthernet0/0

 

 

Question:

Why doesn’t the show ip route ospf command display any routes on R1?

Type your answers here.

The show ip route ospf command is used to display OSPFv2 routes in the IPv4 routing table. R1 is implementing OSPFv3.

Step 3: Examining the OSPF LSDB.

a. D1 is running traditional OSPFv3. The show ipv6 ospf database command is used to display a summary of the OSPFv3 LSDB.

D1# show ipv6 ospf database

 

            OSPFv3 Router with ID (1.1.1.2) (Process ID 123)

 

                Router Link States (Area 1)

 

ADV Router       Age         Seq#        Fragment ID  Link count  Bits

 1.1.1.1         1096        0x80000009  0            1           B

 1.1.1.2         1110        0x80000005  0            1           None

 

                Net Link States (Area 1)

 

ADV Router       Age         Seq#        Link ID    Rtr count

 1.1.1.1         1152        0x80000001  6          2

 

                Inter Area Prefix Link States (Area 1)

 

ADV Router       Age         Seq#        Prefix

 1.1.1.1         1096        0x80000003  2001:DB8:ACAD:A001::/64

 1.1.1.1         1096        0x80000003  2001:DB8:ACAD:A002::/64

 1.1.1.1         833         0x80000005  2001:DB8:ACAD:2001::/64

 1.1.1.1         1497        0x80000002  2001:DB8:ACAD:2002::/64

 

                Link (Type-8) Link States (Area 1)

 

ADV Router       Age         Seq#        Link ID    Interface

 1.1.1.2         1150        0x80000001  39         Gi1/0/23

 1.1.1.1         1096        0x80000006  6          Gi1/0/11

 1.1.1.2         1151        0x80000001  38         Gi1/0/11

 

                Intra Area Prefix Link States (Area 1)

 

ADV Router       Age         Seq#        Link ID    Ref-lstype  Ref-LSID

 1.1.1.1         1152        0x80000001  6144       0x2002      6

 1.1.1.2         1150        0x80000003  0          0x2001      0

 

b. R1 is running OSPFv3 with AF. The show ospfv3 database command is used to display a summary of the OSPFv3 LSDB for both the IPv4 and IPv6 AFs.

R1# show ospfv3 database

 

          OSPFv3 123 address-family ipv4 (router-id 1.1.1.1)

 

                Router Link States (Area 0)

 

ADV Router       Age         Seq#        Fragment ID  Link count  Bits

 1.1.1.1         532         0x80000005  0            1           None

 2.2.2.1         508         0x80000008  0            2           None

 3.3.3.1         507         0x80000006  0            1           B

 

                Net Link States (Area 0)

 

ADV Router       Age         Seq#        Link ID    Rtr count

 2.2.2.1         539         0x80000001  5          2

 3.3.3.1         512         0x80000001  5          2

 

                Inter Area Prefix Link States (Area 0)

 

ADV Router       Age         Seq#        Prefix

 3.3.3.1         553         0x80000001  10.10.4.0/30

 3.3.3.1         513         0x80000001  10.10.5.0/24

 

                Link (Type-8) Link States (Area 0)

 

ADV Router       Age         Seq#        Link ID    Interface

 1.1.1.1         579         0x80000001  5          Gi0/0/0

 2.2.2.1         579         0x80000001  5          Gi0/0/0

 

                Intra Area Prefix Link States (Area 0)

 

ADV Router       Age         Seq#        Link ID    Ref-lstype  Ref-LSID

 2.2.2.1         539         0x80000001  5120       0x2002      5

 3.3.3.1         512         0x80000001  5120       0x2002      5

 

                Router Link States (Area 1)

 

ADV Router       Age         Seq#        Fragment ID  Link count  Bits

 1.1.1.1         602         0x80000001  0            0           None

 

          OSPFv3 123 address-family ipv6 (router-id 1.1.1.1)

 

                Router Link States (Area 0)

 

ADV Router       Age         Seq#        Fragment ID  Link count  Bits

 1.1.1.1         530         0x80000005  0            1           B

 2.2.2.1         508         0x80000009  0            2           None

 3.3.3.1         508         0x80000006  0            1           B

 

                Net Link States (Area 0)

 

ADV Router       Age         Seq#        Link ID    Rtr count

 2.2.2.1         539         0x80000001  5          2

 3.3.3.1         511         0x80000001  5          2

 

                Inter Area Prefix Link States (Area 0)

 

ADV Router       Age         Seq#        Prefix

 1.1.1.1         579         0x80000001  2001:DB8:ACAD:1001::/64

 1.1.1.1         559         0x80000001  2001:DB8:ACAD:1002::/64

 3.3.3.1         551         0x80000001  2001:DB8:ACAD:2001::/64

 3.3.3.1         512         0x80000001  2001:DB8:ACAD:2002::/64

 

                Link (Type-8) Link States (Area 0)

 

ADV Router       Age         Seq#        Link ID    Interface

 1.1.1.1         578         0x80000002  5          Gi0/0/0

 2.2.2.1         578         0x80000002  5          Gi0/0/0

 

                Intra Area Prefix Link States (Area 0)

 

ADV Router       Age         Seq#        Link ID    Ref-lstype  Ref-LSID

 2.2.2.1         539         0x80000001  5120       0x2002      5

 3.3.3.1         511         0x80000001  5120       0x2002      5

 

                Router Link States (Area 1)

 

ADV Router       Age         Seq#        Fragment ID  Link count  Bits

 1.1.1.1         553         0x80000006  0            1           B

 1.1.1.2         552         0x80000025  0            1           None

 

                Net Link States (Area 1)

 

ADV Router       Age         Seq#        Link ID    Rtr count

 1.1.1.2         560         0x80000001  38         2

 

                Inter Area Prefix Link States (Area 1)

 

ADV Router       Age         Seq#        Prefix

 1.1.1.1         578         0x80000001  2001:DB8:ACAD:A001::/64

 1.1.1.1         538         0x80000001  2001:DB8:ACAD:A002::/64

 1.1.1.1         506         0x80000001  2001:DB8:ACAD:2002::/64

 1.1.1.1         506         0x80000001  2001:DB8:ACAD:2001::/64

 

                Link (Type-8) Link States (Area 1)

 

ADV Router       Age         Seq#        Link ID    Interface

 1.1.1.1         559         0x8000000C  6          Gi0/0/1

 1.1.1.2         598         0x80000002  38         Gi0/0/1

 

                Intra Area Prefix Link States (Area 1)

 

ADV Router       Age         Seq#        Link ID    Ref-lstype  Ref-LSID

 1.1.1.2         481         0x80000016  0          0x2001      0

 1.1.1.2         560         0x80000001  38912      0x2002      38

 

Question:

What would the show ipv6 route database command display on R1, if anything?

Type your answers here.

The show ipv6 ospf database command can also be used on R1, but it will only display OSPFv3 IPv6 AF information.