Simple IPv6 network with OSPF as IGP

From IPFlow Netflow Collector

IPv6 with OSPF as IGP Example

This is a simple example of IPv6 network with OSPF as IGP (using Dynamips and GNS3).

Author: Christophe Fillot - 08-Nov-2007


Table of contents

Topology

Image:IPv6_OSPF_topo.png


IOS configurations

  • R0 (http://www.ipflow.utc.fr/configs/IPv6_OSPF/R0.cfg)
  • R1 (http://www.ipflow.utc.fr/configs/IPv6_OSPF/R1.cfg)
  • R2 (http://www.ipflow.utc.fr/configs/IPv6_OSPF/R2.cfg)
  • R3 (http://www.ipflow.utc.fr/configs/IPv6_OSPF/R3.cfg)


Dynamips/Dynagen/GNS3 configuration

You can use this configuration file (http://www.ipflow.utc.fr/configs/IPv6_OSPF/ipv6_ospf.net) directly with Dynagen or GNS3. Change the working directory and Cisco IOS image path to match your needs.


Configuration

Enable IPv6 routing globally:

ipv6 unicast-routing
ipv6 cef

Create the IPv6 OSPFv3 router process and enable OSPF on the interfaces:

ipv6 router ospf 100
!
interface FastEthernet0/0
 ipv6 enable
 ipv6 ospf 100 area 0
!


Authentication configuration (not mandatory):

ipv6 router ospf 100
 area 0 authentication ipsec spi 300 sha1 96114CE4D499D9BCAFA25C91657739FD52EACBA
!

You can also configure encryption. The settings can be applied for the complete area or for each interface (allowing greater security with the possibity to set different parameters for each interface). The settings (SPI and key) must be the same between 2 neighbors.


Output of some commands

R0 IPv6 routing table:

R0#sh ipv6 route
IPv6 Routing Table - 5 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route, M - MIPv6
       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
       D - EIGRP, EX - EIGRP external
LC  2007:1000::/128 [0/0]
     via ::, Loopback0
O   2007:1000::1/128 [110/1]
     via FE80::C801:14FF:FEAC:0, FastEthernet0/0
O   2007:1000::2/128 [110/1]
     via FE80::C802:14FF:FEAC:0, FastEthernet1/0
O   2007:1000::3/128 [110/1]
     via FE80::C803:14FF:FEAD:0, FastEthernet2/0
L   FF00::/8 [0/0]
     via ::, Null0


OSPFv3 neighbors:

R0#sh ipv6 ospf neighbor 

Neighbor ID     Pri   State           Dead Time   Interface ID    Interface
10.10.0.3         1   FULL/DR         00:00:39    4               FastEthernet2/0
10.10.0.2         1   FULL/DR         00:00:34    4               FastEthernet1/0
10.10.0.1         1   FULL/DR         00:00:35    4               FastEthernet0/0


OSPFv3 database:

R0#sh ipv6 ospf database 

            OSPFv3 Router with ID (10.10.0.0) (Process ID 100)

                Router Link States (Area 0)

ADV Router      Age         Seq#        Fragment ID  Link count  Bits
10.10.0.0       163         0x80000004  0            3           None
10.10.0.1       170         0x80000003  0            2           None
10.10.0.2       45          0x80000005  0            2           None
10.10.0.3       45          0x80000006  0            3           None

                Net Link States (Area 0)

ADV Router      Age         Seq#        Link ID    Rtr count
10.10.0.1       171         0x80000001  4          2
10.10.0.2       170         0x80000001  4          2
10.10.0.2       45          0x80000001  5          2
10.10.0.3       170         0x80000001  4          2
10.10.0.3       175         0x80000001  5          2

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

ADV Router      Age         Seq#        Link ID    Interface
10.10.0.0       213         0x80000001  6          Fa2/0
10.10.0.3       215         0x80000001  4          Fa2/0
10.10.0.0       214         0x80000001  5          Fa1/0
10.10.0.2       216         0x80000001  4          Fa1/0
10.10.0.0       214         0x80000001  4          Fa0/0
10.10.0.1       216         0x80000001  4          Fa0/0

                Intra Area Prefix Link States (Area 0)

ADV Router      Age         Seq#        Link ID    Ref-lstype  Ref-LSID
10.10.0.0       214         0x80000001  0          0x2001      0
10.10.0.1       216         0x80000001  0          0x2001      0
10.10.0.2       216         0x80000001  0          0x2001      0
10.10.0.3       216         0x80000001  0          0x2001      0