实验题目:M PLS
实验目的:
- R1与R5 MPLS VPN
- R6与R7 MPLS VPN
- R7可以访问R2/3/4的环回
实验拓扑:
实验思路:1.配置ip
2.pe端启ospf (让公网部分通)
3.搭建mpls
4.启mpls vpn
5.pe与pe间建立bgp邻居关系
6.ce端与pe端交互路由 pe端与pe端重也交互路由
实验内容:
- ip配置
[r1]interface LoopBack 0
[r1-LoopBack0]ip add 192.168.1.1 24
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.2.1 24
[r2]interface LoopBack 0
[r2-LoopBack0]ip add 2.2.2.2 24
[r2-LoopBack0]quit
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip add 23.1.1.1 24
[r3]interface LoopBack 0
[r3-LoopBack0]ip add 3.3.3.3 24
[r3-LoopBack0]quit
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip add 23.1.1.2 24
[r3]interface g0/0/1
[r3-GigabitEthernet0/0/1]ip add 34.1.1.1 24
[r4]interface LoopBack 0
[r4-LoopBack0]ip add 4.4.4.4 24
[r4-LoopBack0]quit
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ip add 34.1.1.2 24
[r4]interface g0/0/2
[r4-GigabitEthernet0/0/0]ip add 47.1.1.1 24
[r5]interface LoopBack 0
[r5-LoopBack0]ip add 192.168.4.1 24
[r5-LoopBack0]quit
[r5]interface g0/0/0
[r5-GigabitEthernet0/0/0]ip add 192.168.3.2 24
[r6]interface LoopBack 0
[r6-LoopBack0]ip add 192.168.1.2 24