www.howtonetwork.org

CCNA & CCNP Certifcation Training

  • About
  • Contact
  • FAQ
  • Join
  • Home
  • CCNA
    • ICND1
    • ICND2
    • 101 CCNA LABS
  • CCNP
    • ROUTE
    • SWITCH
    • TSHOOT
    • 101 CCNP LABS
  • CompTIA
    • Security+
    • Network+
  • Design
    • CCDA
    • CCDP
You are here: Home / ROUTE / Module 8 / IPv6 – OSPF version 3

IPv6 – OSPF version 3

OSPFv3 is defined in RFC 2740 and is the counterpart of OSPFv2, but is designed explicitly for the IPv6 routed protocol. The version is derived from the version field in the OSPF packet, which has been updated to a value of 3. The OSPFv3 specification is mainly based on OSPFv2, but contains additional enhancements because of the added support for IPv6.

Both OSPFv2 and OSPFv3 can run on the same router. In other words, the same physical router can route for both IPv4 and IPv6, because the each address family has a different SPF process. This does not mean that the SPF algorithm itself is different for OSPFv2 and OSPFv3; the statement simply means that a separate instance of the same SPF algorithm is run for OSPFv2 and OSPFv3. The similarities shared by OSPFv2 and OSPFv3 are as follows:

  • OSPFv3 continues to use the same packets that are also used by OSPFv2. These packets include Database Description (DBD), Link State Requests (LSR), Link State Updates (LSU) and Link State Advertisements (LSA) packets
  • The mechanisms for dynamic neighbor discovery and the adjacency formation process, i.e. the different neighbor states that OSPF transitions through from the INIT or ATTEMPT state through to the FULL state, remain the same in OSPFv3 as in OSPFv2
  • OSPFv3 still maintains RFC-compliant on different technologies. For example, if OSPFv3 is enabled over a PPP link, the network type is still specified as point-to-point. In a similar manner, if OSPFv3 is enabled over Frame Relay, the default network type is still specified as non-broadcast. In addition to this, the default network type can still be changed manually using the different interface-specific commands in Cisco IOS software
  • Both OSPFv2 and OSPFv3 use the same LSA flooding and aging mechanisms
  • Like OSPFv2, the OSPFv3 router ID still requires the use of a 32-bit IPv4 address. When OSPFv3 is enabled on a router running dual-stack, i.e. both IPv4 and IPv6, the same RID selection process used by Cisco IOS routers for OSPFv2 is used to determine the router ID to be used. However, when OSPFv3 is enabled router that has no operational IPv4 interfaces, then it is mandatory that the OSPFv3 router ID be manually configured using the router-id router configuration command
  • The OSPFv3 Link ID indicates that the links are not IPv6 specific and is still based on a 32-bit IPv4 address, as is the case in OSPFv2

While there are similarities between OSPFv2 and OSPFv3, it is important to understand that there are also some significant differences that you must be familiar with. These include:

  • In a manner similar to EIGRP for IPv6 and RIPng, OSPFv3 runs over a link. This negates the need to have anetwork statement for OSPFv3. Instead, the link is configured as part on an OSPF process by using theipv6 router ospf [process ID] area [area ID] interface configuration command.  However, like OSPFv2, the OSPF process ID is still specified in global configuration mode using the ipv6 router ospf [process ID]global configuration command
  • OSPFv3 uses Link-Local addresses to identify the OSPFv3 adjacencies. Like RIPng and EIGRPv6, the next hop IPv6 address for OSPFv3 routes will reflect the Link-Local address of the adjacent or neighboring router(s)
  • OSPFv3 introduces two new OSPF LSA types. These are the Link-LSA, defined as LSA Type 0x0008, or LSA Type 8; and the Intra-Area-Prefix LSA, defined as LSA Type 0x2009, or LSA Type 9. The Link-LSA provides the router’s Link-Local address and provides all the IPv6 prefixes attached to the link. There is one Link-LSA per link. There can be multiple Intra-Area-Prefix LSAs with different Link-State IDs. The Area flooding scope can therefore be an associated prefix with the transit network referencing a Network LSA or it an associated prefix with a router or stub referencing a Router LSA
  • The transport used by OSPFv2 and OSPFv3 is different in that OSPFv3 messages are sent over (encapsulated in) IPv6 packets
  • OSPFv3 uses two standard IPv6 Multicast addresses. The Multicast address FF02::5 is the equivalent of the AllSPFRouters Multicast address 224.0.0.5 used in OSPFv2, while the Multicast address FF02::6 address is the AllDRRouters Multicast address, and is the equivalent of the 224.0.0.6 group address used in OSPFv2
  • OSPFv3 leverages the inbuilt capabilities of IPSec and uses the AH and ESP extension headers as an authentication mechanism instead of the numerous authentication mechanisms configurable in OSPFv2. Therefore, the Authentication and AuType fields have been removed from the OSPF packet header in OSPFv3
The Options field in Hello Packets and Database Description packets has been expanded to 24-bits and includes 
two option bits, which are the R-bit and the V6-bit.  The R-bit indicates whether the originator is an active router 
and the V6-bit is used to determine whether or not the router or link should be included or excluded from IPv6 
routing calculations. These bits have been added to the Options field for processing Router-LSAs during the SPF   
 calculation. The functions of these bits are as follows:
  • If the R-bit is clear, the router can participate in OSPF topology distribution without being used to forward transit traffic
  • If the V6-bit is clear, the router can participate in OSPF topology distribution without being used to forward IPv6 datagrams
  • If the R-bit is set and theV6-bit is clear, IPv6 datagrams are not forwarded but datagrams belonging to another protocol family, e.g. IPv4 may be forwarded
  • And finally, the last significant difference is that the OSPFv3 Hello packet now contains no address information at all, but includes an Interface ID which the originating router has assigned to uniquely identify its interface to the link.  This Interface ID becomes the Network-LSA’s Link State ID, should the router become Designated-Router on the link

Cisco IOS Software OSPFv2 and OSPFv3 Configuration Differences

As is the case with the other routing protocols described in the previous sections, there are some configuration differences in Cisco IOS software when configuring OSPFv3 versus OSPFv3. However, it should be noted that these differences are not as significant as those between other versions of IPv4 routing protocols and their IPv6 counterparts.

In Cisco IOS software, OSPFv3 routing is enabled using the ipv6 router ospf [process ID] global configuration command. As is the case with OSPFv2, the OSPF process ID is locally significant to the router and does not need to be the same on adjacent routers in order for an adjacency to be established.

As is required for EIGRPv6, the router ID for OSPFv3 must either be manually specified or an operational interface with an IPv4 address, e.g. a Loopback interface, must be configured. Similar to both RIPng and EIGRPv6, there are no network commands used when enabling OSPFv3. Instead, OSPFv3 is enabled on a per-interface basis and multiple instances may be enabled on the same interface.

And finally, when configuring OSPFv3 over NBMA networks, such as Frame Relay and ATM, the neighbor statements are specified under the specific interface using the ipv6 ospf neighbor [link local address] interface configuration command. In OSPFv2, these would be configured in router configuration mode.

NOTE: When configuring OSPFv3 over NBMA technologies, you should create static Frame Relay map statements using Link-Local addresses. This is because the Link-Local address is used to establish adjacencies and not the global Unicast address. For example, to create a static Frame Relay map statement and specify and OSPF neighbor for a Frame Relay implementation, the following configuration would be implemented on the router:

R1(config)#ipv6 unicast-routing
R1(config)#ipv6 router ospf 1
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#exit
R1(config)#interface serial 0/0
R1(config-if)#frame-relay map ipv6 FE80::205:5EFF:FE6E:5C80 111 broadcast
R1(config-if)#ipv6 ospf neighbor FE80::205:5EFF:FE6E:5C80
R1(config-if)#exit

Configuring and Verifying OSPFv3 in Cisco IOS Software

