当前位置:网站首页>MPLS的wpn实验
MPLS的wpn实验
2022-08-03 15:53:00 【不大聪明¿】
目录
实验要求:

拓扑的搭建及接口IP的配置
按照下图进行拓扑的搭建以及根据题目要求完成接口IP的配置

ISP内部IGP、BGP、MPLS的配置
BGP邻居

MPLS邻居

注:由于R3上没有跑BGP,所以需要向外指一条缺省
VRP空间的建立
R2


[R2]ip vpn-instance a (创建名为a的vrf空间)
[R2-vpn-instance-a]ipv4-family (进入IPV4的配置模式下)
[R2-vpn-instance-a-af-ipv4]route-distinguisher 1:1 (RD值)
[R2-vpn-instance-a-af-ipv4]vpn-target 1:1 (RT值 必须对端的R4端一致)去接口关联
[R2]int g0/0/0 (进入链接CE端的接口)
[R2-GigabitEthernet0/0/0]ip binding vpn-instance a (关联到vrf空间)
[R2-GigabitEthernet0/0/0]ip add 192.168.2.2 24 (配置私有ip地址)
同理在创建一个b空间去关联连接R6的接口,同样在R4上创建两个同样的空间,关联R5与R7所连端口。(在创建b空间时,注意RD与RT值不能与a的相同)
MP-BPG邻居关系建立
VPF空间创建好之后,R2与R4要进行MP-BGP建邻
R2

[R2]bgp 1
[R2-bgp]ipv4-family vpnv4[R2-bgp-af-vpnv4]peer 4.4.4.4 enable
同理在R4上完成对R2的建邻
配置后可以查看邻居表确认
[r2-bgp]display bgp vpnv4 all peer

CE端与PE端交互路由
R1---ospf

R6---rip

R2


R5---ospf

R7---rip

R4


双向重发布,实现路由共享
需要在R2与R4上进行单点双向重发布
R2

[R2]bgp 1
[R2-bgp]ipv4-family vpn-instance a
[R2-bgp-a]import-route ospf 2
[R2-bgp-a]q
[R2-bgp]ipv4-family vpn-instance b
[R2-bgp-b]import-route rip 1
[R2]ospf 2
[R2-ospf-2]import-route bgp
[R2]rip 1
[R2-rip-1]import-route bgp
同理在R4上完成同样配置
NAT地址转换
为了实现R6与R7能访问公网,需要进行NAT配置
R7
[r7]acl 2000
[r7-acl-basic-2000]rule 1 permit source any
[r7-acl-basic-2000]q
[r7]interface GigabitEthernet 0/0/1
[r7-GigabitEthernet0/0/1]nat out
[r7-GigabitEthernet0/0/1]nat outbound 2000
再写一条指向R4的缺省
此时R6还不能访问公网,还需R2向R6下放缺省,以及R4给R2下放,R7再给R4下放
[r7]rip 3
[R7-rip-1]default-route originate
[R4]bgp 1
[R4-bgp]ipv4-family vpn-instance b
[R4-bgp-b]network 0.0.0.0 0
[r2]rip 2
[r2-rip-2]default-route originate
完成后可以进行测试

边栏推荐
猜你喜欢

Fortinet产品导入AWS AMI操作文档

技术干货|如何将 Pulsar 数据快速且无缝接入 Apache Doris

js中的基础知识点 —— 事件

Interpretation of the 2021 Cost of Data Breach Report

DC-DC 2C (40W/30W) JD6606SX2 power back application

Optimal Power Flow (OPF) for High Voltage Direct Current (HVDC) (Matlab code implementation)

攻防世界----bug

How much does Ark Survival Evolved cost?

MySQL中的基数是啥?

为教育插上数字化的翅膀,网易云信发布「互联网+教育」整体解决方案
随机推荐
C#.NET 国密数字信封
JD6606SP5_JD6606SSP_JD6606SASP_JD6621W7百盛新纪元授权代理商
自定SvgIcon公用组件
用友YonSuite与旺店通数据集成对接-技术篇2
攻防世界----bug
leetcode: 899. Ordered Queue [Thinking Question]
生态剧变,电子签名SaaS模式迎来新突破,网络效应加速到来
请问下阿里云全托管flink能执行两条flink sql命令么?
CopyOnWriteArrayList详解
美国国防部更“青睐”光量子系统研究路线
【899. Ordered Queue】
spark入门学习-2
使用Make/CMake编译ARM裸机程序(基于HT32F52352 Cortex-M0+)
Small Tools (4) integrated Seata1.5.2 distributed transactions
With a single operation, I improved the SQL execution efficiency by 10,000,000 times!
DC-DC 2C(40W/30W) JD6606SX2退功率应用
opencv 读取和写入路径有汉字的处理方法
[QT] Qt project demo: data is displayed on the ui interface, double-click the mouse to display specific information in a pop-up window
spark入门学习-1
证实了,百度没有快照了