当前位置:网站首页>OSPF shamlink 解决后门链路问题
OSPF shamlink 解决后门链路问题
2022-07-30 01:36:00 【GRQ。】
拓扑图:
场景:
R4跟R5中间加了一条后门链路,使4.4.4.4路由通过后门链路传到R5是一条1类LSA,通过VPN传过去得是一条3类LSA,导致R5访问4.4.4.4的时候优先选择了后门链路
配置步骤:
1.在AS100里配置RIP v2协议,配置MPLS LDP 再配置R1跟R3的EBGP邻居关系
2.R1 R4 R3 R5 之间配置ospf协议 在area 1 里面发布路由
3.在PE上做路由引入,BGP引入OSPF OSPF引入BGP
4.R1跟R3之间做sham-link
5.把后门链路的开销改大
在PE之间建立伪连接步骤
- 在PE上创建新的loopback接口,并绑定VPN-instance
- 在BGP的vpn-instance中network新建的loopback
- 在OSPF中用loopback接口建立shamlink
R1
- interface LoopBack1
- ip binding vpn-instance A1
- ip address 192.168.1.1 255.255.255.255
- ipv4-family vpn-instance A1
- network 192.168.1.1 255.255.255.255 (先在BGP里面发布这条路由)
- ospf 1 vpn-instance A1
- area 0.0.0.1
- sham-link 192.168.1.1 192.168.2.1(在ospf里面建立伪连接)
建立好路由后可以通过ping -vpn-instance A1 -a 192.168.1.1 192.168.2.1 查看路由连通性
R3
- interface LoopBack1
- ip binding vpn-instance A2
- ip address 192.168.2.1 255.255.255.255
- ipv4-family vpn-instance A2
- network 192.168.2.1 255.255.255.255
- ospf 1 vpn-instance A2
- import-route bgp
- area 0.0.0.1
- sham-link 192.168.2.1 192.168.1.1
配置完成后
可以在R5上通过dis ip routing-table protocol ospf 查看去4.4.4.4的路由下一条是否为10.1.35.3来确定配置是否准确 
边栏推荐
- 日期时间存入数据库会差一天?
- ufw set firewall rules
- Tcp ip
- 9 common mistakes testers fall into
- 基于蒙特卡诺的风场景模型出力(Matlab代码实现)
- 2022-07-29:一共有n个人,从左到右排列,依次编号0~n-1, h[i]是第i个人的身高, v[i]是第i个人的分数, 要求从左到右选出一个子序列,在这个子序列中的人,从左到右身高是不下降的。
- [QNX Hypervisor 2.2用户手册]9.12 预留
- Baidu Intelligent Cloud Zhangmiao: Detailed explanation of enterprise-level seven-layer load balancing open source software BFE
- LeetCode 2342. Digital and equal number of one of the biggest and
- 专心致志做事情
猜你喜欢

Interviews with big factories under the trend of layoffs: "ByteDance"

Graphical LeetCode - 593. Valid Squares (Difficulty: Moderate)

接口测试的作用

【LeetCode每日一题】——404.左叶子之和

图解LeetCode——593. 有效的正方形(难度:中等)

自学HarmonyOS应用开发(47)- 自定义switch组件

TCP/IP 常见问题

Unity便携式 VR 的实现

SwiftUI SQLite Database Storage Tutorial Collection (2022 Edition)

【VMWARE--共享文件】
随机推荐
液压滑环的应用介绍
图解LeetCode——593. 有效的正方形(难度:中等)
Sublime does background transparency and column editor
The role of diff and key
postgresql日常运维技能,适合初学者
diff和key的作用
2022-07-29:一共有n个人,从左到右排列,依次编号0~n-1, h[i]是第i个人的身高, v[i]是第i个人的分数, 要求从左到右选出一个子序列,在这个子序列中的人,从左到右身高是不下降的。
裁员趋势下的大厂面试:“字节跳动”
mysql 报错 is too long for user name (should be no longer than 16)
性能测试理论1 | 性能测试难点问题梳理
LeetCode/Scala - without the firstborn of the string of characters, the longest text string back
Push the image to the Alibaba Cloud private warehouse
Fabric Private Data Case
JS开发3D建模软件
STM32 - OLED display experiment
The Rising Star of Interface Test Automation-YApi Interface Management Platform
[VMWARE--Shared files]
my creative day
It is really strong to apply the @Transactional transaction annotation to such perfection!
泰克Tektronix示波器软件TDS2012|TDS2014|TDS2022上位机软件NS-Scope