Using OSPF for IPv6
Problem
You want to distribute your IPv6 routing information using OSPF Version 3.
Solution
Configuring OSPF for IPv6 is similar to the IPv4 configuration:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip cefRouter1(config)#ipv6 cefRouter1(config)#ipv6 unicast-routingRouter1(config)#ipv6 router ospfRouter1(config-rtr)#1router-idRouter1(config-rtr)#1.0.0.1area0rangeRouter1(config-rtr)#AAAA:5::/64exitRouter1(config)#interfaceRouter1(config-if)#FastEthernet0/0ipv6 addressRouter1(config-if)#AAAA:5::1/64ipv6 ospf1areaRouter1(config-if)#0exitRouter1(config)#endRouter1#
Discussion
OSPF Version 3 is a set of relatively straightforward extensions to the existing OSPF Version 2 protocol. These extensions are used purely to allow IPv6 support. The basic operation of OSPF, with its Link State Advertisement (LSA) packets, its strict two-level hierarchy of areas, flooding, Designated Routers, and so forth are exactly the same as what we previously saw for IPv4 in Chapter 8.
OSPFv3 is defined in RFC 2740.
Configuring OSPF for IPv6 has a few more steps than configuring RIP. In particular, CEF must be enabled for both IPv4 and IPv6:
Router1(config)#ip cefRouter1(config)#ipv6 cef
You then define an OSPF process:
Router1(config)#ipv6 router ospfRouter1(config-rtr)#1router-idRouter1(config-rtr)#1.0.0.1area0rangeAAAA:5::/64
Note that OSPF requires a router ID for every router, and that this ID is always a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access