< Home

route recursive-lookup tunnel

Function

The route recursive-lookup tunnel command enables tunnel iteration.

The undo route recursive-lookup tunnel command disables tunnel iteration.

By default, tunnel iteration is disabled.

Format

route recursive-lookup tunnel [ only ] [ ip-prefix ip-prefix-name ]

undo route recursive-lookup tunnel

Parameters

Parameter Description Value
only Iterates unlabeled public routes only to LSPs. -
ip-prefix ip-prefix-name Specifies the name of an IP-prefix list. The value is an existing IP-prefix list name.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, an unlabeled BGP public network route or a static route can only be iterated to the outbound interface and next hop, but not a tunnel. After tunnel iteration is enabled, this route is preferentially iterated to an LSP. If no LSP exists, the route can also be iterated to the outbound interface and next hop.

After ip-prefix ip-prefix-name is set, only the unlabeled BGP routes or static routes that match the specified IP prefix list are iterated to LSPs.

If the ip-prefix ip-prefix-name parameter is not set, all static routes and non-labeled public BGP routes will be preferentially iterated to LSP tunnels.

Precautions

If the route recursive-lookup tunnel command is run for several times, the latest configuration overrides the previous one.

Creating an IP prefix list before it is referenced is recommended. By default, nonexistent IP prefix lists cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent IP prefix list is referenced using the current command, all routes match the IP prefix list.

Example

# Iterate the unlabeled public routes to the LSP tunnel.
<HUAWEI> system-view
[HUAWEI] route recursive-lookup tunnel
# Iterate unlabeled public routes only to LSPs.
<HUAWEI> system-view
[HUAWEI] route recursive-lookup only
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >