Enabling Recursive Next Hop Resolution

To enable recursive next-hop resolution:

  1. Navigate to the context of the route-map being configured.
    SLX # route-map r999 permit 10
    SLX (config-route-map-r999/permit/10)#
  2. Configure the match statement to permit the IPv4/IPV6 address through ACL.
    SLX (config-route-map-r999/permit/10)# match ip address acl test1
    SLX (config-route-map-r999/permit/10)# match ipv6 address acl test1
  3. Configure the next-hop addresses.
    SLX (config-route-map-r999/permit/10)# set ip next-hop 10.10.10.11
    SLX (config-route-map-r999/permit/10)# set ipv6 next-hop 2001:db8:0:0:0:ff00:42:1122 
  4. Enable Recursive Next Hop Resolution.
    SLX (config-route-map-r999/permit/10)# next-hop-recursion
    SLX (config-route-map-r999/permit/10)# 
  5. Exit out of the route-map context.
    SLX (config-route-map-r999/permit/10)# exit
    SLX # 
    Recursive Next Hop Resolution is configured on this route-map.
  6. Verify your configuration using the show route-map or the show route-map interface command.
    If recursive route is selected, actual next-hop also will be displayed. Here in the below output, 10.10.10.1 is the actual next-hop for the recursive route.
    SLX# show route-map r1
    Interface Ethernet 0/17
    ip policy route-map r1 permit 10 (Active)
        match ip address acl test1
        set ip next-hop 4.4.4.4 (selected) (recursive)
            next-hop 10.10.10.1
        Policy routing matches: 1543 packets    
    
    SLX# show route-map interface eth 0/17
    Interface Ethernet 0/17
    ip policy route-map r1 permit 10 (Active)
        match ip address acl test1
        set ip next-hop 4.4.4.4 (selected) (recursive)
            next-hop 10.10.10.1
        Policy routing matches: 1543 packets    
    
    SLX#
    
    SLX# show route-map interface ethernet 1/6
    Interface Ethernet 1/6 
    Ipv6 policy route-map r1 permit 10 (Active) 
        match ipv6 address acl test1 
        set ipv6 next-hop 2001:db8:0:0:0:ff00:42:8329 (selected) (recursive)
            next-hop 2001:db:0:0:0:ff11:32:1122
        Policy routing matches: 313229543 packets