The mpls te auto-primary-tunnel command enables the automatic primary tunnel function.
The undo mpls te auto-primary-tunnel command disables the automatic primary tunnel function.
By default, the automatic primary tunnel function is disabled.
Parameter | Description | Value |
---|---|---|
ip-prefix ip-prefix |
Specifies an IP prefix list. |
The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
p2p-template template-name |
Specifies the name of a P2P TE tunnel template. |
The name is a string of 1 to 31 case-sensitive characters. The name cannot contain spaces or start with an underscore (_). |
Usage Scenario
When you want to create a large number of MPLS TE tunnels or create MPLS TE tunnels to form a full-mesh network, creating them one by one is laborious and complex. To simplify configuration, run the mpls te auto-primary-tunnel command to enable a device to use an IP prefix list and a P2P TE tunnel template to automatically establish MPLS TE tunnels in a batch.
Prerequisites
MPLS TE has been enabled globally using the mpls te command.
An IP prefix list has been created.