OSPFv3 Dual Stack IPv4 and IPv6 Configuration Cheat Sheet

ipv4ipv6ospfrouterrouting

When configuring OSPFv2 on a router, you type in

router ospf 10 

router-id 1.1.1.1 

network 10.0.0.0 0.0.0.3 area 0

for example. That way the network can be advertised per LSAs.

But in OSPFv3 it seems that there isn't such a command.

Unfortunately I haven't found anything by googling.

Best Answer

To run OSPF dual stack, just run OSPFv2 and OSPFv3 simultanously. They won't interfere because they are completely separate.

With OSPFv3, there is NO network command under OSPF process configuration section. The reason why is here: To enable OSPFv3 on interfaces, you have to configure ipv6 ospf command under interface configuration section of each interface. That way OSPFv3 knows what network to advertise.

Below is simple OSPFv3 configuration for your reference:

enter image description here

R1

!
ipv6 unicast-routing
ipv6 cef
!
interface Loopback0
 ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
 ipv6 address ...
 ipv6 enable
 ipv6 ospf 13 area 0
!
interface FastEthernet0/1
 ipv6 address ...
 ipv6 enable
 ipv6 ospf 13 area 2
!
ipv6 router ospf 13
 router-id 1.1.1.1
 log-adjacency-changes
!

R2

!
ipv6 unicast-routing
ipv6 cef
!
interface Loopback0
 ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
 ipv6 address ...
 ipv6 enable
 ipv6 ospf 13 area 0
!
ipv6 router ospf 13
 router-id 2.2.2.2
 log-adjacency-changes
!

R3

!
ipv6 unicast-routing
ipv6 cef
!
interface Loopback0
 ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/1
 ipv6 address ...
 ipv6 enable
 ipv6 ospf 13 area 2
!
ipv6 router ospf 13
 router-id 3.3.3.3
 log-adjacency-changes
!

You can find more helpful information at OSPF Implementation - OSPFv3 from the "Implementing Cisco IP Routing (ROUTE) Foundation Learning Guide" book.

Related Topic