本文主要是介绍MPLS静态配置实验(初学版),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
实验拓扑
配置接口地址
配置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
测试并抓包
这篇关于MPLS静态配置实验(初学版)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!