如图
IP配置,OSPF协议配置略
MPLS配置:
R1到R3
#R1
static-lsp ingress R1toR3 destination 10.0.3.3 32 nexthop 10.0.12.2 out-label 102
#R2
static-lsp transit R1toR3 incoming-interface Ethernet0/0/0 in-label 102 nexthop 10.0.23.3 out-label 203
#R3
static-lsp egress R1toR3 incoming-interface Ethernet 0/0/0 in-label 203
此时,执行命令
#R1到R3的命令
tracert lsp ip 10.0.3.3 32
#结果
LSP Trace Route FEC: IPV4 PREFIX 10.0.3.3/32 , press CTRL_C to break.
TTL Replier Time Type Downstream
0 Ingress 10.0.12.2/[102 ]
1 10.0.12.2 60 ms Transit 10.0.23.3/[203 ]
2 10.0.3.3 130 ms Egress
#R3到#R1的命令
tracert lsp ip 10.0.1.1 32
#结果
Error: The specified LSP does not exist.
R3到R1
#R3
static-lsp ingress R3toR1 destination 10.0.1.1 32 nexthop 10.0.23.2 out-label 101
#R2
static-lsp transit R3toR1 incoming-interface Ethernet0/0/1 in-label 101 nexthop 10.0.12.1 out-label 201
#R1
static-lsp egress R3toR1 incoming-interface Ethernet 0/0/0 in-label 201