华为ENSP MPLS-静态LSP配置

华为ENSP MPLS-静态LSP配置
[R1]int e0/0/0
[R1-Ethernet0/0/0]ip add 10.0.12.1 24
[R1]int loo0
[R1-LoopBack0]ip add 1.1.1
[R1-LoopBack0]ip add 1.1.1.1 32
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]net 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]net 10.0.12.0 0.0.0.255
[R1]mpls lsr
[R1]mpls lsr-id 1.1.1.1
[R1]mpls
[R1-mpls]int e0/0/0
[R1-Ethernet0/0/0]mpls
[R1]static-lsp ingress r1tor3 destination 3.3.3.3 32 nexthop 10.0.12.2 out-label
102
[R1]tracert lsp ip 3.3.3.3 32
[R1]static-lsp egress r3tor1 incoming-interface e0/0/0 in-label 201

[R2]int E0/0/0
[R2-Ethernet0/0/0]ip add 10.0.12.2 24
[R2-Ethernet0/0/1]ip add 10.0.23.2 24
[R2-Ethernet0/0/0]int loo0
[R2-LoopBack0]ip add 2.2.2.2 32
[R2-LoopBack0]q
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]net 10.0.12.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]net 10.0.23.0 0.0.0.255
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]a 0
[R2-ospf-1-area-0.0.0.0]net 10.0.23.0 0.0.0.255
[R2]mpls lsr-id 2.2.2.2
[R2]mpls
[R2-mpls]int e0/0/0
[R2-Ethernet0/0/0]mpls
[R2-Ethernet0/0/0]int e0/0/1
[R2-Ethernet0/0/1]mpls
[R2]static-lsp transit r1tor3 incoming-interface e0/0/0 in-label 102 nexthop 10.0.23.3 out-label 203
[R2]static-lsp transit r1tor3 incoming-interface e0/0/1 in-label 302 nexthop 10.0.12.1 out-label 201

[R3]int e0/0/0
[R3-Ethernet0/0/0]ip add 10.0.23.3 24
[R3-Ethernet0/0/0]int loo0
[R3-LoopBack0]ip add 3.3.3.3 32
[R3-LoopBack0]q
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]net 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]net 10.0.23.0 0.0.0.255
[R3]mpls lsr-id 3.3.3.3
[R3-mpls]int e0/0/0
[R3-Ethernet0/0/0]mpls
[R3]static-lsp egress r1tor3 incoming-interface e0/0/0 in-label 203
[R3]static-lsp ingress r3tor1 destination 1.1.1.1 32 nexthop 10.0.23.2 out-label 302