ip route next-hop-recursion

Enables recursive lookup for IPv4 next-hop routes.

Syntax

ip route next-hop-recursion
no ip route next-hop-recursion

Command Default

By default, next-hop recursive lookups are enabled.

Modes

Global configuration mode

VRF configuration mode

Usage Guidelines

The no form of the command disables recursive lookups.

Examples

The following example disables recursive lookups in the default VRF.

device# configure terminal
device(config)# no ip route next-hop-recursion

The following example disables recursive lookups in a non-default VRF.

device(config) vrf red
device(config-vrf-red)# address-family ipv4 unicast
device(config-vrf-red-ipv4-unicast)no ip route next-hop-recursion

The following example re-enables recursive lookups in the default VRF.

device# configure terminal
device(config)# ip route next-hop-recursion

The following example re-enables recursive lookups in a non-default VRF.

device(config) vrf red
device(config-vrf-red)# address-family ipv4 unicast
device(config-vrf-red-ipv4-unicast)ip route next-hop-recursion