[RouterC] mpls lsr-id 3.3.3.9
[RouterC] mpls
[RouterC-mpls] quit
[RouterC] interface serial 2/1/0
[RouterC-Serial2/1/0] mpls
[RouterC-Serial2/1/0] quit
4.
Configure a static LSP from Router A to Router C:
# Configure the LSP ingress node, Router A.
[RouterA] static-lsp ingress AtoC destination 21.1.1.0 24 nexthop 10.1.1.2 out-label
30
# Configure the LSP transit node, Router B.
[RouterB] static-lsp transit AtoC incoming-interface serial 2/1/0 in-label 30 nexthop
20.1.1.2 out-label 50
# Configure the LSP egress node, Router C.
[RouterC] static-lsp egress AtoC incoming-interface serial 2/1/0 in-label 50
5.
Create a static LSP from Router C to Router A:
# Configure the LSP ingress node, Router C.
[RouterC] static-lsp ingress CtoA destination 11.1.1.0 24 nexthop 20.1.1.1 out-label
40
# Configure the LSP transit node, Router B.
[RouterB] static-lsp transit CtoA incoming-interface serial 2/1/1 in-label 40 nexthop
10.1.1.1 out-label 70
# Configure the LSP egress node, Router A.
[RouterA] static-lsp egress CtoA incoming-interface serial 2/1/0 in-label 70
Verifying the configuration:
# Execute the display mpls static-lsp command on each router to view static LSP information.
Take Router A as an example:
[RouterA] display mpls static-lsp
total statics-lsp : 2
Name
AtoC
CtoA
# On Router A, test the connectivity of the LSP from Router A to Router C.
[RouterA] ping lsp -a 11.1.1.1 ipv4 21.1.1.0 24
LSP Ping FEC: IPV4 PREFIX 21.1.1.0/24 : 100
Reply from 20.1.1.2: bytes=100 Sequence=1 time = 2 ms
Reply from 20.1.1.2: bytes=100 Sequence=2 time = 2 ms
Reply from 20.1.1.2: bytes=100 Sequence=3 time = 1 ms
Reply from 20.1.1.2: bytes=100 Sequence=4 time = 2 ms
Reply from 20.1.1.2: bytes=100 Sequence=5 time = 2 ms
--- FEC: IPV4 PREFIX 21.1.1.0/24 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/2 ms
# On Router C, test the connectivity of the LSP from Router C to Router A.
[RouterC] ping lsp -a 21.1.1.1 ipv4 11.1.1.0 24
FEC
21.1.1.0/24
-/-
32
I/O Label
I/O If
NULL/30
-/S2/1/0
70/NULL
S2/1/0/-
data bytes, press CTRL_C to break
State
Up
Up