实验拓扑
配置接口地址
配置OSPF协议
测试网络连通性
配置静态MPLS
AR1:
[R1]mpls lsr-id 1.1.1.1 [R1]mpls [R1-GigabitEthernet0/0/0]mpls [R1]static-lsp ingress wps destination 4.4.4.4 32 nexthop 10.1.12.2 outgoing-interface g0/0/0 out-label 100
AR2
[R2]mpls lsr-id 2.2.2.2 [R2]mpls [R2-GigabitEthernet0/0/0]mpls [R2-GigabitEthernet0/0/1]mpls [R2]static-lsp transit wps incoming-interface g0/0/1 in-label 100 outgoing-interface g0/0/0 nexthop 10.1.23.3 out-label 101
AR3
[R3]mpls lsr-id 3.3.3.3 [R3]mpls [R3-GigabitEthernet0/0/0]mpls [R3-GigabitEthernet0/0/1]mpls [R3]static-lsp transit wps incoming-interface g0/0/1 in-label 101 outgoing-interface g0/0/0 nexthop 10.1.34.4 out-label 103
AR4
[R4]mpls lsr-id 4.4.4.4 [R4]mpls [R4-GigabitEthernet0/0/1]mpls [R4]static-lsp egress wps incoming-interface g0/0/1 in-label 103
测试并抓包