< Home

mpls te tunnel-id

Function

The mpls te tunnel-id command specifies the ID for a tunnel.

Format

mpls te tunnel-id tunnel-id

Parameters

Parameter Description Value
tunnel-id Specifies the ID for a tunnel.

The value is an integer that ranges from 1 to 10000.

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The ID for a tunnel is a number that uniquely identifies an MPLS TE tunnel to facilitate tunnel planning and management.

Prerequisites

MPLS TE has been configured as the tunnel protocol using the tunnel-protocol mpls te command in the tunnel interface view.

Precautions

A tunnel ID must be set for a tunnel; otherwise, the tunnel fails to be established.

Example

# Create a tunnel interface, configure MPLS TE as a tunnel protocol, set the tunnel ID to 100, and assign a tunnel destination address 2.2.2.2 to the interface.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol mpls te
[HUAWEI-Tunnel1] mpls te tunnel-id 100
[HUAWEI-Tunnel1] destination 2.2.2.2
[HUAWEI-Tunnel1] mpls te commit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >