Resolving the Next Hop Through a Protocol

You can use routes from a specific protocol to resolve a configured static route.
Perform these steps to resolve the next hop for a static route using learned routes from a protocol.
Note: Connected routes are always used to resolve static routes.
  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enable resolution through the desired protocol.
    The following protocol options are available:
    • BGP
    • OSPF
    • RIP

    This example resolves static routes through BGP. Both iBGP and eBGP routes are used to resolve the routes.

    device(config)# ip route next-hop bgp

    This example enables route resolution through OSPF.

    device(config)# ip route next-hop ospf

    This example resolves static routes through RIP.

    device(config)# ip route next-hop rip