OSPFv3 Basic Configuration for IPv6 Link to heading

topology

NOTE:

  • router-id must be enabled. If the router ID is not configured, the router will dynamically choose an ID from the currently active IPv4 addresses (it will look for the Loopback and then other interfaces). If there is no active IPv4 address, the process will fail to start.

  • Link-local should be enabled in each interface in OSPFv3. If it is not configured, these routers will dynamically generate the link-local addresses as FE80::<MAC>

Configuration Link to heading

hostname R1
ipv6 unicast-routing
ipv6 router ospf 1
    router-id 1.1.1.1
    log-adjacency-changes
    default-information originate
interface f0/0
    ipv6 address 10::1/64
    ipv6 address FE80::1 link-local
    ipv6 enable
    ipv6 ospf 1 area 0
    no shutdown
interface f0/1
    ipv6 address 100::1/64
    ipv6 enable
    no shutdown
ipv6 route ::/0 100::2
hostname R2
ipv6 unicast
ipv6 router ospf 1
    router-id 2.2.2.2
int f0/0
    ipv6 add 10::2/64
    ipv6 address FE80::2 link-local
    ipv6 enable
    ipv6 ospf 1 area 0
    no shutdown
int f0/1
    ipv6 add 20::1/64
    ipv6 address FE80::A link-local
    ipv6 enable
    ipv6 ospf 1 area 1
    no shutdown
hostname R3
ipv6 unicast
ipv6 router ospf 1
    router-id 3.3.3.3
int f0/0
    ipv6 add 10::3/64
    ipv6 address FE80::3 link-local
    ipv6 enable
    ipv6 ospf 1 area 0
    no shutdown
int f0/1
    ipv6 add 30::1/64
    ipv6 address FE80::B link-local
    ipv6 enable
    ipv6 ospf 1 area 2
    no shutdown
hostname R4
int f0/0
    ipv6 add 200::1/64
    ipv6 enable
    no shutdown
int f0/1
    ipv6 add 100::2/64
    ipv6 enable
    no shutdown
    ipv6 route ::/0 100::1

Verification Link to heading

R3# show ipv6 ospf neighbor
Neighbor ID     Pri   State           Dead Time   Interface ID    Interface
1.1.1.1           1   FULL/DROTHER    00:00:36    2               FastEthernet0/0
2.2.2.2           1   FULL/BDR        00:00:35    2               FastEthernet0/0

R3# show ipv6 route ospf
OE2 ::/0 [110/1], tag 1
     via FE80::1, FastEthernet0/0
OI  20::/64 [110/2]
     via FE80::2, FastEthernet0/0
R2# show ipv6 ospf neighbor
Neighbor ID     Pri   State           Dead Time   Interface ID    Interface
1.1.1.1           1   FULL/DROTHER    00:00:35    2               FastEthernet0/0
3.3.3.3           1   FULL/DR         00:00:35    2               FastEthernet0/0

R2# show ipv6 route ospf
OE2 ::/0 [110/1], tag 1
     via FE80::1, FastEthernet0/0
OI  30::/64 [110/2]
     via FE80::3, FastEthernet0/0

OSPFv3 Address Family for IPv4 and IPv6 Link to heading

topology

  • Configure Area 1 to become Totally Stub Area for both IPv4 and IPv6.
  • Configure Area 2 to become Stub Area for both IPv4 and IPv6.

Configuration Link to heading

hostname R1
ipv6 unicast
int l0
    ip add 1.1.1.1 255.255.255.255
    ipv6 add 2007::1111/64
    ospfv3 100 ipv4 area 0
    ospfv3 100 ipv6 area 0
int f0/0
    no shut
    ip add 10.1.1.1 255.255.255.0
    ipv6 add 2001::1/64
    ospfv3 100 ipv4 area 0
    ospfv3 100 ipv6 area 0
int f0/1
    no shut
    ip add 10.1.2.1 255.255.255.252
    ipv6 add 2002::1/64
    ospfv3 100 ipv4 area 0
    ospfv3 100 ipv6 area 0
router ospfv3 100
    address-family ipv4 unicast
        passive-interface f0/0
        passive-interface l0
    address-family ipv6 unicast
        passive-interface f0/0
        passive-interface l0
hostname R2
ipv6 unicast
int l0
    ip add 2.2.2.2 255.255.255.255
    ipv6 add 2007::2222/64
    ospfv3 100 ipv4 area 0
    ospfv3 100 ipv6 area 0
int f0/0
    no shut
    ip add 10.1.2.2 255.255.255.252
    ipv6 add 2002::2/64
    ospfv3 100 ipv4 area 0
    ospfv3 100 ipv6 area 0
int s1/0
    no shut
    ip add 10.1.2.5 255.255.255.252
    ipv6 add 2003::1/64
    encapsulation ppp
    ospfv3 100 ipv4 area 1
    ospfv3 100 ipv6 area 1
int s1/1
    no shut
    ip add 10.1.2.9 255.255.255.252
    ipv6 add 2005::1/64
    encapsulation frame-relay
    frame-relay interface-dlci 204
    frame-relay map ipv6 2005::2 204 broadcast
    frame-relay map ip 10.1.2.10 204 broadcast
    frame-relay map ipv6 FE80::C804:1BFF:FE34:0 204 broadcast
    ospfv3 100 ipv4 area 2
    ospfv3 100 ipv6 area 2
