tunnel-selector (BGP-VPNv6 address family view)

Function

The tunnel-selector command applies a tunnel selector.

The undo tunnel-selector command deletes the configuration.

By default, no tunnel selector is applied to BGP-VPNv4, BGP-VPNv6 or labeled BGP routes. BGP-VPNv4, BGP-EVPN routes, BGP-VPNv6 or labeled BGP routes recurse only to LSPs.

Format

tunnel-selector tunnel-selector-name

undo tunnel-selector

Parameters

Parameter Description Value
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. When double quotation marks are used around the string, spaces are allowed in the string.

Views

BGP-VPNv6 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

This command is mainly used in BGP/MPLS IPv6 VPN networking. In the following scenarios, you need to run this command to apply a tunnel selector to BGP-VPNv6 routes so that the routes can recurse to expected types of tunnels based on the tunnel policy.

  • In an inter-AS VPN Option B scenario, VPN instances do not need to be configured on ASBRs, but tunnel policies need to be applied to VPNv6 routes received from PEs.
  • In an HoVPN scenario, SPEs apply a tunnel policy to VPNv4 routes received from UPEs.
  • In an inter-AS VPN Option C scenario, users want to recurse labeled routes to TE tunnels to ensure bandwidth or apply tunnel policies to implement BGP LSP-based load balancing.
  • In an inter-AS VPN Option C scenario, to allow labeled BGP routes to recurse to multiple tunnels for load balancing, run the tunnel-selector [all] command to configure a tunnel selector. If all is specified in the command, a tunnel selector can be applied to BGP IPv4 unicast routes, including labeled routes, imported routes, and network segment routes.

Prerequisites

A tunnel selector has been configured using the tunnel-selector (system view) command.

Precautions

The tunnel type specified in this command cannot be SRv6 TE Policy or SRv6 TE Policy Group.

Example

# Apply a tunnel selector to labeled BGP VPNv6 routes.
<HUAWEI> system-view
[~HUAWEI] tunnel-selector tps permit node 10
[*HUAWEI-tunnel-selector] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] ipv6-family vpnv6
[*HUAWEI-bgp-af-vpnv6] tunnel-selector tps
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic