Configuring routing policy-based recursive lookup

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.

To configure routing policy-based recursive lookup:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter RIB view.

rib

N/A

3. Create the RIB IPv4 address family and enter its view.

address-family ipv4

By default, no RIB IPv4 address family exists.

4. Configure routing policy-based recursive lookup.

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

By default, routing policy-based recursive lookup is not configured.