PTL-0034 Routing

Single-Area OSPFv3 for IPv6

Implement and verify single-area Open Shortest Path First version 3 (OSPFv3) for IPv6 across a three-router enterprise topology, establish router IDs, configure point-to-point transit adjacencies, apply passive interfaces, and verify route convergence.

Level
Advanced
Time
60 min
Packet Tracer
8.2+
Simulator
Tested in Packet Tracer
You configure
Branch-R2, HQ-R1, Remote-R3, Switch-HQ, Switch-Remote
Last reviewed

Packet Tracer files for Single-Area OSPFv3 for IPv6

FILES Packet Tracer topology

Download starter file

starter.pkt, 85 KB. Open it in Cisco Packet Tracer 8.2+. Install Packet Tracer.

Solution / reference file

The completed topology with every task configured. Try the lab first and use this to check your work or when you are stuck.

Download solution file

completed.pkt, 85 KB.

File checksums (SHA-256)
starter.pkt
e2b11c0806fc497aeab4215fed3517492bf492198d414df70d988c824f24206d
completed.pkt
0d8952e230b0f155c947a03ce2f22e12b4aa30ec91f35bcae511ca30dc71d19d

Part of BSIT Networking Curriculum Learning Path (step 32 of 56) and CCNA-Aligned Topical Study Path (step 32 of 56).

Learning Objectives#

  • Explain the key architectural differences between OSPFv2 (IPv4) and OSPFv3 (IPv6), including link-local next-hop addressing and interface-level activation.
  • Configure 32-bit dotted-decimal OSPFv3 Router IDs on Cisco IOS routers.
  • Activate OSPFv3 Area 0 directly on physical transit, LAN, and loopback interfaces.
  • Configure point-to-point OSPFv3 network types on inter-router links to optimize adjacency formation and eliminate DR/BDR election overhead.
  • Apply passive-interface directives to customer-facing LAN segments to suppress unnecessary multicast traffic.
  • Inspect OSPFv3 neighbor adjacencies, Link-State database (LSAs), and learned IPv6 routing tables using Cisco IOS verification commands.
  • Verify bidirectional end-to-end IPv6 packet forwarding across multi-hop OSPFv3 routing domains.

Prerequisites#

  • Completion of IPv6 Static and Default Routing labs (PTL-0027) or equivalent understanding of IPv6 global unicast addressing and link-local scope.
  • Familiarity with OSPFv2 fundamentals (Areas, Router IDs, Hello/Dead timers, LSAs, SPF algorithm) from PTL-0011.
  • Basic understanding of Cisco IOS interface configuration and privileged EXEC commands.

Topology#

Topology Diagram
Topology Diagram

The topology models an enterprise IPv6 wide area network consisting of three Cisco 4321 Integrated Services Routers:

  • HQ-R1 serves as the Headquarters Border Gateway, connecting to the HQ enterprise LAN (2001:DB8:ACAD:1::/64) and an internal management loopback (2001:DB8:ACAD:101::1/64).
  • Branch-R2 serves as the central Core / Distribution Gateway, providing transit between HQ-R1 across WAN link 2001:DB8:ACAD:12::/64 and Remote-R3 across WAN link 2001:DB8:ACAD:23::/64.
  • Remote-R3 serves as the Remote Branch Gateway, connecting the remote enterprise server LAN (2001:DB8:ACAD:3::/64) and a branch management loopback (2001:DB8:ACAD:103::1/64).
  • Access switches Switch-HQ and Switch-Remote aggregate end-host traffic on LAN segments.

Addressing Table#

Device Interface IPv6 Address / Prefix IPv6 Link-Local Address Default Gateway Purpose
HQ-R1 Loopback0 2001:DB8:ACAD:101::1/64 Auto N/A HQ Management Loopback
HQ-R1 Gi0/0/0 2001:DB8:ACAD:12::1/64 FE80::1 N/A WAN Transit to Branch-R2
HQ-R1 Gi0/0/1 2001:DB8:ACAD:1::1/64 FE80::1 N/A HQ LAN Default Gateway
Branch-R2 Loopback0 2001:DB8:ACAD:102::1/64 Auto N/A Branch Management Loopback
Branch-R2 Gi0/0/0 2001:DB8:ACAD:12::2/64 FE80::2 N/A WAN Transit to HQ-R1
Branch-R2 Gi0/0/1 2001:DB8:ACAD:23::2/64 FE80::2 N/A WAN Transit to Remote-R3
Remote-R3 Loopback0 2001:DB8:ACAD:103::1/64 Auto N/A Remote Management Loopback
Remote-R3 Gi0/0/0 2001:DB8:ACAD:23::3/64 FE80::3 N/A WAN Transit to Branch-R2
Remote-R3 Gi0/0/1 2001:DB8:ACAD:3::1/64 FE80::3 N/A Remote LAN Default Gateway
Switch-HQ VLAN 1 Unassigned (L2 Access) N/A N/A HQ LAN Access Layer
Switch-Remote VLAN 1 Unassigned (L2 Access) N/A N/A Remote LAN Access Layer
PC-HQ FastEthernet0 2001:DB8:ACAD:1::10/64 Auto 2001:DB8:ACAD:1::1 HQ Client Workstation
Server-Remote FastEthernet0 2001:DB8:ACAD:3::100/64 Auto 2001:DB8:ACAD:3::1 Remote Enterprise Server

