Redistributing/Assigning Loopback IPv6 address to OSPFv3

Enter the redistribute connected command as described in router ospf3 redistribute.

Enabling redistribution of loopback IPv6 addresses

In the following configuration, loopback interface 6 is configured with IPv6 address 2001:db8:1::127 and is assigned to OSPFv3 area 0.0.0.1, and thus is advertised as an OSPFv3 IntraArea route, regardless of whether route redistribution is enabled.

In the same configuration, loopback interface 2 is configured with IPv6 address 2001:db8:2:133 but is not assigned to an OSPFv3 area. As a result, it will be advertised to neighbors as an External route, and only if it is a "permitted" route in a route-map invoked by the redistribute command.

Assigning loopback IPv6 addresses to OSPFv3 areas

Switch(config)# interface loopback 6
Switch(lo-6)# ipv6 address 2001:db8:1:127
Switch(lo-6)# ipv6 ospf3 area 1
Switch(lo-6)# interface loopback 2
Switch(lo-2)# ipv6 address 2001:db8:2:133 1
Switch(lo-2)# exit
      
1 Assigns an IPv6 address to loopback interface 2, but does not assign the interface to an OSPFv3 area