[RouterA] ip route-static 30.1.1.2 24 tunnel 2 preference 1
Execute the display ip routing-table command on Router A. You can see a static route entry
with Tunnel2 as the outgoing interface.
CR-LSP backup configuration example
Network requirements
Set up an MPLS TE tunnel from Router A to Router C. Use CR-LSP hot backup for it.
Figure 30 Network diagram
Device
Router A
Router B
Configuration procedure
1.
Configure IP addresses and masks for the interfaces according to
shown.)
2.
Enable IS-IS to advertise host routes with LSR IDs as destinations on each node. (Details not
shown.)
Execute the display ip routing-table command on each router. You can see that all nodes
have learned the host routes of other nodes with LSR IDs as destinations.
3.
Configure basic MPLS TE, and enable RSVP-TE and CSPF:
<RouterA> system-view
[RouterA] mpls lsr-id 1.1.1.9
[RouterA] mpls
[RouterA-mpls] mpls te
[RouterA-mpls] mpls rsvp-te
[RouterA-mpls] mpls te cspf
[RouterA-mpls] quit
Interface
IP address
Loop0
1.1.1.9/32
GE 2/1/1
10.1.1.1/24
POS 5/1/1
30.1.1.1/24
Loop0
2.2.2.9/32
GE 2/1/1
10.1.1.2/24
GE 2/1/2
20.1.1.1/24
Device
Interface
Router D
Loop0
POS 5/1/0
POS 5/1/1
Router C
Loop0
GE 2/1/1
POS 5/1/1
111
IP address
4.4.4.9/32
30.1.1.2/24
40.1.1.1/24
3.3.3.9/32
20.1.1.2/24
40.1.1.2/24
Figure
30. (Details not