nexthop recursive-lookup default-route (BGP-VPN instance IPv4 address family view)

Function

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.

Format

nexthop recursive-lookup default-route

undo nexthop recursive-lookup default-route

Parameters

None

Views

BGP-VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

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.

Example

# Enable the function to send packets over a default route when the recursive next-hop IP address is unavailable.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >