Configuring the MPLS TE Tunnel Interface
This section describes how to configure the MPLS TE tunnel interface. You must create a tunnel interface before setting up an MPLS TE tunnel.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface tunnel interface-number
The tunnel interface is created, and the tunnel interface view is displayed.
- To configure the IP address of the tunnel interface, select
one of the following commands.
To specify the IP address of the tunnel interface, run:
ip address ip-address { mask | mask-length } [ sub ]
The secondary IP address of the tunnel interface can be configured only after the primary IP address is configured.
To borrow an IP address from another interface, run:
ip address unnumbered interface interface-type interface-number
An MPLS TE tunnel can be established even if the tunnel interface is assigned no IP address. The tunnel interface must obtain an IP address before forwarding traffic. An MPLS TE tunnel is unidirectional; therefore, its peer address is irrelevant to traffic forwarding. A tunnel interface does not need to be assigned an IP address but uses the ingress LSR ID as its IP address.
- Run:
tunnel-protocol mpls te
MPLS TE is configured to be the tunnel protocol.
- Run:
destination ip-address
The destination address of the tunnel is configured, which is usually the LSR ID of the egress node.
- Run:
mpls te tunnel-id tunnel-id
The tunnel ID is configured.
- Run:
mpls te signal-protocol cr-static
The signal protocol of the tunnel is configured to be static CR-LSP.
- Run:
commit
The configurations are committed.