Continuing from the previous section, which highlighted the configuration differences between OSPFv2 and OSPFv3, this section goes through the steps required to enable and verify OSPFv3 functionality and routing in Cisco IOS software. The following sequence of steps should be taken to enable OSPFv3 routing in Cisco IOS software:

  • Globally enable IPv6 routing using the ipv6 unicast-routing global configuration command. By default, IPv6 routing is disabled in Cisco IOS software
  • Configure one or more OSPFv3 processes using the ipv6 router ospf [process ID] global configuration command
  • If there are no operational interfaces with an IPv4 address configured on the router, then manually configure the OSPFv3 RID using the router-id [IPv4 Address] router configuration command
  • Enable IPv6 on the desired interfaces using the ipv6 address and ipv6 enable interface configuration commands
  • Enable one or more OSPFv3 processes under the interface using the ipv6 ospf [process ID] area [area ID] interface configuration command

The same topology used in the previous configuration examples will also be used to illustrate the configuration of OSPFv3 in Cisco IOS software. However, because the implementation of OSPF in general is more complex than the implementation of either RIP or EIGRP, this section will include several configuration examples, using the same physical topology, but also illustrating the configuration of unique OSPF aspects such as non-normal areas as well as OSPF virtual links when running OSPFv3. The first basic multi-are OSPFv3 configuration example is based on the topology that is illustrated in Figure 8-23:

IPv6_Lesson12_image1

Fig.8-23. Configuring Basic Multi-Area OSPFv3 in Cisco IOS Software

Following the sequence of configuration steps described in the previous section, OSPFv3 will be configured on router RI as follows:

R1(config)#ipv6 unicast-routing
R1(config)#ipv6 router ospf 1
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#exit
R1(config)#interface fastethernet 0/0
R1(config-if)#ipv6 address 3fff:1234:abcd:1::1/64
R1(config-if)#ipv6 enable
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit

Following the same sequence of steps, OSPFv3 routing is configured on router R3 as follows:

R3(config)#ipv6 unicast-routing
R3(config)#ipv6 router ospf 3
R3(config-rtr)#router-id 3.3.3.3
R3(config-rtr)#exit
R3(config)#interface fastethernet 0/0
R3(config-if)#ipv6 address 3fff:1234:abcd:1::3/64
R3(config-if)#ipv6 enable
R3(config-if)#ipv6 ospf 3 area 0
R3(config-if)#exit
R3(config)#interface loopback 0
R3(config-if)#ipv6 address 3fff:1234:abcd:2::3/128
R3(config-if)#ipv6 address 3fff:1234:abcd:3::3/128
R3(config-if)#ipv6 enable
R3(config-if)#ipv6 ospf 3 area 1
R3(config-if)#exit

Following the configuration of OSPFv3 on both routers, you can use the show ipv6 ospf neighbors command to verify the state of the OSPFv3 adjacency as shown below on R1:

R1#show ipv6 ospf neighborNeighbor   ID Pri   State       Dead Time   Interface ID    Interface
3.3.3.3         1   FULL/BDR    00:00:36    4               FastEthernet0/0

As is the case with EIGRPv6, you can also view detailed neighbor information by appending the detail keyword to the end of this command:

R1#show ipv6 ospf neighbor detail
Neighbor 3.3.3.3
In the area 0 via interface FastEthernet0/0
Neighbor: interface-id 4, link-local address FE80::213:19FF:FE86:A20
Neighbor priority is 1, State is FULL, 6 state changes
DR is 1.1.1.1 BDR is 3.3.3.3
Options is 0x000013 in Hello (V6-Bit E-Bit R-bit )
    Options is 0x000013 in DBD (V6-Bit E-Bit R-bit )
Dead timer due in 00:00:39
Neighbor is up for 00:06:40
Index 1/1/1, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec

In the output above, notice that the actual neighbor interface address is the Link-Local address and not the configured global IPv6 Unicast address. Additionally, notice the different bits, which were described earlier in this section, set for OSPFv3 Hello and DBD packets. An additional bit, the E-bit is set only if the interface attaches to a non-stub area, which is the case based on the configuration implemented on the routers.

Also, as was stated earlier in this section, OSPFv3 introduces two new types of LSAs, which are the Type 8 and Type 9 LSAs. These LSAs are present in the LSDB and can be viewed, along with all other OSPF LSAs in the LSDB, using the show ipv6 ospf database command. Referencing the configuration implemented on R1, the LSDB of this router shows the following:

