2020-10-31

MPLS 实验

需求:
在这里插入图片描述
 

1.首先配置地址(注意CE和PE之间在关联到vrf空间前不能配置接口ip,否则该地址的直连路由将进入公有路由表)

然后在R2,3,4配置ospf协议。

在这里插入图片描述
在这里插入图片描述
3.配置MPLS域

[r2]mpls lsr-id 2.2.2.2    必须先定义mpls的router-id,要为本地设备的真实ip地址,且邻居可达,因为  
                      该地址将用于建立TCP会话,建议使用环回地址
[r2]mpls             再开启mpls协议
[r2-mpls]mpls ldp      再激活LDP协议
[r2-mpls-ldp]q
之后需要在所有标签经过的接口上开启协议
[r2]interface GigabitEthernet 0/0/1
[r2-GigabitEthernet0/0/1]mpls    先开启MPLS
[r2-GigabitEthernet0/0/1]mpls ldp   再激活LDP协议

在相关接口上都配置上MPLS域;
4.开始配置MPLSVPN
在这里插入图片描述
进入链接CE 的接口
在这里插入图片描述
相关配置在R2链接CE的两个接口和R4链接CE的两个接口
此时配置的地址将不会加载在公网的路由表中
在这里插入图片描述
在PE和PE之间建立BGP邻居(R2和R4之间)
在这里插入图片描述
CE端与PE端的
在R1和R2,R4和R5之间配置静态路由

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

最后进行双向重发布
在这里插入图片描述
在R6和R2之间使用RIP
在这里插入图片描述
R6正常配置RIP协议
在R7和R2之间使用OSPF协议
在这里插入图片描述
之后使用双向重发布,实现路由共享


[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  

测试:
在这里插入图片描述
在这里插入图片描述
实现两个公司各自访问自己的私网互不影响。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
本软件是修改月亮HTTP代理列表 1.12,通过PEXPLORER内带的插件功能脱壳, 并使用C32Asm编辑后获得。 原软件介绍: 自动公布大量最新可用的HTTP代理IP,程序即时验证代理的可用性, 保证列出的代理全部可用。 --去掉了原软件内的流氓插件百度搜霸。 --去掉了原软件内的流氓插件88圈。 --去掉了原软件头部超文本框,预防被再次修改插入有害内容。 --去掉了原软件强行修改默认主页功能。 --去掉了原软件部分无用的数据资源。 包含一个强行下载的可疑dll文件和捆绑的一个可疑exe文件 --替换了原软件下方的文字链接为百度BLOG。 加入本人的BLOG只是为增加访问量,无其他用意 --调整原软件窗体大小更适合列表框。 软件后经过UPX 3.03w压缩,压缩后通过以下站点多杀毒引擎检测 http://www.virustotal.com/zh-cn/ http://scanner.virus.org/ 扫描报告: http://www.virustotal.com/zh-cn/analisis/fd38e93a1b66a85868f9d3b4681727b5 http://scanner.virus.org/ Scanner Name Version Filename Result A-Squared 4.0.0.28 httpdlac.exe Clean Arcavir 1.0.5 httpdlac.exe Clean avast! 1.0.8 httpdlac.exe Clean AVG Anti Virus 7.5.52 httpdlac.exe Clean Avira AntiVir 2.1.12-100 httpdlac.exe Clean BitDefender 7.81008 httpdlac.exe Clean CA eTrust N/A httpdlac.exe Clean CAT QuickHeal 10.00 httpdlac.exe Clean Comodo 3.0 httpdlac.exe Clean CPSecure 1.15 httpdlac.exe Clean Dr. Web 4.44.0.10060 httpdlac.exe Clean F-PROT 4.6.8 httpdlac.exe Clean F-PROT 6 6.2.1.4252 httpdlac.exe Clean F-Secure 1.10 httpdlac.exe Clean Ikarus T3SCAN 1.32.4.0 httpdlac.exe Clean Kaspersky 5.7.13 httpdlac.exe Clean McAfee Virusscan 5.30.0 httpdlac.exe Clean Norman Virus Control 7.00.00 httpdlac.exe Clean Panda 9.04.03.0001 httpdlac.exe Clean Sophos Sweep 4.36.0 httpdlac.exe Clean Trend Micro N/A httpdlac.exe Clean VBA32 3.12.8.10 httpdlac.exe Clean VirusBuster 2005 1.3.4 httpdlac.exe Clean ---------------------------------------------- 压缩后文件属性 Size: 707072 bytes Modified: 2008年12月23日, 18:08:48 MD5: 93AD0B5A2BA1948D1ED11F4CD5EFA56A SHA1: 0AC4F5834140524B3897131DA4771C23CD9CB269 CRC32: FC4D5618 ---------------------------------------------- 版权归原软件作者所有,并无侵权之意。如果您喜欢此软件,请您购买正版!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值