Lab Tasks#

  1. Verify starter configuration: interfaces addressed and enabled, but dynamic routing unconfigured (NEG-01 and NEG-02).
  2. Enable OSPFv3 routing globally on each router with explicit 32-bit Router IDs:
    • HQ-R1: router-id 1.1.1.1
    • Branch-R2: router-id 2.2.2.2
    • Remote-R3: router-id 3.3.3.3
  3. Activate OSPFv3 Area 0 directly under physical and loopback interfaces.
  4. Configure point-to-point OSPF network mode on WAN transit interfaces (HQ-R1 Gi0/0/0, Branch-R2 Gi0/0/0 and Gi0/0/1, Remote-R3 Gi0/0/0).
  5. Suppress OSPFv3 multicast advertisements toward end hosts by configuring passive interfaces on LAN interfaces (HQ-R1 Gi0/0/1 and Remote-R3 Gi0/0/1).
  6. Verify OSPFv3 neighbor adjacencies and Area 0 interface roles (POS-01 and POS-02).
  7. Verify dynamic IPv6 routing tables on edge routers (POS-03 and POS-04).
  8. Test end-to-end bidirectional ICMPv6 packet transport between PC-HQ and Server-Remote (POS-05 and POS-06).
  9. Perform a fault injection test by changing the OSPFv3 area ID on one interface to observe adjacency disruption and subsequent restoration (POS-07).

Configuration Walkthrough#

1. Configure OSPFv3 on HQ-R1#

Enable the OSPFv3 routing process, assign a 32-bit Router ID, suppress Hellos toward the local LAN, and bind Area 0 to interfaces:

HQ-R1# configure terminal
HQ-R1(config)# ipv6 unicast-routing
HQ-R1(config)# ipv6 router ospf 1
HQ-R1(config-rtr)# router-id 1.1.1.1
HQ-R1(config-rtr)# passive-interface GigabitEthernet0/0/1
HQ-R1(config-rtr)# exit

HQ-R1(config)# interface Loopback0
HQ-R1(config-if)# ipv6 ospf 1 area 0
HQ-R1(config-if)# exit

HQ-R1(config)# interface GigabitEthernet0/0/0
HQ-R1(config-if)# ipv6 ospf network point-to-point
HQ-R1(config-if)# ipv6 ospf 1 area 0
HQ-R1(config-if)# exit

HQ-R1(config)# interface GigabitEthernet0/0/1
HQ-R1(config-if)# ipv6 ospf 1 area 0
HQ-R1(config-if)# end
HQ-R1# copy running-config startup-config

2. Configure OSPFv3 on Branch-R2#

Configure Branch-R2 with Router ID 2.2.2.2 and point-to-point transit links toward both neighbors:

Branch-R2# configure terminal
Branch-R2(config)# ipv6 unicast-routing
Branch-R2(config)# ipv6 router ospf 1
Branch-R2(config-rtr)# router-id 2.2.2.2
Branch-R2(config-rtr)# exit

Branch-R2(config)# interface Loopback0
Branch-R2(config-if)# ipv6 ospf 1 area 0
Branch-R2(config-if)# exit

Branch-R2(config)# interface GigabitEthernet0/0/0
Branch-R2(config-if)# ipv6 ospf network point-to-point
Branch-R2(config-if)# ipv6 ospf 1 area 0
Branch-R2(config-if)# exit

Branch-R2(config)# interface GigabitEthernet0/0/1
Branch-R2(config-if)# ipv6 ospf network point-to-point
Branch-R2(config-if)# ipv6 ospf 1 area 0
Branch-R2(config-if)# end
Branch-R2# copy running-config startup-config

3. Configure OSPFv3 on Remote-R3#

Configure Remote-R3 with Router ID 3.3.3.3, passive LAN interface, and point-to-point transit:

Remote-R3# configure terminal
Remote-R3(config)# ipv6 unicast-routing
Remote-R3(config)# ipv6 router ospf 1
Remote-R3(config-rtr)# router-id 3.3.3.3
Remote-R3(config-rtr)# passive-interface GigabitEthernet0/0/1
Remote-R3(config-rtr)# exit

Remote-R3(config)# interface Loopback0
Remote-R3(config-if)# ipv6 ospf 1 area 0
Remote-R3(config-if)# exit

Remote-R3(config)# interface GigabitEthernet0/0/0
Remote-R3(config-if)# ipv6 ospf network point-to-point
Remote-R3(config-if)# ipv6 ospf 1 area 0
Remote-R3(config-if)# exit

Remote-R3(config)# interface GigabitEthernet0/0/1
Remote-R3(config-if)# ipv6 ospf 1 area 0
Remote-R3(config-if)# end
Remote-R3# copy running-config startup-config

Tip

In OSPFv3, unlike OSPFv2, there is no network statement under the router configuration mode. OSPFv3 is enabled directly at the interface level using ipv6 ospf <process-id> area <area-id>.

Verification#

Confirm the routing state across the OSPFv3 domain using the following checks:

  1. Verify Neighbor Adjacencies on Branch-R2:

    Branch-R2# show ipv6 ospf neighbor
    
    Neighbor ID     Pri   State           Dead Time   Interface ID    Interface
    3.3.3.3           0   FULL/  -        00:00:32    0               GigabitEthernet0/0/1
    1.1.1.1           0   FULL/  -        00:00:37    0               GigabitEthernet0/0/0
    
  2. Verify OSPFv3 Routes on HQ-R1:

    HQ-R1# show ipv6 route ospf
    O   2001:DB8:ACAD:3::/64 [110/3]
         via FE80::2, GigabitEthernet0/0/0
    O   2001:DB8:ACAD:23::/64 [110/2]
         via FE80::2, GigabitEthernet0/0/0
    
  3. Verify End-to-End Ping from PC-HQ to Server-Remote:

    C:\> ping 2001:DB8:ACAD:3::100
    
    Pinging 2001:DB8:ACAD:3::100 with 32 bytes of data:
    Reply from 2001:DB8:ACAD:3::100: bytes=32 time<1ms TTL=125
    Reply from 2001:DB8:ACAD:3::100: bytes=32 time=2ms TTL=125
    Reply from 2001:DB8:ACAD:3::100: bytes=32 time<1ms TTL=125
    Reply from 2001:DB8:ACAD:3::100: bytes=32 time<1ms TTL=125
    
    Ping statistics for 2001:DB8:ACAD:3::100:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
    

For detailed test logs, see verification.md.

Troubleshooting#

  • No Neighbor Adjacency Formed: Check that ipv6 unicast-routing is enabled globally on both routers. Ensure that both ends of the transit link are assigned to Area 0.
  • Link-Local Address Conflict: In OSPFv3, all neighbor communication and next-hop lookups utilize IPv6 link-local addresses (FE80::). Ensure each router on a transit link uses a unique link-local address (e.g., FE80::1 vs FE80::2).
  • Missing OSPFv3 Routes Despite FULL Adjacency: Ensure that ipv6 ospf network point-to-point is configured on both sides of direct router-to-router links. In point-to-point mode, OSPFv3 builds direct next-hop associations from Type-8 Link LSAs without relying on multi-access DR/BDR election states.
  • Router ID Warning: If ipv6 router ospf displays a message indicating that the router-id cannot be determined, configure an explicit 32-bit dotted-decimal router-id (e.g., router-id 1.1.1.1).

Key Takeaways#

  • OSPFv3 is completely decoupled from IPv4 addressing for routing calculations, but it retains the 32-bit dotted-decimal notation for Router IDs and Area IDs.
  • OSPFv3 uses Link-Local addresses (FE80::) as the next-hop address for all routing table entries, conserving Global Unicast addresses.
  • OSPFv3 introduces new LSA types: Type 8 (Link LSA, link-local scope) advertises a router's link-local address and prefixes on a specific link; Type 9 (Intra-Area-Prefix LSA) carries IPv6 prefix information associated with a router or transit network.

References#

Files and Validation Status#

Reference configurations

Final device configurations from the solution. Like the solution file, these give the answers away.

Branch-R2 Branch-R2.txt, 1.1 KB
Current configuration : 1132 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Branch-R2
!
!
!
!
!
!
!
!
ip cef
ipv6 unicast-routing
!
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 description Branch Management Loopback
 no ip address
 ipv6 address 2001:DB8:ACAD:102::1/64
 ipv6 ospf 1 area 0
