当前位置:网站首页>【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 查看双层标记的内层标签号
小编创作不易,感谢大家支持,希望可以帮助到大家
边栏推荐
猜你喜欢
The upgrade of capacity helps the flow of computing power, the acceleration moment of China's digital economy
自己经常使用的三种调试:Pycharm、Vscode、pdb调试
How does the intelligent video surveillance platform EasyCVR use the interface to export iframe addresses in batches?
MMDetection 使用示例:从入门到出门
ACP-Cloud Computing By Wakin自用笔记(1)云计算基础、虚拟化技术
Day018 继承
Short-term reliability and economic evaluation of resilient microgrids under incentive-based demand response programs (Matlab code implementation)
Hezhou Cat1 4G module Air724UG is configured with RNDIS network card or PPP dial-up, and the development board is connected to the Internet through the RNDIS network card (taking the RV1126/1109 devel
用Excel绘制统计图
limux入门3—磁盘与分区管理
随机推荐
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
如何进行自动化测试?
win10 uwp win2d 离屏渲染
数据库SqlServer迁移PostgreSql实践
powershell和cmd对比
Global electronics demand slows: Samsung's Vietnam plant significantly reduces capacity
EuROC 数据集格式及相关代码
server
工业元宇宙对工业带来的改变
Short-term reliability and economic evaluation of resilient microgrids under incentive-based demand response programs (Matlab code implementation)
如何进行自动化测试?
从零开始实现一个简单的CycleGAN项目
C#爬虫之通过Selenium获取浏览器请求响应结果
作业8.3 线程同步互斥机制条件变量
PHP代码审计9—代码执行漏洞
win10 uwp DataContext
curl命令的那些事
企业即时通讯软件有哪些功能?对企业有什么帮助?
FE01_OneHot-Scala应用
自己经常使用的三种调试:Pycharm、Vscode、pdb调试