Configuring OSPF For IPv6 – OSPFv3 in Cisco
Last Updated :
28 Oct, 2022
Prerequisites: OSPF Implementation and Open Shortest Path First (OSPF) protocol States
Open Shortest Path First (OSPF) is a link-state routing protocol used to find the best path between the source and destination router using its own shortest path first). OSPF was developed by the Internet Engineering Task Force (IETF) as one of the Internal Gateway Protocols (IGP), i.e., a protocol aimed at moving packets within a large autonomous system or routing domain. . It is a network layer protocol that operates on protocol number 89 and uses the AD value 110. OSPF uses the multicast address 224.0.0.5 for normal communication and 224.0.0.6 for updates to the Designated Router (DR)/ Backup Designated Router (BDR).
OSPFv3 Features :
The latest version of the OSPF protocol. It supports both IPv4 and IPv6 address families. its Protocol ID 89. Supports multiple instances on a link. New LSA types have been introduced to carry out IPv6 prefixes.
Includes a new link-state type field that is used to :
- Determine the flooding scope of LSA
- Handling of unknown LSA types
IPv6 Packet Format:
Router-ID must be set manually in the routing process always. Authentication has been removed as it is now performed via IPsec extension in IPv6 packet. IPv6 link-local addressing handles the inter-router communication. OSPFv3 link-state database (LSDB) creates the shortest path topology tree based on links instead of networks.
OSPFv3 Drawbacks:
- No backward compatibility: OSPFv3 is not backward compatible with OSPFv2.
- No neighbor authentication: performed via IPsec extension headers.
- No implicit router-ID: You must manually configure the RID as the OSPFv3 uses the same algorithm as OSPFv2 for dynamically locating the Router-ID. If there are no IPv4 interfaces available, the Router-ID is set to 0.0.0.0 & doesn't allow OSPF adjacency to form.
- NBMA networks: Neighbors are not automatically detected over Non-Broadcast Multiple Access (NBMA) interfaces. The neighbor must be manually specified using the link-local address using the following interface-level subcommand :
R1(config-if)# ipv6 ospf neighbor fe80::1
Link-State Advertisement Types in OSPFv3 :
LSA type | Common Name |
---|
1 | Router LSA |
2 | Network LSA |
3 | Inter-Area Prefix LSA |
4 | Inter-Area Router LSA |
5 | Autonomous System External LSA |
7 | NSSA LSA |
8 | Link LSA |
9 | Inter-Area-Prefix LSA |
However, IP address information is advertised independently by two new LSA types:
- Intra-area prefix LSA
- Link-local LSA
Configuring OSPFv3:
Step1: Create the physical topology in GNS3 as shown in the image below :
Step 2: Enable IPv6 unicast routing on both routers in global configuration mode :
R1(config)#ipv6 unicast-routing
R2(config)#ipv6 unicast-routing
Step 3: Configure IPv6 address on the physical interface fast Ethernet 0/0 on both routers :
R1(config)#interface FastEthernet0/0
R1(config-if)#ipv6 address FE80::1 link-local
R1(config-if)#ipv6 address 2001:DB8:0:1::1/64
R1(config-if)#no shutdown
R2(config)#interface FastEthernet0/0
R2(config-if)#ipv6 address FE80::2 link-local
R2(config-if)#ipv6 address 2001:DB8:0:1::2/64
R2(config-if)#no shutdown
Step 4: Configure an IPv6 unicast address on the loopback interface of both routers using the ipv6 address/prefix-length :
R1(config)#interface loopback0
R1(config-if)#ipv6 address 2001:DB8::1/128
R2(config)#interface loopback0
R2(config-if)#ipv6 address 2001:DB8::2/128
Step 5 : Configuring the OSPFv3 process on both routers as follows :
- Starting an OSPFv3 process with the router ospfv3 <process-id> command
- Defining the router-id with the command router-id <router-id>
- Enabling OSPFv3 on the interfaces with the interface level sub-command ospfv3 <process-id> ipv6 area <area-id>.
R1(config)#router ospfv3 1
R1(config-router)#router-id 192.168.1.1
R1(config-router)#exit
R1(config)#interface FastEthernet0/0
R1(config-if)#ospfv3 1 ipv6 area 0
R1(config-if)#interface loopback0
R1(config-if)#ospfv3 1 ipv6 area 0
R2(config)#router ospfv3 1
R2(config-router)#router-id 192.168.2.2
R2(config-router)#exit
R2(config)#interface FastEthernet0/0
R2(config-if)#ospfv3 1 ipv6 area 0
R2(config-if)#interface loopback0
R2(config-if)#ospfv3 1 ipv6 area 0
Step 6: Verifying OSPFv3 configuration on both routers :
R1#show ipv6 protocol
R2#show ipv6 protocol
Step 7: Verifying the connectivity through both routers :
Now, try pinging R2's loopback interface from R1 and vice versa :
R1#ping 2001:DB8::2/128
R2#ping 2001:DB8::1/128
Step 8: Checking the IPv6 routing table of both the routers and seeing the OSPF route entry :
- The route entry with the prefix "O" specifies that the entry is of OSPF Infra
R1#show ipv6 route
R2#show ipv6 route
Similar Reads
What is OSI Model? - Layers of OSI Model
The OSI (Open Systems Interconnection) Model is a set of rules that explains how different computer systems communicate over a network. OSI Model was developed by the International Organization for Standardization (ISO). The OSI Model consists of 7 layers and each layer has specific functions and re
14 min read
Non-linear Components
In electrical circuits, Non-linear Components are electronic devices that need an external power source to operate actively. Non-Linear Components are those that are changed with respect to the voltage and current. Elements that do not follow ohm's law are called Non-linear Components. Non-linear Co
11 min read
TCP/IP Model
The TCP/IP model (Transmission Control Protocol/Internet Protocol) is a four-layer networking framework that enables reliable communication between devices over interconnected networks. It provides a standardized set of protocols for transmitting data across interconnected networks, ensuring efficie
7 min read
Types of Network Topology
Network topology refers to the arrangement of different elements like nodes, links, or devices in a computer network. Common types of network topology include bus, star, ring, mesh, and tree topologies, each with its advantages and disadvantages. In this article, we will discuss different types of n
12 min read
Class Diagram | Unified Modeling Language (UML)
A UML class diagram is a visual tool that represents the structure of a system by showing its classes, attributes, methods, and the relationships between them. It helps everyone involved in a projectâlike developers and designersâunderstand how the system is organized and how its components interact
12 min read
Basics of Computer Networking
A computer network is a collection of interconnected devices that share resources and information. These devices can include computers, servers, printers, and other hardware. Networks allow for the efficient exchange of data, enabling various applications such as email, file sharing, and internet br
14 min read
Computer Network Tutorial
A Computer Network is a system where two or more devices are linked together to share data, resources and information. These networks can range from simple setups, like connecting two devices in your home, to massive global systems, like the Internet. Below are the main components of a computer netw
7 min read
Spring Boot Tutorial
Spring Boot is a Java framework that makes it easier to create and run Java applications. It simplifies the configuration and setup process, allowing developers to focus more on writing code for their applications. This Spring Boot Tutorial is a comprehensive guide that covers both basic and advance
10 min read
Backpropagation in Neural Network
Backpropagation is also known as "Backward Propagation of Errors" and it is a method used to train neural network . Its goal is to reduce the difference between the modelâs predicted output and the actual output by adjusting the weights and biases in the network. In this article we will explore what
10 min read
AVL Tree Data Structure
An AVL tree defined as a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees for any node cannot be more than one. The absolute difference between the heights of the left subtree and the right subtree for any node is known as the balance factor of
4 min read