!
interface GigabitEthernet0/0/0
 description WAN Link to HQ-R1
 no ip address
 duplex auto
 speed auto
 ipv6 address FE80::2 link-local
 ipv6 address 2001:DB8:ACAD:12::2/64
 ipv6 ospf network point-to-point
 ipv6 ospf 1 area 0
!
interface GigabitEthernet0/0/1
 description WAN Link to Remote-R3
 no ip address
 duplex auto
 speed auto
 ipv6 address FE80::2 link-local
 ipv6 address 2001:DB8:ACAD:23::2/64
 ipv6 ospf network point-to-point
 ipv6 ospf 1 area 0
!
ipv6 router ospf 1
 router-id 2.2.2.2
 log-adjacency-changes
!
ip classless
!
ip flow-export version 9
!
!
!
banner motd ^C Authorized Access Only - Branch-R2 Distribution Gateway ^C
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

Download Branch-R2.txt

HQ-R1 HQ-R1.txt, 1.1 KB
Current configuration : 1116 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname HQ-R1
!
!
!
!
!
!
!
!
ip cef
ipv6 unicast-routing
!
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 description HQ Management Loopback
 no ip address
 ipv6 address 2001:DB8:ACAD:101::1/64
 ipv6 ospf 1 area 0
!
interface GigabitEthernet0/0/0
 description WAN Link to Branch-R2
 no ip address
 duplex auto
 speed auto
 ipv6 address FE80::1 link-local
 ipv6 address 2001:DB8:ACAD:12::1/64
 ipv6 ospf network point-to-point
 ipv6 ospf 1 area 0
!
interface GigabitEthernet0/0/1
 description HQ LAN Gateway
 no ip address
 duplex auto
 speed auto
 ipv6 address FE80::1 link-local
 ipv6 address 2001:DB8:ACAD:1::1/64
 ipv6 ospf 1 area 0
!
ipv6 router ospf 1
 router-id 1.1.1.1
 log-adjacency-changes
 passive-interface GigabitEthernet0/0/1
!
ip classless
!
ip flow-export version 9
!
!
!
banner motd ^C Authorized Access Only - HQ-R1 Border Gateway ^C
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

Download HQ-R1.txt

Remote-R3 Remote-R3.txt, 1.1 KB
Current configuration : 1132 bytes
!
version 15.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Remote-R3
!
!
!
!
!
!
!
!
ip cef
ipv6 unicast-routing
!
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
no ip domain-lookup
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface Loopback0
 description Remote Management Loopback
 no ip address
 ipv6 address 2001:DB8:ACAD:103::1/64
 ipv6 ospf 1 area 0
!
interface GigabitEthernet0/0/0
 description WAN Link to Branch-R2
 no ip address
 duplex auto
 speed auto
 ipv6 address FE80::3 link-local
 ipv6 address 2001:DB8:ACAD:23::3/64
 ipv6 ospf network point-to-point
 ipv6 ospf 1 area 0
!
interface GigabitEthernet0/0/1
 description Remote LAN Gateway
 no ip address
 duplex auto
 speed auto
 ipv6 address FE80::3 link-local
 ipv6 address 2001:DB8:ACAD:3::1/64
 ipv6 ospf 1 area 0
!
ipv6 router ospf 1
 router-id 3.3.3.3
 log-adjacency-changes
 passive-interface GigabitEthernet0/0/1
!
ip classless
!
ip flow-export version 9
!
!
!
banner motd ^C Authorized Access Only - Remote-R3 Branch Gateway ^C
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
!
!
end

Download Remote-R3.txt

Switch-HQ Switch-HQ.txt, 1.2 KB
Current configuration : 1168 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch-HQ
!
!
!
no ip domain-lookup
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 no ip address
 shutdown
!
banner motd ^C Authorized Access Only - Switch-HQ Access Switch ^C
!
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
!
!
end

Download Switch-HQ.txt

Switch-Remote Switch-Remote.txt, 1.2 KB
Current configuration : 1176 bytes
!
version 12.2
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Switch-Remote
!
!
!
no ip domain-lookup
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
 no ip address
 shutdown
!
banner motd ^C Authorized Access Only - Switch-Remote Access Switch ^C
!
!
!
line con 0
!
line vty 0 4
 login
line vty 5 15
 login
!
!
!
!
end

Download Switch-Remote.txt

  • IPv6
  • Ospfv3
  • Routing
  • Dynamic Routing
  • Router Id
  • Point to Point
  • Link Local
  • Passive Interface
  • Cisco IOS

This page is generated from labs/routing/single-area-ospfv3-for-ipv6/README.md in the repository. Corrections go there.

Search

Type at least two letters, for example OSPF, DHCP relay or VLAN.