当前位置:网站首页>BGP experiment (route reflector, federation, route optimization)
BGP experiment (route reflector, federation, route optimization)
2022-08-02 06:32:00 【aweike】
目录
9.Republish and route optimization
实验要求:
实验步骤:
1.IP地址的规划
R1到R2为12.1.1.0/24网段
R7到R8为78.1.1.0/24网段
Each router has two loopbacks,One for building neighbors,One is for communication
R1of the neighbor loopbackIP地址为1.1.1.1/32,Communication is11.1.1.1/24
R8of the neighbor loopbackIP地址为8.8.8.8/32,Communication is88.1.1.1/24
整个AS2The network segment address of the area is 172.16.0.0/16网段
将172.16.0.0/16划分为
Build neighbor loopback as172.16.0.1/32 172.16.0.2/32 172.16.0.3/32 172.16.0.4/32 172.16.0.5/32 172.16.0.6/32
Communication loopback is172.16.1.1/24 172.16.2.1/24 172.16.3.1/24 172.16.4.1/24 172.16.5.1/24 172.16.6.1/24
The network segment of the backbone link is 172.16.3.0/30 172.16.3.4/30 172.16.3.8/30 172.16.3.12/30 172.16.3.16/30 172.16.3.20/30
2.拓扑结构的搭建
3.IP地址的配置
以R1和R8为例
R1:
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
[r1-GigabitEthernet0/0/0]q
[r1]interface LoopBack 0
[r1-LoopBack0]ip address 1.1.1.1 24
[r1-LoopBack0]interface LoopBack 1
[r1-LoopBack1]ip address 11.1.1.1 24
R8:
[r1]interface GigabitEthernet0/0/0
[r1-GigabitEthernet0/0/0]ip address 78.1.1.2 24
[r1-GigabitEthernet0/0/0]q
[r1]interface LoopBack0
[r1-LoopBack0]ip address 8.8.8.8 32
[r1-LoopBack0]interface LoopBack1
[r1-LoopBack1]ip address 88.1.1.1 24
4.静态路由的配置
R1和R2之间
[r1]ip route-static 172.16.0.1 32 12.1.1.2
[r2]ip route-static 1.1.1.1 32 12.1.1.1
R7和R8之间
[r7]ip route-static 8.8.8.8 32 78.1.1.2
[r8]ip route-static 172.16.0.6 32 78.1.1.1
5.动态路由的配置
AS2中起OSPF,以R2为例
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255
6.EBGP的配置
R1和R2之间
[r1]bgp 1
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 172.16.0.1 as-number 2
[r1-bgp]peer 172.16.0.1 connect-interface LoopBack 0
[r1-bgp]peer 172.16.0.1 ebgp-max-hop 2
[r2]bgp 666
[r2-bgp]confederation id 2
[r2-bgp]peer 1.1.1.1 as-number 1
[r2-bgp]peer 1.1.1.1 connect-interface LoopBack 0
[r2-bgp]peer 1.1.1.1 ebgp-max-hop 2
R7和R8之间
[r7]bgp 857
[r7-bgp]confederation id 2
[r7-bgp]peer 8.8.8.8 as-number 3
[r7-bgp]peer 8.8.8.8 connect-interface LoopBack 0
[r7-bgp]peer 8.8.8.8 ebgp-max-hop 2
[r8]bgp 3
[r8-bgp]router-id 3.3.3.3
[r8-bgp]peer 172.16.0.6 as-number 2
[r8-bgp]peer 172.16.0.6 connect-interface LoopBack 0
[r8-bgp]peer 172.16.0.6 ebgp-max-hop 2
AS2The configuration of the inner federation
联邦:将一个真实的大AS,逻辑的分为多个小AS;小AS的编号建议为私有编号;小AS间构建联邦内的EBGP邻居关系,可以向真实EBGP关系一样传递路由条目,但不修改属性; 对于该大AS外的其他AS,是不知道内部的小AS情况;
R2和R5之间
[r2]bgp 666
[r2-bgp]confederation id 2
[r2-bgp]confederation peer-as 857
[r2-bgp]peer 172.16.0.4 as-number 867
[r2-bgp]peer 172.16.0.4 connect-interface LoopBack 0
[r2-bgp]peer 172.16.0.4 ebgp-max-hop 2
[r5]bgp 857
[r5-bgp]confederation id 2
[r5-bgp]confederation peer-as 666
[r5-bgp]peer 172.16.0.1 as-number 666
[r5-bgp]peer 172.16.0.1 connect-interface LoopBack 0
[r5-bgp]peer 172.16.0.1 ebgp-max-hop 2
R4和R7之间
[r4]bgp 666
[r4-bgp]confederation id 2
[r4-bgp]confederation peer-as 857
[r4-bgp]peer 172.16.0.6 as-number 857
[r4-bgp]peer 172.16.0.6 connect-interface LoopBack 0
[r4-bgp]peer 172.16.0.6 ebgp-max-hop 2
[r7]bgp 857
[r7-bgp]confederation id 2
[r7-bgp]confederation peer-as 666
[r7-bgp]peer 172.16.0.3 as-number 666
[r7-bgp]peer 172.16.0.3 connect-interface LoopBack 0
[r7-bgp]peer 172.16.0.3 ebgp-max-hop 2
7.IBGP的配置
R2、R3、R4之间
[r2]bgp 666
[r2-bgp]peer 172.16.0.2 as-number 666
[r2-bgp]peer 172.16.0.2 connect-interface LoopBack 0
[r3]bgp 666
[r3-bgp]confederation id 2
[r3-bgp]peer 172.16.0.1 as-number 666
[r3-bgp]peer 172.16.0.1 connect-interface LoopBack 0
[r3-bgp]peer 172.16.0.1 next-hop-local
[r3-bgp]peer 172.16.0.3 as-number 666
[r3-bgp]peer 172.16.0.3 connect-interface LoopBack 0
[r3-bgp]peer 172.16.0.3 next-hop-local
[r4]bgp 666
[r4-bgp]peer 172.16.0.2 as-number 666
[r4-bgp]peer 172.16.0.2 connect-interface LoopBack 0
[r4-bgp]peer 172.16.0.2 next-hop-local
R5、R6、R7之间
[r5]bgp 857
[r5-bgp]peer 172.16.0.5 as-number 857
[r5-bgp]peer 172.16.0.5 connect-interface LoopBack 0
[r5-bgp]peer 172.16.0.5 next-hop-local
[r6]bgp 857
[r6-bgp]confederation id 2
[r6-bgp]peer 172.16.0.4 as-number 857
[r6-bgp]peer 172.16.0.4 connect-interface LoopBack 0
[r6-bgp]peer 172.16.0.4 next-hop-local
[r6-bgp]peer 172.16.0.6 as-number 857
[r6-bgp]peer 172.16.0.6 connect-interface LoopBack 0
[r6-bgp]peer 172.16.0.6 next-hop-local
[r7]bgp 857
[r7-bgp]peer 172.16.0.5 as-number 857
[r7-bgp]peer 172.16.0.5 connect-interface LoopBack 0
[r7-bgp]peer 172.16.0.5 next-hop-local
8.路由反射器的配置,宣告
将R3Set as reflector,R4为客户端
[r2-bgp]peer 172.12.0.3 reflect-client
将R6Set as reflector,R7为客户端
[r6-bgp]peer 172.16.0.6 reflect-client
将R1和R8上的环回1进行宣告
[r1]bgp 1
[r1-bgp]network 11.1.1.0 24
[r8]bgp 3
[r8-bgp]network 88.1.1.0 24
9.Republish and route optimization
在R2和R7上进行重发布
[r2-bgp]import-route ospf 1
[r7-bgp]import-route ospf 1
R1和R8的路由表
After routing summary
[r2-bgp]aggregate 172.16.0.0 16 detail-suppressed
[r7-bgp]aggregate 172.16.0.0 16 detail-suppressed
R1和R8的路由表
10.测试
R1的环回pingR8的环回
边栏推荐
- 软件测试的需求人才越来越多,为什么大家还是不太愿意走软件测试的道路?
- Google notes cut hidden plug-in installation impression
- TikTok平台的两种账户有什么区别?
- C language entry combat (13): decimal number to binary
- 51单片机外设篇:ADC
- 洛谷小游戏大全(用洛谷的人都得知道)
- Packaging and deployment of go projects
- Timing task library in the language use Cron, rounding
- Cyber Security Learning - Intranet Penetration 4
- 淘系资深工程师整理的300+项学习资源清单(2021最新版)
猜你喜欢
About the directory structure of the web application
swinIR论文阅读笔记
在腾讯做外包测试的那些日子.....
51单片机外设篇:点阵式LCD
【解决】RESP.app 连接不上redis
【合集- 行业解决方案】如何搭建高性能的数据加速与数据编排平台
MySQL implements sorting according to custom (specified order)
pytorch基本操作:使用神经网络进行分类任务
程序员写PPT的小技巧
navicat connects to MySQL and reports an error: 1045 - Access denied for user 'root'@'localhost' (using password YES)
随机推荐
The Go language learning notes - dealing with timeout - use the language from scratch from Context
字节面试题:如何保证缓存和数据库的一致性
Polar Parametrization for Vision-based Surround-View 3D Detection 论文笔记
MySql copies data from one table to another table
51单片机外设篇:DS18B20
洛谷小游戏大全(用洛谷的人都得知道)
C竞赛训练
Three methods of importing sql files in MySQL
classSR论文阅读笔记
Redis-集群模式(主从复制模式,哨兵模式,集群化模式)
Install and use Google Chrome
Stress testing and performance analysis of node projects
聪明人的游戏提高篇:第三章第二课:“桐桐数”(number)
Say good woman programmers do testing have an advantage?More than a dozen interview, abuse of cry ~ ~ by the interviewer
家用 NAS 服务器(4)| MergerFS和SnapRaid数据定时备份
Meta公司内部项目-RaptorX:将Presto性能提升10倍
BGP实验(路由反射器,联邦,路由优化)
MySQL implements sorting according to custom (specified order)
Browser onload event
nacos注册中心