protocol nexthop recursive-lookup
Use protocol nexthop recursive-lookup to configure routing policy-based recursive lookup.
Use undo protocol nexthop recursive-lookup to remove the configuration.
Syntax
protocol protocol nexthop recursive-lookup route-policy route-policy-name
undo protocol protocol nexthop recursive-lookup route-policy
Default
Routing policy-based recursive lookup is not configured.
Views
RIB IPv4 address family view
RIB IPv6 address family view
Predefined user roles
network-admin
Parameters
protocol: Specifies a routing protocol, which can be bgp or static in RIB IPv4 address family view or bgp4+ in RIB IPv6 address family view.
route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.
Usage guidelines
When a route changes, the routing protocol has to perform a route recursion if the next hop is indirectly connected. The routing protocol might select an incorrect path, which can cause traffic loss. To prevent this problem, you can use a routing policy to verify the recursive route. If the recursive route fails to match the routing policy, the routing protocol invalidates the route and marks it as unreachable.
For the device to use exact routes to forward the traffic, make sure all desired routes can match the routing policy.
Examples
# Configure recursive lookup based on routing policy policy1 for BGP routes.
<Sysname> system-view [Sysname] rib [Sysname-rib] address-family ipv4 [Sysname-rib-ipv4] protocol bgp nexthop recursive-lookup route-policy policy1