Parameter | Description | Value |
---|---|---|
tunnel-id | Specifies the ID for a tunnel. | The value is an integer that ranges from 1 to 10000. |
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.
# 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