The nexthop recursive-lookup default-route command enables BGP route recursion to the default route.
The undo nexthop recursive-lookup default-route command disables BGP route recursion to the default route.
By default, BGP route recursion to the default route is disabled.
Usage Scenario
The next hops of BGP routes may not be directly reachable. In this case, recursion is required so that the BGP routes can be used for traffic forwarding. To enable BGP route recursion to the default route in a BGP-VPN instance IPv4 address family view, run the nexthop recursive-lookup default-route command.
Precautions
After the nexthop recursive-lookup default-route command is run, BGP routes can recurse to the default route, which may lead to a forwarding path change.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpn1 [*HUAWEI-vpn-instance-vpn1] ipv4-family [*HUAWEI-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vpn1-af-ipv4] quit [*HUAWEI-vpn-instance-vpn1] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family vpn-instance vpn1 [*HUAWEI-bgp-vpn1] nexthop recursive-lookup default-route