unicast-route recursive-lookup tunnel

Function

The unicast-route recursive-lookup tunnel command allows non-labeled public BGP routes to recurse to LSPs.

The undo unicast-route recursive-lookup tunnel command restores the default configuration.

By default, non-labeled public BGP routes cannot recurse to LSPs.

Format

unicast-route recursive-lookup tunnel [ tunnel-selector tunnel-selector-name ]

undo unicast-route recursive-lookup tunnel [ tunnel-selector tunnel-selector-name ]

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 character string can contain spaces if it is enclosed with double quotation marks (") when being entered.

Views

BGP-IPv4 unicast address family view, BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

By default, non-labeled public BGP routes can recurse to outbound interfaces and next hops, but not to LSPs. To allow non-labeled public BGP routes to preferentially recurse to LSPs, run the unicast-route recursive-lookup tunnel command. If no LSPs are available after the command is run, non-labeled public BGP routes recurse to outbound interfaces and next hops.

If tunnel-selector is specified in the command, non-labeled public BGP routes recurse to the LSPs that match the specified tunnel policy selector.

Precautions

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

Example

# Allow non-labeled public BGP routes to recurse to LSPs.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] unicast-route recursive-lookup tunnel
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >