< Home

nexthop recursive-lookup (BGP)

Function

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.

Format

nexthop recursive-lookup route-policy route-policy-name

undo nexthop recursive-lookup route-policy

Parameters

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.

Views

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

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable the next-hop iteration based on the Route-Policy named test.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] nexthop recursive-lookup route-policy test
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >