
NOTE:
router-idmust 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