当前位置:网站首页>【HCIP】MPLS WPN 实验
【HCIP】MPLS WPN 实验
2022-08-04 18:47:00 【韵晟】
目录
(1)配置ip(R2,R4,连接公司的接口需要在VRF里配置IP)
(3)公司a1使用静态配置,公司a2使用OSPF ,RIP进行配置
1.实验拓扑:

2.实验要求:
(1)R1,R5可以相互通信(模拟公司a1)
(2)R6,R7可以相互通信(模拟公司a2)
(3)R7可以访问R2/R3/R4的环回
3.实验思路:
(1)配置ip(R2,R4,连接公司的接口需要在VRF里配置IP)
(2)ISP 使用OSPF,BGP,MPLS
(3)公司a1使用静态配置,公司a2使用OSPF ,RIP进行配置
(4)测试
4.配置命令:
配置IP







搭建公网ISP环境(OSPF,MPLS,bgp)



配置私网环境




注:
R1,R5使用静态:
ip route-static 172.16.3.0 255.255.255.0 172.16.2.2
ip route-static 172.16.4.0 255.255.255.0 172.16.2.2
ip route-static 172.16.1.0 255.255.255.0 172.16.3.2
ip route-static 172.16.2.0 255.255.255.0 172.16.3.2
R6使用RIP:
rip 1
version 2
network 172.16.0.0
R7使用OSPF:
ospf 1 router-id 7.7.7.7
area 0.0.0.0
network 172.16.3.2 0.0.0.0
network 172.16.4.0 0.0.0.255
R2(配置VPN,需要在a2VRF下建立RIP)


R4(要在a2VRF下建立OSPF)

ospf 1 router-id 7.7.7.7
area 0.0.0.0
network 172.16.3.2 0.0.0.0
network 172.16.4.0 0.0.0.255
重发步:


写入缺省配置NAT(R7)
acl 2000
rule permit souce any
int g0/0/0
nat outbound 2000
ip route-static 0.0.0.0 0.0.0.0 47.1.1.4
在R3上写入缺省:
IP route-static 0.0.0.0 0 34.1.1.4
测试:
R1 ping R5环回
R6 ping R7环回

R7 ping R4环回

R7 ping R3环回

到此实验结束!!
补充:
CE端与PE端交互路由
静态
CE端直接编写静态路由即可;
PE端编写到VRF空间内的静态路由
[r2]ip route-static vpn-instance a 192.168.1.0 24 192.168.2.1
将本地vrf空间内的静态和直连路由重发布到BGP协议传递到对端的PE
[r2]bgp 2
[r2-bgp]ipv4 vpn-instance a
[r2-bgp-a]import-route direct
[r2-bgp-a]import-route static
<r4>display bgp vpnv4 vpn-instance a routing-table 查看mp-bpg的BGP表
OSPF
CE端正常启动OSPF即可
PE端,启动VPNV4专用的ospf协议
[r4]ospf 2 vpn-instance a
[r4-ospf-2]area 0
[r4-ospf-2-area-0.0.0.0]network 192.168.3.1 0.0.0.0
之后使用双向重发布,实现路由共享
[r4]bgp 2
[r4-bgp]ipv4-family vpn-instance a
[r4-bgp-a]import-route ospf 2
[r4]ospf 2 vpn-instance a
[r4-ospf-2]import-route bgp
[r4]display mpls lsp vpn-instance a 查看双层标记的内层标签号
小编创作不易,感谢大家支持,希望可以帮助到大家
边栏推荐
- limux入门3—磁盘与分区管理
- 实验室专利书写指南
- DOM Clobbering的原理及应用
- 【简答题】月薪4k和月薪8k的区别就在这里
- Regardless of whether you are a public, professional or non-major class, I have been sorting out the learning route for a long time here, and the learning route I have summarized is not yet rolled up
- gbase8s创建RANGE分片表
- 12. SAP ABAP OData 服务如何支持 $select 有选择性地仅读取部分模型字段值
- The upgrade of capacity helps the flow of computing power, the acceleration moment of China's digital economy
- win10 uwp ping
- ACP-Cloud Computing By Wakin自用笔记(1)云计算基础、虚拟化技术
猜你喜欢

limux入门3—磁盘与分区管理

Flask framework implementations registered encryption, a Flask enterprise class learning 】 【

用Excel绘制统计图

ACP-Cloud Computing By Wakin自用笔记(1)云计算基础、虚拟化技术

CPU突然飙高系统反应慢,是怎么导致的?有什么办法排查?

PHP代码审计10—命令执行漏洞

从零开始实现一个简单的CycleGAN项目
[Distributed Advanced] Let's fill in those pits in Redis distributed locks.

LVS+NAT 负载均衡群集,NAT模式部署

YOLOv7-Pose尝鲜,基于YOLOv7的关键点模型测评
随机推荐
Google Earth Engine APP - one-click online viewing of global images from 1984 to this year and loading an image analysis at the same time
Alibaba Cloud International Edition uses ROS to build WordPress tutorial
Route lazy loading
WPF 多个 StylusPlugIn 的事件触发顺序
【简答题】月薪4k和月薪8k的区别就在这里
火灾报警联网FC18中CAN光端机常见问题解答和使用指导
Scala104-Spark.sql的内置日期时间函数
不论你是大众,科班和非科班,我这边整理很久,总结出的学习路线,还不快卷起来
部署LVS-DR群集
2019 Haidian District Youth Programming Challenge Activity Elementary Group Rematch Test Questions Detailed Answers
win10 uwp xaml 绑定接口
实验室专利书写指南
浅谈web网站架构演变过程
PHP代码审计7—文件上传漏洞
PHP代码审计8—SSRF 漏洞
在线生成接口文档
Win10只读文件夹怎么删除
【STM32】STM32单片机总目录
Day018 继承
Those things about the curl command