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