The nexthop recursive-lookup route-policy command configures route-policy next hop recursion.
The undo nexthop recursive-lookup route-policy command disables route-policy next hop recursion.
By default, route-policy-based next hop recursion is disabled.
Usage Scenario
BGP needs route recursion in case of next hops. If route recursion is not limited, BGP routes may be incorrectly iterated, causing traffic loss. Therefore, next hops should perform recursion according to certain conditions.
To control route recursion based on a route-policy, run the nexthop recursive-lookup route-policy command. If a target recursive route is filtered out by the route-policy, the route is considered unreachable. In this manner, BGP route recursion will fail.Prerequisites
The target recursive route has been determined, and a route-policy has been configured.
Note: Before configuring a route-policy, ensure that all desired target recursive routes will not be filtered out by the route-policy.Precautions
The command does not apply to the routes received from LinkLocal peers.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv6-family [*HUAWEI-vpn-instance-vpna-af-ipv6] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] route-policy aa permit node 10 [*HUAWEI-route-policy] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv6-family vpn-instance vpna [*HUAWEI-bgp-6-vpna] nexthop recursive-lookup route-policy aa