next-hop-recursion

Enables BGP recursive next-hop lookups.
Syntax
next-hop-recursion
no next-hop-recursion
Modes

BGP configuration mode

BGP address-family IPv6 unicast configuration mode

Usage Guidelines

When this command is entered in BGP global configuration mode, it applies only to the IPv4 address family. Use this command in BGP address-family IPv6 unicast configuration mode for BGP4+ configurations.

If the BGP next hop is not the immediate next hop, a recursive route lookup in the IP routing information base (RIB) is needed. With recursion, a second routing lookup is required to resolve the exit path for destination traffic. Use this command to enable recursive next-hop lookups.

Examples

The following example enables recursive next-hop lookups for BGP4 for the IPv4 unicast address family.

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

The following example enables recursive next-hop lookups for the IPv6 unicast address family.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast
device(config-bgp-ipv6u)# next-hop-recursion