R1#show ipv6 ospf databaseOSPFv3 Router with ID (1.1.1.1) (Process ID 1)Router Link States (Area 0)

ADV Router      Age         Seq#        Fragment ID  Link count  Bits
1.1.1.1         275         0x80000004  0            1           None
3.3.3.3         81          0x80000003  0            1           B

Net Link States (Area 0)

ADV Router      Age         Seq#        Link ID    Rtr count
1.1.1.1         275         0x80000002  4          2

Inter Area Prefix Link States (Area 0)

ADV Router      Age         Seq#        Prefix
3.3.3.3         82          0x80000002  3FFF:1234:ABCD:2::3/128
3.3.3.3         82          0x80000002  3FFF:1234:ABCD:3::3/128

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

ADV Router      Age         Seq#        Link ID    Interface
1.1.1.1         275         0x80000002  4          Fa0/0
3.3.3.3         85          0x80000002  4          Fa0/0

Intra Area Prefix Link States (Area 0)

ADV Router      Age         Seq#        Link ID    Ref-lstype  Ref-LSID
1.1.1.1         279         0x80000002  4096       0x2002      4

You can view detailed information on the Link and Intra-Area LSAs by appending the link or the prefix keywords to the end of the show ipv6 ospf database, respectively. Therefore, to view detailed information on the Link LSA, which provides the router’s Link-Local address and provides all the IPv6 prefixes attached to the link, you would issue the show ipv6 ospf database link command as illustrated in the following output:

R1#show ipv6 ospf database linkOSPFv3 Router with ID (1.1.1.1) (Process ID 1)Link (Type-8) Link States (Area 0)

LS age: 459
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Link-LSA (Interface: FastEthernet0/0)
  Link State ID: 4 (Interface ID)
  Advertising Router: 1.1.1.1
LS Seq Number: 80000002
Checksum: 0x34F3
Length: 56
Router Priority: 1
Link Local Address: FE80::20C:CEFF:FEA7:F3A0
Number of Prefixes: 1
Prefix Address: 3FFF:1234:ABCD:1::
Prefix Length: 64, Options: None

LS age: 265
Options: (V6-Bit E-Bit R-bit DC-Bit)
LS Type: Link-LSA (Interface: FastEthernet0/0)
  Link State ID: 4 (Interface ID)
  Advertising Router: 3.3.3.3
LS Seq Number: 80000002
Checksum: 0x85D4
Length: 56
Router Priority: 1
Link Local Address: FE80::213:19FF:FE86:A20
Number of Prefixes: 1
Prefix Address: 3FFF:1234:ABCD:1::
Prefix Length: 64, Options: None

Similarly, to view detailed information on the Intra-Area-Prefix LSA, you can use the show ipv6 ospf database prefix command as illustrated in the following output:

R1#show ipv6 ospf database prefixOSPFv3 Router with ID (1.1.1.1) (Process ID 1)Intra Area Prefix Link States (Area 0)

Routing Bit Set on this LSA
LS age: 492
LS Type: Intra-Area-Prefix-LSA
Link State ID: 4096
  Advertising Router: 1.1.1.1
LS Seq Number: 80000002
Checksum: 0xECBB
Length: 44
Referenced LSA Type: 2002
Referenced Link State ID: 4
Referenced Advertising Router: 1.1.1.1
Number of Prefixes: 1
Prefix Address: 3FFF:1234:ABCD:1::
Prefix Length: 64, Options: None, Metric: 0

The OSPFv3 Intra-Area-Prefix LSA contains the same information that is contained in OSPFv2 Router and Network LSAs. It is originated by each router and is used to describe the prefix assigned to each router. It is also generated by each router to advertise prefixes associated with stub or transit networks. This means that there can be multiple Intra-Area-Prefix LSAs with different Link-State IDs. The Area flooding scope can therefore be an associated prefix with the transit network referencing a Network LSA or it an associated prefix with a router or stub referencing a Router LSA.  The same command, if issued on R3, would also show the following:

R3#show ipv6 ospf database prefixOSPFv3 Router with ID (3.3.3.3) (Process ID 3)Intra Area Prefix Link States (Area 0)

