unicast-route recursive-lookup tunnel-v4 (BGP-VPN instance IPv6 address family view)

Function

The unicast-route recursive-lookup tunnel-v4 command enables a device to recurse BGP IPv6 unicast routes to tunnels.

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

By default, the device can recurse BGP IPv6 unicast routes to outbound interfaces and next hops, but not to tunnels.

Format

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

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

Parameters

Parameter Description Value
tunnel-selector tunnel-selector-name

Specifies the name of a tunnel 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 in double quotation marks (" ").

Views

BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

By default, the device can recurse BGP IPv6 unicast routes to outbound interfaces and next hops, but not to tunnels. To enable the device to recurse BGP IPv6 unicast routes to tunnels, run the unicast-route recursive-lookup tunnel-v4 command. After the command is run, the device preferentially recurses BGP IPv6 unicast routes to tunnels (LSPs, GRE tunnels, or local IFNET tunnels); if no such tunnels are available, the device recurses the BGP IPv6 unicast routes to outbound interfaces and next hops.

If tunnel-selector is specified in the command, BGP IPv6 unicast routes recurse to the tunnels that match the specified tunnel selector.

Precautions

If the unicast-route recursive-lookup tunnel-v4 command is run more than once, the latest configuration overrides the previous one.

Example

# Enable the device to recurse routes to tunnels.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv6-family
[*HUAWEI-vpn-instance-vpna-af-ipv6] quit
[*HUAWEI-vpn-instance-vpna] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family vpn-instance vpna
[*HUAWEI-bgp-6-vpna] unicast-route recursive-lookup tunnel-v4 tunnel-selector tnl1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >