当前位置:网站首页>[HCIP] BGP Small Experiment (Federation, Optimization)
[HCIP] BGP Small Experiment (Federation, Optimization)
2022-08-02 00:18:00 【Yun Sheng】
目录
1.实验拓扑图:

2.实验要求:
(1)AS2基于172.16.0.0/16划分子网
(2)全网可达
(3)Optimize routing entries
3.实验思路:
(1)先进行IP地址的规划,由于BGPThe protocol needs to use loopback to establish neighbors,We can use masks32位的IP,The backbone link uses a network segment,Another loopback is used to simulate the user to achieve Internet access,It can be divided by a large network segment,It is convenient for later network aggregation and optimization
R1-R2: 12.1.1.0/24
R7-R8:78.1.1.0/24
R2-R6环回0(for building neighbors):172.16.0.0/32
AS2Internal backbone link:使用172.16.2.0/21
R2-R6环回1(Used for analog communication):172.16.1.0/27
(2)在AS2Internally there are two dummy onesAS ,So use the federation,Observe the experimental topology,R3,R6A route reflector is required(Knowledge about federations and launchers,I will sort it out at the end of the article.
(3)大环境下使用BGP协议,AS2内使用OSPF协议,Realize intranet intercommunication,AS1-AS2,AS2-AS3Need to write static between,实现互通.
(4)测试:
4.配置命令:
路由器基础IP配置(R2,R7)为例


R1-R2,R2-R3Write static between:
![]()
![]()
![]()
![]()
使用OSPF,实现AS2内网互通.






Use the entire networkBGP协议(AS1-AS2,AS2-AS3之间使用EBGP协议)AS2Use federation and route reflectors inside








查看BGP邻居表:(以R2,R5,R7,R8为例)




注:
联邦:
AS2内,分为AS64512,AS64513小AS,联邦内所有运行BGP协议的设备均声明自己所在的大AS号
[r2]bgp 64512
[r2-bgp]confederation id 2
路由反射器:
3者构建一个簇;可以理解为RR为中心站点,Clients or non-clients are branch sites
要求所有分支与中心必须是IBGP邻居关系;
[r3-bgp]peer 2.2.2.2 reflect-client
在R2,R7,Perform a retransmission step,进行路由策略,减少路由条目:


Knowledge about retransmission steps,You can check out my other blog posts to learn,链接放到下方,便于大家学习.
查看BGP表;
Before proceeding with the strategy:

策略后;

In the strategy section I use:(分发列表)
[r7-bgp]aggregate 172.16.0.0 16 detail-suppressed 仅发送聚合条目,Do not forward detailed items;

测试:
R1环回ping R8环回:

R1环回ping R7环回:

R3环回pingR8环回:

达到实验目的!!
补充:
路由反射器
3种角色,RR(反射器) 客户端 非客户端
3者构建一个簇;可以理解为RR为中心站点,Clients or non-clients are branch sites
要求所有分支与中心必须是IBGP邻居关系;
在一个簇中至少存在一台客户端;
规则:
RR从一台EBGP邻居处学习到的路由可以传输给本地的客户端、非客户端、其他EBGP邻居
RR从一台客户端邻居处学习到的路由,可以传输给本地的其他客户端、非客户端、其他EBGP邻居
RR从一台非客户端邻居处学习到的路由条目,可以传输给本地的客户端,其他EBGP邻居;不得传输给本地的其他非客户端;
注意:若路由条目不优,不具有传递性;反射器也无法反射路由;
[r3-bgp]peer 2.2.2.2 reflect-client
该指令的作用,是让2.2.2.2成为本地的客户端,同时本地成为路由反射器;
联邦
将一个真实的大AS,The logic is divided into multiple smallAS;小ASIt is recommended to use a private number;
小AS间构建联邦内的EBGP邻居关系,可以向真实EBGP关系一样传递路由条目,但不修改属性; 对于该大AS外的其他AS,是不知道内部的小AS情况;
所有配置全部基于小as号进行
[r3]bgp 64512
[r3-bgp]router-id 3.3.3.3
[r3-bgp]pe 2.2.2.2 as-number 64512
[r3-bgp]pe 2.2.2.2 connect-interface LoopBack 0
[r3-bgp]pe 4.4.4.4 as-number 64513
[r3-bgp]pe 4.4.4.4 connect-interface LoopBack 0
[r3-bgp]peer 4.4.4.4 ebgp-max-hop 2
2)联邦内所有运行BGP协议的设备均声明自己所在的大AS号
[r2]bgp 64512
[r2-bgp]confederation id 2
3)小AS间互指peer;在联邦内的ebgp邻居关系间的两台设备,互相定义对端的小AS号;
[r4-bgp]confederation peer-as 64512
切记:华为设备,必须先定义联邦的id,和互相小AS号后再配置邻居关系建立的命令;
in actual engineering cases,Federation and reflector are used simultaneously,降低配置量;
边栏推荐
- Interview high-frequency test questions solution - stack push and pop sequence, effective parentheses, reverse Polish expression evaluation
- els block boundary deformation processing
- 为什么要使用MQ消息中间件?这几个问题必须拿下
- CRS management and maintenance
- JSP内置对象out对象的功能简介说明
- 具有通信时延的多自主体系统时变参考输入的平均一致性跟踪
- 面试高频考题解法——栈的压入弹出序列、有效的括号、逆波兰表达式求值
- 控制电机的几种控制电路原理图
- 不就是个TCC分布式事务,有那么难吗?
- 协作乐高 All In One:DAO工具大全
猜你喜欢
随机推荐
What is the function of the JSP Taglib directive?
Detailed explanation of JSP request object function
基于相关性变量筛选偏最小二乘回归的多维相关时间序列建模方法
JSP out.println()方法具有什么功能呢?
els 方块变形判断。
What does the errorPage attribute of the JSP page directive do?
A simple file transfer tools
Deliver cloud-native microservices applications with Zadig
如何发现新的潜力项目?工具推荐
NFT工具合集
Multi-feature fusion face detection based on attention mechanism
Don't know about SynchronousQueue?So ArrayBlockingQueue and LinkedBlockingQueue don't and don't know?
Graphical LeetCode - 1161. Maximum Sum of In-Layer Elements (Difficulty: Moderate)
Quick solution for infix to suffix and prefix expressions
Async/await principle and execution sequence analysis
短视频seo搜索优化主要内容
回顾历史5次经济衰退时期:这一次可能会有何不同?
单片机遥控开关系统设计(结构原理、电路、程序)
What is the function of the JSP out.println() method?
JSP如何使用request获取当前访问者的真实IP呢?