Routing Bit Set on this LSA
LS age: 1578
LS Type: Intra-Area-Prefix-LSA
  Link State ID: 4096
  Advertising Router: 1.1.1.1
LS Seq Number: 80000002
Checksum: 0xECBB
Length: 44
Referenced LSA Type: 2002
Referenced Link State ID: 4
Referenced Advertising Router: 1.1.1.1
Number of Prefixes: 1
Prefix Address: 3FFF:1234:ABCD:1::
  Prefix Length: 64, Options: None, Metric: 0

 

Intra Area Prefix Link States (Area 1)

Routing Bit Set on this LSA
LS age: 1382
LS Type: Intra-Area-Prefix-LSA
  Link State ID: 0
  Advertising Router: 3.3.3.3
LS Seq Number: 80000002
Checksum: 0x8C36
Length: 72
  Referenced LSA Type: 2001
Referenced Link State ID: 0
Referenced Advertising Router: 3.3.3.3
Number of Prefixes: 2
  Prefix Address: 3FFF:1234:ABCD:2::3
  Prefix Length: 128, Options: LA , Metric: 0
Prefix Address: 3FFF:1234:ABCD:3::3
  Prefix Length: 128, Options: LA , Metric: 0

Continuing with the OSPFv3 implementation validation, you can use the show ipv6 route command to view OSPFv3 prefixes received from different OSPFv3 neighbors. As is the case with the other IPv6 routing protocols, these prefixes will all have the Link-Local address of the neighbor as the next hop address as illustrated in the following output:

R1#show ipv6 route
IPv6 Routing Table – 6 entries
Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP
U – Per-user Static route
I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary
O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2
ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2
C   3FFF:1234:ABCD:1::/64 [0/0] via ::, FastEthernet0/0
L   3FFF:1234:ABCD:1::1/128 [0/0] via ::, FastEthernet0/0
OI  3FFF:1234:ABCD:2::3/128 [110/1]
     via FE80::213:19FF:FE86:A20, FastEthernet0/0
OI  3FFF:1234:ABCD:3::3/128 [110/1]
     via FE80::213:19FF:FE86:A20, FastEthernet0/0
L   FE80::/10 [0/0] via ::, Null0
L   FF00::/8 [0/0] via ::, Null0

The second basic OSPFv3 configuration example demonstrates the configuration of non-normal OSPF areas, e.g. stub and NSSA areas. This example is based on the topology in Figure 8-24:

IPv6_Lesson12_image2

Fig.8-24. Configuring Non-Normal OSPFv3 Areas in Cisco IOS Software

Following the sequence of configuration steps described in the previous section, OSPFv3 will be configured on router RI as follows:

R1(config)#ipv6 unicast-routing
R1(config)#ipv6 router ospf 1
R1(config-rtr)#router-id 1.1.1.1
R1(config-rtr)#area 1 stub
R1(config-rtr)#exit
R1(config)#interface fastethernet 0/0
R1(config-if)#ipv6 address 3fff:1234:abcd:1::1/64
R1(config-if)#ipv6 enable
R1(config-if)#ipv6 ospf 1 area 1
R1(config-if)#exit

Following the same sequence of steps, router R3 is configured as follows:

R3(config)#ipv6 unicast-routing
R3(config)#ipv6 router ospf 3
R3(config-rtr)#router-id 3.3.3.3
R3(config-rtr)#area 1 stub no-summary
R3(config-rtr)#exit
R3(config)#interface fastethernet 0/0
R3(config-if)#ipv6 address 3fff:1234:abcd:1::3/64
R3(config-if)#ipv6 enable
R3(config-if)#ipv6 ospf 3 area 1
R3(config-if)#exit
R3(config)#interface serial 0/0
R3(config-if)#ipv6 address 3fff:1234:abcd:2::3/64
R3(config-if)#ipv6 enable
R3(config-if)#ipv6 ospf 3 area 0
R3(config-if)#exit

And finally, referencing the topology in Figure 8-23, router R2 would be configured as follows:

