The automatic primary tunnel function can be used to establish P2P TE tunnels in a batch.
The automatic primary tunnel function uses a specified IP prefix list in which destination IP addresses are defined so that tunnels to the destination IP addresses can be established in a batch. The automatic primary tunnel function can also use a specified tunnel template that defines public attributes before creating tunnels in a batch.
The system view is displayed.
The automatic primary tunnel function is configured.
The configuration is committed.
If errors occur in services transmitted on a TE tunnel and the services cannot be restored, run the reset mpls te auto-primary-tunnel command in the user view to reestablish the TE tunnel to restore the services.
After this command is run, all LSPs in the specified tunnel are torn down and reestablished. If some LSPs are transmitting traffic, the operation causes a traffic interruption. Exercise caution when using this command.