tunnel-selector (BGP view)

Function

The tunnel-selector command applies a tunnel selector to BGP-VPNv4 or BGP labeled routes.

The undo tunnel-selector command cancels the configuration.

By default, no tunnel selector is applied to BGP-VPNv4 or BGP labeled routes. BGP-VPNv4 or BGP labeled route are only iterated to LDP LSPs.

Format

tunnel-selector tunnel-selector-name [ all ]

undo tunnel-selector

Parameters

Parameter Description Value
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. When double quotation marks are used around the string, spaces are allowed in the string.
all The tunnel selector applies to all BGP IPv4 unicast routes, including labeled routes and imported routes. -

Views

BGP view, BGP-IPv4 unicast address family view or BGP-VPNv4 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The tunnel-selector command is often used in BGP/MPLS IP VPN networking. It can be used in the following scenarios to apply a tunnel selector to BGP-VPNv4 or BGP labeled routes:

  • The ASBR in the VPN Option B networking needs to apply a tunnel policy to VPNv4 routes that are received from PEs although VPN instances are not configured on it.
  • The SPE in the HoVPN networking needs to apply a tunnel policy to VPNv4 routes that are received from UPEs.
  • The PE in the VPN Option C networking needs to apply a tunnel policy to BGP labeled routes advertised to remote PEs.

In an inter-AS VPN Option C scenario, to implement tunnel-based load-balancing among labeled BGP routes, run the tunnel-selector tunnel-selector-name all command to configure a tunnel selector on the ASBR. If the all parameter is used, the tunnel selector applies to all BGP IPv4 unicast routes, including labeled routes and imported routes.

Precautions

Deleting the tunnel selector applied to BGP-VPNv4 or BGP labeled routes may cause VPN service interruption because the BGP-VPNv4 or BGP labeled routes may fail to be iterated to tunnels.

Example

# Apply a tunnel selector to BGP labeled routes.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] ipv4-family unicast
[sysname-bgp-af-ipv4] tunnel-selector tps 

Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.