R2(config)#ipv6 unicast-routing
R2(config)#ipv6 router ospf 2
R2(config-rtr)#router-id 2.2.2.2
R2(config-rtr)#exit
R2(config)#interface serial 0/0
R2(config-if)#ipv6 address 3fff:1234:abcd:2::2/64
R2(config-if)#ipv6 enable
R2(config-if)#ipv6 ospf 2 area 0
R2(config-if)#exit
R2(config)#interface ethernet 0/0
R2(config-if)#ipv6 address 3fff:1234:abcd:3::2/64
R2(config-if)#ipv6 enable
R2(config-if)#ipv6 ospf 2 area 2
R2(config-if)#exit

Assuming that all OSPF neighbor adjacencies are up, we will begin our OSPFv3 validation tasks by looking at the OSPFv3 process implemented on R3, the central router in the topology. This is performed using the show ipv6 ospf [process ID] command as follows:

R3#show ipv6 ospf 3
Routing Process “ospfv3 3” with ID 3.3.3.3
 It is an area border router
SPF schedule delay 5 secs, Hold time between two SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of areas in this router is 2. 1 normal 1 stub 0 nssa
Reference bandwidth unit is 100 mbps
Area BACKBONE(0)
Number of interfaces in this area is 1
SPF algorithm executed 11 times
Number of LSA 7. Checksum Sum 0x035FE0
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
Area 1
Number of interfaces in this area is 1
It is a stub area, no summary LSA in this area
          generates stub default route with cost 1
SPF algorithm executed 8 times

The output above validates the configuration implemented on all three routers. Router R3 is an ABR, because it has interfaces in both Area 0 and Area 1. Additionally, we can also see that Area 1 is a totally stubby area (as configured) and no summary LSAs are injected into this area except for a single default route. This means that the prefix advertised by router R2 will not be advertised into this area. This can be validated by looking at the LSDB on router R3:

R3#show ipv6 ospf databaseOSPFv3 Router with ID (3.3.3.3) (Process ID 3)Router Link States (Area 0)

ADV Router      Age         Seq#        Fragment ID  Link count  Bits
2.2.2.2         46          0x80000006  0            1           B
3.3.3.3         362         0x80000009  0            1           B

Inter Area Prefix Link States (Area 0)

ADV Router      Age         Seq#        Prefix
2.2.2.2         36          0x80000001  3FFF:1234:ABCD:3::/64
3.3.3.3         362         0x80000001  3FFF:1234:ABCD:1::/64

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

ADV Router      Age         Seq#        Link ID    Interface
2.2.2.2         630         0x80000001  3          Se0/0
3.3.3.3         362         0x80000001  5          Se0/0

Intra Area Prefix Link States (Area 0)

ADV Router      Age         Seq#        Link ID    Ref-lstype  Ref-LSID
2.2.2.2         46          0x80000003  0          0x2001      0
3.3.3.3         365         0x80000001  0          0x2001      0

Router Link States (Area 1)

ADV Router      Age         Seq#        Fragment ID  Link count  Bits
3.3.3.3         361         0x80000006  0            0           B

Inter Area Prefix Link States (Area 1)

ADV Router      Age         Seq#        Prefix
3.3.3.3         365         0x80000001  ::/0

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

ADV Router      Age         Seq#        Link ID    Interface
3.3.3.3         1451        0x80000003  4          Fa0/0

Intra Area Prefix Link States (Area 1)

ADV Router      Age         Seq#        Link ID    Ref-lstype  Ref-LSID
3.3.3.3         361         0x80000004  0          0x2001      0

The same can also be determined by looking at the Inter-Area LSAs in the LSDB on router R1:

R1#show ipv6 ospf database inter-area prefixOSPFv3 Router with ID (1.1.1.1) (Process ID 1)Inter Area Prefix Link States (Area 1)

Routing Bit Set on this LSA
LS age: 669
LS Type: Inter Area Prefix Links
  Link State ID: 3
  Advertising Router: 3.3.3.3
LS Seq Number: 80000001
Checksum: 0x35F9
Length: 28
Metric: 1
Prefix Address: ::
Prefix Length: 0, Options: None

The same can also be further confirmed by simply looking at the routing table on router R1:

R1#show ipv6 route
IPv6 Routing Table – 5 entries
Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP
U – Per-user Static route
I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary
O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2
ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2
OI  ::/0 [110/2]
     via FE80::213:19FF:FE86:A20, FastEthernet0/0
C   3FFF:1234:ABCD:1::/64 [0/0] via ::, FastEthernet0/0
L   3FFF:1234:ABCD:1::1/128 [0/0] via ::, FastEthernet0/0
L   FE80::/10 [0/0] via ::, Null0
L   FF00::/8 [0/0] via ::, Null0

The third basic OSPFv3 configuration example demonstrates the configuration of virtual links when running OSPFv3. This example is based on the topology in Figure 8-25:

IPv6_Lesson12_image3

Fig.8-25. Configuring OSPFv3 Virtual Links in Cisco IOS Software

Assuming basic OSPFv3 configuration on all routers illustrated in the topology, the LSDB on R1 shows the following entries and LSAs:

R1#show ipv6 ospf databaseOSPFv3 Router with ID (1.1.1.1) (Process ID 1)Router Link States (Area 2)

ADV Router      Age         Seq#        Fragment ID  Link count  Bits
1.1.1.1         9           0x80000004  0            1           None
3.3.3.3         15          0x80000004  0            1           None

Net Link States (Area 2)

ADV Router      Age         Seq#        Link ID    Rtr count
3.3.3.3         17          0x80000001  4          2

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

ADV Router      Age         Seq#        Link ID    Interface
1.1.1.1         59          0x80000001  4          Fa0/0
3.3.3.3         91          0x80000001  4          Fa0/0

                Intra Area Prefix Link States (Area 2)

ADV Router      Age         Seq#        Link ID    Ref-lstype  Ref-LSID
3.3.3.3         17          0x80000001  4096       0x2002      4

The routing table on router R1 also reflects no inter-area LSAs and shows the following entries:

R1#show ipv6 route
IPv6 Routing Table – 4 entries
Codes: C – Connected, L – Local, S – Static, R – RIP, B – BGP
U – Per-user Static route
I1 – ISIS L1, I2 – ISIS L2, IA – ISIS interarea, IS – ISIS summary
O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2
ON1 – OSPF NSSA ext 1, ON2 – OSPF NSSA ext 2
C   3FFF:1234:ABCD:1::/64 [0/0] via ::, FastEthernet0/0
L   3FFF:1234:ABCD:1::1/128 [0/0] via ::, FastEthernet0/0
L   FE80::/10 [0/0] via ::, Null0
L   FF00::/8 [0/0] via ::, Null0

As we already know, based on what we learned in the chapter on OSPFv2, by default, an ABR will not advertise routes received from a non-backbone area into another non-backbone area. Given this default protocol behavior, R3 will never advertise the prefixes received from R2 to R1. In order for Area 2 to receive inter-area routes, this area must either be logically or physically connected to the OSPF backbone. Because no physical connection exists, a virtual link must be configured between routers R2 and R3, using Area 1 as the transit area. The configuration on router R2 is implemented as follows:

R2(config)#ipv6 router ospf 2
R2(config-rtr)#area 1 virtual-link 3.3.3.3
R2(config-rtr)#exit

In a similar manner, the virtual link on router R3 will be configured as follows:

R3(config)#ipv6 router ospf 3
R3(config-rtr)#area 1 virtual-link 2.2.2.2
R3(config-rtr)#exit

Following the configuration of the virtual-link, the show ipv6 ospf virtual-links command should be used to validate that the virtual link is established:

R3#show ipv6 ospf virtual-links
Virtual Link OSPFv3_VL1 to router 2.2.2.2 is up
  Interface ID 11, IPv6 address 3FFF:1234:ABCD:2::2
Run as demand circuit
DoNotAge LSA allowed.
Transit area 1, via interface Serial0/0, Cost of using 64
  Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Adjacency State FULL (Hello suppressed)
Index 1/1/3, retransmission queue length 0, number of retransmission 2
First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec

In the output above, notice that the IPv6 address used for the virtual link is the global Unicast IPv6 address and not the Link-Local address that used to establish non-virtual link adjacencies. This difference can be viewed by looking at detailed neighbor information as follows:

R3#show ipv6 ospf neighbor detail
Neighbor 2.2.2.2
    In the area 0 via interface OSPFv3_VL1
    Neighbor: interface-id 8, IPv6 address 3FFF:1234:ABCD:2::2
Neighbor priority is 1, State is FULL, 12 state changes
Options is 0x000033 in Hello (V6-Bit E-Bit R-bit DC-Bit)
Options is 0x000033 in DBD (V6-Bit E-Bit R-bit DC-Bit)
Neighbor is up for 00:02:32
Index 1/1/3, retransmission queue length 0, number of retransmission 2
First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 1, maximum is 1
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 2.2.2.2
    In the area 1 via interface Serial0/0
    Neighbor: interface-id 3, link-local address FE80::204:C1FF:FE6F:8741
Neighbor priority is 1, State is FULL, 6 state changes
Options is 0x000013 in Hello (V6-Bit E-Bit R-bit )
Options is 0x000013 in DBD (V6-Bit E-Bit R-bit )
Dead timer due in 00:00:34
Neighbor is up for 00:29:45
Index 1/1/1, retransmission queue length 0, number of retransmission 1
First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 2, maximum is 2
Last retransmission scan time is 0 msec, maximum is 0 msec
Neighbor 1.1.1.1
    In the area 2 via interface FastEthernet0/0
    Neighbor: interface-id 4, link-local address FE80::20C:CEFF:FEA7:F3A0
Neighbor priority is 1, State is FULL, 6 state changes
DR is 3.3.3.3 BDR is 1.1.1.1
Options is 0x000013 in Hello (V6-Bit E-Bit R-bit )
Options is 0x000013 in DBD (V6-Bit E-Bit R-bit )
Dead timer due in 00:00:30
Neighbor is up for 00:29:00
Index 1/1/2, retransmission queue length 0, number of retransmission 0
First 0x0(0)/0x0(0)/0x0(0) Next 0x0(0)/0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum is 0
Last retransmission scan time is 0 msec, maximum is 0 msec

And finally, after the virtual link has been configured and successfully established, the LSDB on router R1 now shows the following:

R1#show ipv6 ospf databaseOSPFv3 Router with ID (1.1.1.1) (Process ID 1)[Truncated Output]

                Inter Area Prefix Link States (Area 2)

ADV Router      Age         Seq#        Prefix
3.3.3.3         531         0x80000001  3FFF:1234:ABCD:2::/64
3.3.3.3         531         0x80000001  3FFF:1234:ABCD:2::2/128
3.3.3.3         521         0x80000001  3FFF:1234:ABCD:2::3/128
3.3.3.3         501         0x80000001  3FFF:1234:ABCD:3::/64
3.3.3.3         6           0x80000001  3FFF:1234:ABCD:4::4/128

[Truncated Output]

The same information is also now reflected in the routing table on router R1:

R1#show ipv6 route ospf | section OI
O – OSPF intra, OI – OSPF inter, OE1 – OSPF ext 1, OE2 – OSPF ext 2
OI  3FFF:1234:ABCD:2::/64 [110/65]
via FE80::213:19FF:FE86:A20, FastEthernet0/0
OI  3FFF:1234:ABCD:2::2/128 [110/65]
via FE80::213:19FF:FE86:A20, FastEthernet0/0
OI  3FFF:1234:ABCD:2::3/128 [110/1]
via FE80::213:19FF:FE86:A20, FastEthernet0/0
OI  3FFF:1234:ABCD:3::/64 [110/75]
via FE80::213:19FF:FE86:A20, FastEthernet0/0
OI  3FFF:1234:ABCD:4::4/128 [110/75]
via FE80::213:19FF:FE86:A20, FastEthernet0/0

And finally, to complete the validation exercise, a simple ping test is used to verify connectivity between router R1 and the Loopback interface on router R4 as follows:

R1#ping 3FFF:1234:ABCD:4::4 repeat 10Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 3FFF:1234:ABCD:4::4, timeout is 2 seconds:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max = 4/6/8 ms 

Prev

Next

About Us

This is a free bonus site for members of www.howtonetwork.com

Copyright

The content on this copyright Reality Press Ltd.
Copyright Reality Press Ltd.