当前位置:网站首页>【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 查看双层标记的内层标签号
小编创作不易,感谢大家支持,希望可以帮助到大家
边栏推荐
- 运力升级助力算力流转,中国数字经济的加速时刻
- EuROC dataset format and related codes
- win10 uwp xaml 绑定接口
- 企业即时通讯软件有哪些功能?对企业有什么帮助?
- Usage of collect_list in Scala105-Spark.sql
- 实验室专利书写指南
- win10 uwp DataContext
- 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
- Flask framework implementations registered encryption, a Flask enterprise class learning 】 【
- 通配符SSL证书不支持多域名吗?
猜你喜欢
随机推荐
How can test engineers break through career bottlenecks?
使用.NET简单实现一个Redis的高性能克隆版(二)
Short-term reliability and economic evaluation of resilient microgrids under incentive-based demand response programs (Matlab code implementation)
Global electronics demand slows: Samsung's Vietnam plant significantly reduces capacity
Win10只读文件夹怎么删除
margin 塌陷和重合的理解
A group of friends asked for help, but the needs that were not solved in a week were solved in 3 minutes?
GBase8s存储过程
当前最快的实例分割模型:YOLACT 和 YOLACT++
lc marathon 8.3
EuROC 数据集格式及相关代码
EasyCVR calls the cloud recording API and returns an error and no recording file is generated. What is the reason?
YOLOv7-Pose尝鲜,基于YOLOv7的关键点模型测评
ECCV 2022 | FPN错位对齐,实现高效半监督目标检测(PseCo)
Day018 继承
Homework 8.3 Thread Synchronization Mutex Condition Variables
LVS负载均衡群集之原理叙述
FE01_OneHot-Scala应用
智能视频监控平台EasyCVR如何使用接口批量导出iframe地址?
Babbitt | Metaverse daily must-read: Weibo animation will recruit all kinds of virtual idols around the world and provide support for them...









