< Home

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 LSPs.

Format

tunnel-selector tunnel-selector-name

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.

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 SPE in the HVPN networking needs to apply a tunnel policy to VPNv4 routes that are received from UPEs.

Prerequisites

The tunnel-selector command is run to create a tunnel selector.

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.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] tunnel-selector tps 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >