The nexthop recursive-lookup command enables the next-hop iteration based on the specified routing policy.
The undo nexthop recursive-lookup command disables the next-hop iteration based on the specified routing policy.
By default, the next-hop iteration based on the specified routing policy is disabled.
nexthop recursive-lookup route-policy route-policy-name
undo nexthop recursive-lookup route-policy
| Parameter | Description | Value |
|---|---|---|
route-policy route-policy-name |
Indicates the name of a Route-Policy. |
The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
BGP view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view, BGP-VPNv4 address family view
Usage Scenario
The next-hop iteration based on the specified routing policy can control the iterated next hop according to certain conditions. The route that fails to pass the policy is ignored.
Precautions
Creating a route-policy before it is referenced is recommended. By default, nonexistent route-policies cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent route-policy is referenced using the current command, route iteration is not restricted.