Resolving the IPv6 static route through a protocol

You can use routes from another protocol to resolve a static route.

Perform these steps to resolve the next hop for an IPv6 static route using learned routes from BGP, OSPF, or RIP protocol.

Note: Connected routes are always used to resolve static routes.
  1. Enter global configuration mode.
    device# configure terminal
    
  2. (Optional) Designate the non-default VRF of the destination.
  3. Designate next-hop resolution through BGP, RIP, or OSPF protocol.
    device(config)# ipv6 route next-hop vrf blue bgp
    
    This example designates that the VRF named "blue" is to be used and that static routes are to be resolved through BGP.

The following example specifies that IPv6 static routes can be resolved through directly connected OSPF routers (instead of link-local IPv6 route tables, for example).

device# configure terminal
device(config)# ipv6 route next-hop ospf