Enabling next-hop recursion

Next hop recursion can be enabled so that a device can find the IGP route to the next hop gateway for a BGP4 route.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router bgp command to enable BGP routing.
    device(config)# router bgp
  3. Enter the next-hop-recursion command to enable recursive next hop lookups.
    device(config-bgp-router)# next-hop-recursion

The following example enables recursive next hop lookups.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# next-hop-recursion