mpls te auto-primary-tunnel

Function

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.

Format

mpls te auto-primary-tunnel ip-prefix ip-prefix [ p2p-template template-name ]

undo mpls te auto-primary-tunnel ip-prefix ip-prefix [ p2p-template template-name ]

Parameters

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 (_).

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-te write

Usage Guidelines

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.

Example

# Enable the automatic primary tunnel function.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls te
[*HUAWEI-mpls] quit
[*HUAWEI] ip ip-prefix forl3vpn permit 2.2.2.9 32
[*HUAWEI] mpls te auto-primary-tunnel ip-prefix forl3vpn
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >