redirect ip recursive-lookup tunnel

Function

The redirect ip recursive-lookup tunnel command preferentially recurses the received routes that carry a redirection extended community attribute to tunnels.

The undo redirect ip recursive-lookup tunnel command restores the default configuration.

By default, routes that carry a redirection extended community attribute recurse to other routes, but not to tunnels.

Format

redirect ip recursive-lookup tunnel [ tunnel-selector tunnel-selector-name ]

undo redirect ip recursive-lookup tunnel

Parameters

Parameter Description Value
tunnel-selector tunnel-selector-name

Specifies the name of a tunnel policy selector.

The value is a string of 1 to 40 case-sensitive characters, spaces not supported. The string can contain spaces if it is enclosed with double quotation marks (").

Views

BGP-Flow address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

After the redirect ip recursive-lookup tunnel command is run, the received routes that carry a redirection extended community attribute preferentially recurse to tunnel. If the tunnel is reachable, they are used for forwarding; if the tunnel is unreachable, these received routes recurse to other routes.

Prerequisites

The BGP FlowSpec peer has been enabled to advertise routes that carry a redirection extended community attribute.

Precautions

In VS mode, this command is supported only by the admin VS.

The SRv6 TE Policy or SRv6 TE Policy Group of tunnel is not supported in a tunnel selector specified in the command.

Example

# Enable a device to preferentially recurse the received routes that carry a redirection extended community attribute to tunnels.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family flow
[*HUAWEI-af-ipv4-flow] redirect ip recursive-lookup tunnel
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >