nexthop recursive-lookup route-filter (BGP multi-instance VPNv4 address family view)

Function

The nexthop recursive-lookup route-filter command configures route-filter-based next hop recursion.

The undo nexthop recursive-lookup route-filter command disables route-filter-based next hop recursion.

By default, route-filter-based next hop recursion is disabled.

Format

nexthop recursive-lookup route-filter route-filter-name

undo nexthop recursive-lookup route-filter

Parameters

Parameter Description Value
route-filter route-filter-name

Indicates the name of a route-filter.

The value is a string of 1 to 200 case-sensitive characters, spaces not supported. If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. A maximum of eight parameters can be specified, and each value ranges from 1 to 200 characters.

Views

BGP multi-instance VPNv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

BGP needs route recursion in case of next hops. If route recursion is not limited, BGP routes may be incorrectly iterated, causing traffic loss. Therefore, next hops should perform recursion according to certain conditions.

To control route recursion based on a route-filter, run the nexthop recursive-lookup route-filter command. If a target recursive route is filtered out by the route-filter, the route is considered unreachable. In this manner, BGP route recursion will fail.

Prerequisites

The target recursive route has been determined, and a route-filter has been configured.

Note:

Before configuring a route-filter, ensure that all desired target recursive routes will not be filtered out by the route-filter.

Precautions

The command does not apply to the routes received from LinkLocal peers.

Example

# Configure BGP to filter routes based on a specified route-filter.
<HUAWEI> system-view
[~HUAWEI] xpl route-filter aaa
[~HUAWEI-xpl-filter] end-filter
[*HUAWEI] bgp 100 instance a
[*HUAWEI-bgp-instance-a] ipv4-family vpnv4
[*HUAWEI-bgp-instance-a-af-vpnv4] nexthop recursive-lookup route-filter aaa
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >