Configuring BGP next hop recursion based on a route-policy prevents traffic loss if routes changes.
When BGP routes change, BGP needs to perform route recursion on the BGP routes with indirect next hops. If no route-policies are configured to filter the routes on which a BGP route with an indirect next hop depends for recursion, the BGP route may recurse to an incorrect route, which may cause traffic loss. To address this problem, configure BGP next hop recursion based on a route-policy. If no routes match the route-policy, the BGP route with an indirect next hop is considered unreachable. In this situation, incorrect route recursion and traffic loss are prevented.
Before configuring BGP next hop recursion based on a route-policy, complete the following tasks:
Before configuring a route-policy, ensure that the routes on which BGP routes with indirect next hops depend for recursion will not be filtered out by the route-policy. Otherwise, route recursion fails, and traffic cannot be forwarded.
The system view is displayed.
The BGP view is displayed.
BGP next hop recursion based on a route-policy or route-filter is configured.
The command does not apply to the routes received from directly connected EBGP peers or LinkLocal peers.
The configuration is committed.
Run the following commands to check the previous configuration.
Run the display bgp routing-table network [ mask | mask-length ] command to check detailed information about a specified route in the BGP routing table.