CNE Tutorial 11 - Dynamic IPv6 Routing Configuration With Ospfv3 (Single Area)

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 11

HANOI UNIVERSITY

Faculty of Information Technology

CNE – Tutorial Guide


Week 11
Dynamic IPv6 Routing Configuration with OSPFv3
(single area)
I. OSPFv3

Introduction to OSPFv3

Open Shortest Path First (OSPF) is a routing protocol for IP. It is a link-state protocol, as
opposed to a distance-vector protocol. A link-state protocol makes routing decisions based on
the states of the links that connect source and destination machines. The state of a link is a
description of that interface and the relationship to its neighboring networking devices. The
interface information includes the IPv6 prefix of the interface, the network mask, the type of
network it is connected to, the routers connected to that network, and so forth. This
information is propagated in various type of link-state advertisements (LSAs).
OSPFv3, which is described in RFC 2740, supports IPv6.

OSPFv3 configuration requirements:

1. Enable IPv6 unicast routing


• IPv4 packet forwarding is enabled by default, whereas IPv6 packet forwarding is
disabled by default.
• To enable IPv6 packet forwarding, use the ipv6 unicast-routing command in global
configuration mode before enabling OSPF.
• Once IPv6 packet forwarding is enabled, we can now enable the IPv6 OSPF routing
process.

2. Enable the OSPFv3 routing process


• OSPFv3 continues to use an IPv4 32-bit address for the router ID. Because there are no
IPv4 addresses configured on the routers, you are required to manually assign the
router ID using the router-id command.
• Enabling OSPFv3 with ipv6 ospf process-id area area-id will enable the routing process
and its associated configuration to be created.
• Unlike OSPFv2, you do not enter network statements. Each interface must be enabled
using ipv6 ospf process-id area area-id in interface-configuration mode.
Router(config)#ipv6 router ospf 1
% IPv6 routing not enabled
Router(config)#ipv6 unicast-routing
Router(config)#ipv6 router ospf 1
%OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id,please configure
manually
Router(config-rtr)#router-id 3.3.3.3
Router(config-rtr)#int se0/0/0
Router(config-if)#ipv6 ospf 1 area 10
Router(config-if)#int se0/0/1
Router(config-if)#ipv6 ospf 1 area 10
Router(config-if)#int fa0/0
Router(config-if)#ipv6 ospf 1 area 10

3. Enable OSPFv3 on the interface


Router(config-rtr)#int se0/0/0
Router(config-if)#ipv6 ospf 1 area 10
Router(config-if)#int se0/0/1
Router(config-if)#ipv6 ospf 1 area 10
Router(config-if)#int fa0/0
Router(config-if)#ipv6 ospf 1 area 10

4. Configure passive interfaces

OSPFv3 Verification

There are various show commands that can be used to verify and display OSPFv3
configurations:
 Show ipv6 ospf neighbor
 Show ipv6 ospf database
 Show ipv6 route
 Show ipv6 protocols

II. Pratice with Packet tracer

In this tutorial we will do the dynamic IPv6 routing configuration with ospfv3 for single area.
Let’s make the network map as described in the folling picture:
By defaut, 1841 router series don’t have any serial ports.

How to add Serial Ports to CISCO routers in Packet Tracer ?

Router connects to the private network through its Fast Ethernet port and connects to the
public network (to another router) through Serial port

By default some Cisco routers doesn't have serial ports. Therefore we need to add serial ports
to router.

 first, open CISCO packet tracer


 then, drag and drop a type of router from the bottom of the interface in to the middle of
the working area ( i have used 1841 router here and I want to add 2 serial ports).
 Click the Router--> select Physical tab-->select WIC-2T -->switch off the Router-->add the
Serial port to the router (drag and drop the serial port that is displayed in the right
bottom corner to the space given)     -->switch on the Router
IPv6 configuration
Here is the configuration at router 1:

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ipv6 address 2001:a::1/64
Router(config-if)#no shut
Router(config-if)#int se0/0/0
Router(config-if)#ipv6 address 2001:10::1/64
Router(config-if)#clock rate 500000
Router(config-if)#no shut
Router(config-if)#int se0/0/1
Router(config-if)#ipv6 address 2001:30::1/64
Router(config-if)#clock rate 500000
Router(config-if)#no shut
Router(config-if)#ex

At router2
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ipv6 address 2001:B::1/64
Router(config-if)#no shut
Router(config-if)#int se0/0/0
Router(config-if)#ipv6 address 2001:10::2/64
Router(config-if)#clock rate 500000
Router(config-if)#no shut
Router(config-if)#int se0/0/1
Router(config-if)#ipv6 address 2001:20::1/64
Router(config-if)#clock rate 500000
Router(config-if)#no shut
Router(config-if)#ex

At router3
Router(config)#int fa0/0
Router(config-if)#ipv6 address 2001:C::1/64
Router(config-if)#no shut
Router(config-if)#int se0/0/0
Router(config-if)#ipv6 address 2001:30::2/64
Router(config-if)#clock rate 500000
Router(config-if)#no shut
Router(config-if)#int se0/0/1
Router(config-if)#ipv6 address 2001:20::2/64
Router(config-if)#clock rate 500000
Router(config-if)#no shut
Router(config-if)#ex

OSPFv3 for dynamic IPv6 routing configuration

At router 1:
Router(config)#ipv6 router ospf 1
% IPv6 routing not enabled
Router(config)#ipv6 unicast-routing
Router(config)#ipv6 router ospf 1
%OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id, please configure manually
Router(config-rtr)#router-id 1.1.1.1
Router(config-rtr)#int se0/0/0
Router(config-if)#ipv6 ospf 1 area 10
Router(config-if)#int se0/0/1
Router(config-if)#ipv6 ospf 1 area 10
Router(config-if)#int fa0/0
Router(config-if)#ipv6 ospf 1 area 10

At router 2:
Router(config)#ipv6 router ospf 1
% IPv6 routing not enabled
Router(config)#ipv6 unicast-routing
Router(config)#ipv6 router ospf 1
%OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id, please configure manually
Router(config-rtr)#router-id 2.2.2.2
Router(config-rtr)#int se0/0/0
Router(config-if)#ipv6 ospf 1 area 10
Router(config-if)#int se0/0/1
Router(config-if)#ipv6 ospf 1 area 10
Router(config-if)#int fa0/0
Router(config-if)#ipv6 ospf 1 area 10
At router 1:
Router(config)#ipv6 router ospf 1
% IPv6 routing not enabled
Router(config)#ipv6 unicast-routing
Router(config)#ipv6 router ospf 1
%OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id, please configure manually
Router(config-rtr)#router-id 3.3.3.3
Router(config-rtr)#int se0/0/0
Router(config-if)#ipv6 ospf 1 area 10
Router(config-if)#int se0/0/1
Router(config-if)#ipv6 ospf 1 area 10
Router(config-if)#int fa0/0
Router(config-if)#ipv6 ospf 1 area 10

Because we used dynamic routing (OSPFv3), the routing table is automatically updated.
You can check by the command show ipv6 route
We still can ping from PC0 (Network A) to PC2 (Network B) and PC4 (Network C):
Reference:
https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_ospf/configuration/xe-16/iro-xe-16-book/
ip6-route-ospfv3-xe.html

You might also like