router ospfv3 100
    address-family ipv4 unicast
        passive-interface l0
        area 1 stub no-summary
        area 2 stub
    address-family ipv6 unicast
        passive-interface l0
        area 1 stub no-summary
        area 2 stub
hostname R3
ipv6 unicast
int l0
    ip add 3.3.3.3 255.255.255.255
    ipv6 add 2007::3333/64
    ospfv3 100 ipv4 area 1
    ospfv3 100 ipv6 area 1
int f0/0
    no shut
    ip add 10.1.3.1 255.255.255.0
    ipv6 add 2004::1/64
    ospfv3 100 ipv4 area 1
    ospfv3 100 ipv6 area 1
int s1/0
    no shut
    ip add 10.1.2.6 255.255.255.252
    ipv6 add 2003::2/64
    encapsulation ppp
    ospfv3 100 ipv4 area 1
    ospfv3 100 ipv6 area 1
router ospfv3 100
    address-family ipv4 unicast
        passive-interface f0/0
        passive-interface l0
        area 1 stub
    address-family ipv6 unicast
        passive-interface f0/0
        passive-interface l0
        area 1 stub
hostname R4
ipv6 unicast
int l0
    ip add 4.4.4.4 255.255.255.255
    ipv6 add 2007::4444/64
    ospfv3 100 ipv4 area 2
    ospfv3 100 ipv6 area 2
int f0/0
    no shut
    ip add 10.1.4.1 255.255.255.0
    ipv6 add 2006::1/64
    ospfv3 100 ipv4 area 2
    ospfv3 100 ipv6 area 2
int s1/0
    no shut
    ip add 10.1.2.10 255.255.255.252
    ipv6 add 2005::2/64
    encapsulation frame-relay
    frame-relay interface-dlci 402
    frame-relay map ipv6 2005::1 402 broadcast
    frame-relay map ip 10.1.2.9 402 broadcast
    frame-relay map ipv6 FE80::C802:17FF:FEF4:0 402 broadcast
    ospfv3 100 ipv4 area 2
    ospfv3 100 ipv6 area 2
router ospfv3 100
    address-family ipv4 unicast
        passive-interface f0/0
        passive-interface l0
        area 2 stub
    address-family ipv6 unicast
        passive-interface f0/0
        passive-interface l0
        area 2 stub

Verification Link to heading

R3# show ip route ospfv3
Codes: O - OSPF, IA - OSPF inter area
       * - candidate default

Gateway of last resort is 10.1.2.5 to network 0.0.0.0
O*IA  0.0.0.0/0 [110/65] via 10.1.2.5, 00:00:07, Serial1/0
R3# show ipv6 route ospf
Codes: OI - OSPF Inter

OI  ::/0 [110/65]
     via FE80::C802:17FF:FEF4:0, Serial1/0
R4# show ip route ospfv3
Codes: O - OSPF, IA - OSPF inter area
       * - candidate default

Gateway of last resort is 10.1.2.9 to network 0.0.0.0
O*IA  0.0.0.0/0 [110/65] via 10.1.2.9, 00:00:34, Serial1/0
      1.0.0.0/32 is subnetted, 1 subnets
O IA     1.1.1.1 [110/65] via 10.1.2.9, 00:00:34, Serial1/0
      2.0.0.0/32 is subnetted, 1 subnets
O IA     2.2.2.2 [110/64] via 10.1.2.9, 00:00:34, Serial1/0
      3.0.0.0/32 is subnetted, 1 subnets
O IA     3.3.3.3 [110/128] via 10.1.2.9, 00:00:34, Serial1/0
      10.0.0.0/8 is variably subnetted, 8 subnets, 3 masks
O IA     10.1.1.0/24 [110/66] via 10.1.2.9, 00:00:34, Serial1/0
O IA     10.1.2.0/30 [110/65] via 10.1.2.9, 00:00:34, Serial1/0
O IA     10.1.2.4/30 [110/128] via 10.1.2.9, 00:00:34, Serial1/0
O IA     10.1.3.0/24 [110/129] via 10.1.2.9, 00:00:34, Serial1/0

R4# show ipv6 route ospf
Codes: OI - OSPF Inter

OI  ::/0 [110/65]
     via FE80::C802:17FF:FEF4:0, Serial1/0
OI  2001::/64 [110/66]
     via FE80::C802:17FF:FEF4:0, Serial1/0
OI  2002::/64 [110/65]
     via FE80::C802:17FF:FEF4:0, Serial1/0
OI  2003::/64 [110/128]
     via FE80::C802:17FF:FEF4:0, Serial1/0
OI  2004::/64 [110/129]
     via FE80::C802:17FF:FEF4:0, Serial1/0
OI  2007::1111/128 [110/65]
     via FE80::C802:17FF:FEF4:0, Serial1/0
OI  2007::2222/128 [110/64]
     via FE80::C802:17FF:FEF4:0, Serial1/0
OI  2007::3333/128 [110/128]
     via FE80::C802:17FF:FEF4:0, Serial1/0