next-hop-recursion (Policy Based Routing)

Enables recursive next-hop lookups in route maps. Available for both IPv4 and IPv6 next hop entries in the PBR route maps.

Syntax

next-hop-recursion
no next-hop-recursion

Command Default

This feature is disabled by default.

Modes

Route Map configuration mode.

Usage Guidelines

Use the no form of this command to restore the default.

If the next hop is not the immediate next hop, a recursive route lookup in the 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 for PBR.

Examples

This example enables recursive next-hop lookups for PBR where the configured next hop is IPv4.

SLX# configure terminal
SLX (config)# route-map r999 permit 10
SLX (config-route-map-r999/permit/10)# match ip address acl test1
SLX (config-route-map-r999/permit/10)# set ip next-hop 10.10.10.11
SLX (config-route-map-r999/permit/10)# next-hop-recursion
SLX (config-route-map-r999/permit/10)# exit
SLX (config)# exit
SLX# show running-config route-map
route-map r999 permit 10
   match ip address acl test1
   next-hop-recursion
   set ip next-hop 10.10.10.11
! 

This example enables recursive next-hop lookups for PBR where the configured next hop is IPv6.

SLX# configure terminal
SLX (config)# route-map r999 permit 10
SLX (config-route-map-r999/permit/10)# match ipv6 address acl test1
SLX (config-route-map-r999/permit/10)# set ipv6 next-hop 2001:db8:0:0:0:ff00:42:1111
SLX (config-route-map-r999/permit/10)# next-hop-recursion 
SLX (config-route-map-r999/permit/10)# exit
SLX (config)# exit
SLX# show running-config route-map
route-map r999 permit 10
    match ipv6 address acl test1
    next-hop-recursion
    set ipv6 next-hop 2001:db8:0:0:0:ff00:42:1111 
    !