CNE Tutorial 11 - Dynamic IPv6 Routing Configuration With Ospfv3 (Single Area)
CNE Tutorial 11 - Dynamic IPv6 Routing Configuration With Ospfv3 (Single Area)
CNE Tutorial 11 - Dynamic IPv6 Routing Configuration With Ospfv3 (Single Area)
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 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
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.
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.
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
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