OSPFv3: configuring, verifying and multi-area OSPF for IPv6
Sign in to read this lesson
The official name of OSPF for IPv4 is OSPFv2; OSPFv3 was created for IPv6. The classic OSPFv3 in this lesson only supports IPv6, so when IPv4 and IPv6 run together you configure both. OSPFv3 is still a link-state protocol that builds an LSDB with LSAs. Configuration is simpler: ipv6 router ospf 1, a router-id in IPv4 format and ipv6 ospf 1 area 0 on the interface; there is no network command. Adjacencies and LSA exchange use link-local addresses. Verify with show ipv6 ospf neighbor, show ipv6 route ospf, show ipv6 ospf, show ipv6 ospf interface brief and show ipv6 protocols.
What you will learn
- OSPFv2 = IPv4, OSPFv3 = IPv6. Classic OSPFv3 (
ipv6 router ospf) only carries IPv6: in a dual-stack network you configure both. OSPFv3 is still a link-state protocol that builds an LSDB with LSAs. - Configuration:
ipv6 router ospf 1(1 = process ID) →router-id 1.1.1.1(32 bits, IPv4 format) → on the interfaceipv6 ospf 1 area 0. There is no network command. - The router ID is chosen as in OSPFv2. If the router has no IPv4 address at all, the router-id must be configured manually, otherwise the OSPFv3 process doesn't start.
- OSPFv3 uses link-local addresses for adjacencies and LSA exchange: the next hop of routes is FE80::…. To include a loopback in OSPF, it also gets
ipv6 ospf 1 area 0. - Verification:
show ipv6 ospf neighbor,show ipv6 route ospf(O = intra-area, OI = inter-area),show ipv6 ospf,show ipv6 ospf interface brief,show ipv6 protocols. For multi-area you simply configure a different area on the interface.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.