当前位置:网站首页>Interfering with BGP routing---community attributes
Interfering with BGP routing---community attributes
2022-08-10 00:13:00 【not very smart】
目录
The construction of experimental topology andIP地址的规划
实验要求:
1.合理IP地址
2.AS 1 2 3 内部使用OSPF 协议 , AS 1 AS 2Fully interconnected internallyIBGP邻居 ,ASAll in betweenEBGP邻居
3.PC 1 3 5 Routes belonging to telecommunications,Telecommunications must be used when communicatingAS 1 ;PC 2 4 6 A route belonging to China Unicom,Communication must use Unicom AS 2
4.若 R1-R9之间链路断开,The routing of telecommunications is still through telecommunications AS 1 通信
The construction of experimental topology andIP地址的规划
地址规划:R1与R5between network segments10.1.15.0/24,The rest of the network segments are analogous.The loopback segment uses the router sequence number,R1就为1.1.1.1/24.The user network segments are as follows192.168.1.0—192.168.6.0
IGP与BGP的配置
IGP均使用OSPF协议,协议启动、After the announcement, check whether the routing table is complete
BGP中IBGPNeighbors use loopback interfaces to establish neighbors,EBGPNeighbors use direct connection to build neighbors
BGP的宣告
R9
R10
R11
干涉选路
1、Mark the traffic that needs to be interfered with as a community attribute(Distinguish the traffic of China Telecom and China Unicom)
The traffic is first crawled through the prefix list
Then use the routing policy to modify the attribute
BGPNeighbor call
peer 10.1.19.1 route-policy com export
在R9与R10上抓取1.0、2.0、3.0、4.0网段,R11上抓取5.0、6.0网段
2、Distinguish the traffic of China Telecom and China Unicom through different markers and interfere with routing
题目要求:Telecom routing,Telecommunications must be used when communicatingAS 1 ;Unicom routing,Communication must use Unicom AS 2
through topology analysis,R11在学习AS3中的路由时,由于R5的router-id小,所以会通过R5去学习,不符合题目要求.可在R11Modify the local priority on the solution
Captured by community attributes
The routing policy modifies the local priority
Neighbor call(R5-com1 R8com2)
peer 10.1.51.5 route-policy com1 import
peer 10.1.81.8 route-policy com2 import
此时可以查看BGP表
It can be seen that the route selection meets the requirements
The same is true after completionR9与R10Learn from intervention5.0、6.0的路由,Make the right choice,完成后查看路由表
link mutation --- R1-R9之间链路断开
R1与R9after disconnection,Need to let telecommunications still go through telecommunicationsAS通信,由于AS2的as-path优于AS1的,So it won't go to telecommunicationsAS,此时我们可以将AS2的as-path改大,so that it goes through telecommunicationsAS通信
Capture telecom traffic through community attributes
通过路由策略修改as-path
对R4的每个IBGPNeighbors make calls
Created heregroupgroup to perform bulk operations,to reduce the amount of configuration
Just solved itAS4telecommunication learningAS3的路由,It still needs to be resolved at this timeAS3学习AS4的路由,本次修改AS1的preferred-value(Huawei-specific attributes)make it betterAS2
Also grab it first
修改preferred-value
R4只需对EBGP邻居R3调用
At this point, the routing interference between going and returning has been completed,You can check the routing table to confirm
再通过PC测试
It can be seen that both going and returning meet the requirements,至此实验结束
边栏推荐
- R语言拟合ARIMA模型并使用拟合模型进行预测推理:使用forecast函数计算ARIMA模型未来值(包含时间点、预测值、两个置信区间)
- CGLIB源码易懂解析
- Rust dereference
- 2022年中国第三方证券APP创新专题分析
- c:forEach varStatus属性
- 【软考 系统架构设计师】案例分析⑤ 质量属性和架构评估
- leetcode 39. 组合总和(完全背包问题)
- This article lets you quickly understand implicit type conversion [integral promotion]!
- 干涉BGP的选路---社团属性
- APS系统能消除造成生产和运输延迟的瓶颈
猜你喜欢
[Microservice~Nacos] Configuration Center of Nacos
leetcode:332. 重新安排行程
[Microservice~Nacos] Nacos service provider and service consumer
Good future, want to be a second new Oriental
Swift 需求 如何防止把view重复添加到win里面
【技术分享】SLA(服务等级协议)原理与配置
电脑系统重装后怎么用打印机扫描出文件?
Presto Event Listener开发
Basic JSON usage
CV复习:softmax代码实现
随机推荐
毕昇编译器优化:Lazy Code Motion
Common commands and technical function modules of Metasploit
【GORM】模型关系-HasMany关系
Activiti7审批流
你的 Link Button 能让用户选择新页面打开吗?
shell array
OKR 锦囊妙计
Five Star Holdings Wang Jianguo: Deepen the track with "plant spirit" and promote growth with "animal spirit"
18-GuliMall 压力测试与性能监控
Redis
Kubernetes Service对象
【技术分享】SLA(服务等级协议)原理与配置
深度学习100例 —— 循环神经网络(RNN)实现股票预测
D. Binary String To Subsequences
C. Omkar and Baseball
都在说云原生,那云原生到底是什么?
使用股票量化交易接口需要具备怎么样的心态
xctf攻防世界 Web高手进阶区 shrine
Js fifteen interview questions (with answers)
JS中表单操作、addEventListener事件监听器