当前位置:网站首页>HCIP BGP综合实验 建立对等体、路由反射器、联邦、路由宣告及聚合
HCIP BGP综合实验 建立对等体、路由反射器、联邦、路由宣告及聚合
2022-08-02 05:17:00 【less than _ermi】
实验内容:

实验过程:
拓扑

各个路由器IP的配置
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip a 12.1.1.1 24
[r1-GigabitEthernet0/0/0]int lo0
[r1-LoopBack0]ip a 10.10.10.10 24
在AS2中使用oSPF协议
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]a 0
[r2-ospf-1-area-0.0.0.0]network 172.16.0.1 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 172.16.112.1 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 172.16.192.1 0.0.0.0
对所有路由启用BGP协议,并进行对等体建立
R1
[r1]bgp 1
[r1-bgp]route-select
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 12.1.1.2 as 2
R2
[r2]bgp 64512
[r2-bgp]route-select
[r2-bgp]router-id 2.2.2.2
[r2-bgp]confederation id 2
[r2-bgp]confederation peer-as 64513
[r2-bgp]peer 12.1.1.1 as 1
[r2-bgp]peer 172.16.160.1 as 64512
[r2-bgp]peer 172.16.160.1 connect-interface LoopBack 0
[r2-bgp]peer 172.16.80.1 as 64513
[r2-bgp]peer 172.16.80.1 connect-interface LoopBack 0
[r2-bgp]peer 172.16.80.1 ebgp-max-hop 2
[r2-bgp]peer 172.16.160.1 next-hop-local
[r2-bgp]peer 172.16.80.1 next-hop-local
R3
[r3]bgp 64512
[r3-bgp]router-id 3.3.3.3
[r3-bgp]confederation id 2
[r3-bgp]peer 172.16.144.1 as 64512
[r3-bgp]peer 172.16.144.1 connect-interface LoopBack 0
[r3-bgp]peer 172.16.192.1 as 64512
[r3-bgp]peer 172.16.192.1 connect-interface LoopBack 0
R4
[r4]bgp 64512
[r4-bgp]router-id 4.4.4.4
[r4-bgp]confederation id 2
[r4-bgp]confederation peer-as 64513
[r4-bgp]peer 172.16.160.1 as 64512
[r4-bgp]peer 172.16.160.1 connect-interface LoopBack 0
[r4-bgp]peer 172.16.96.1 as 64513
[r4-bgp]peer 172.16.96.1 connect-interface LoopBack 0
[r4-bgp]peer 172.16.96.1 ebgp-max-hop 2
R5
[r5]bgp 64513
[r5-bgp]router-id 5.5.5.5
[r5-bgp]confederation id 2
[r5-bgp]confederation peer-as 64512
[r5-bgp]peer 172.16.192.1 as 64512
[r5-bgp]peer 172.16.192.1 connect-interface LoopBack 0
[r5-bgp]peer 172.16.192.1 ebgp-max-hop 2
[r5-bgp]peer 172.16.48.1 as 64513
[r5-bgp]peer 172.16.48.1 connect-interface LoopBack 0
R6
[r6]bgp 64513
[r6-bgp]router-id 6.6.6.6
[r6-bgp]confederation id 2
[r6-bgp]peer 172.16.80.1 as 64513
[r6-bgp]peer 172.16.80.1 connect-interface LoopBack 0
[r6-bgp]peer 172.16.96.1 as 64513
[r6-bgp]peer 172.16.96.1 connect-interface LoopBack 0
R7
[r7]bgp 64513
[r7-bgp]router-id 7.7.7.7
[r7-bgp]confederation id 2
[r7-bgp]confederation peer-as 64512
[r7-bgp]peer 172.16.48.1 as 64513
[r7-bgp]peer 172.16.48.1 connect-interface LoopBack 0
[r7-bgp]peer 172.16.144.1 as 64512
[r7-bgp]peer 172.16.144.1 connect-interface LoopBack 0
[r7-bgp]peer 172.16.144.1 ebgp-max-hop 2
[r7-bgp]peer 78.1.1.1 as 3
[r7-bgp]peer 172.16.48.1 next-hop-local
[r7-bgp]peer 172.16.144.1 next-hop-local
R8
[r8]bgp 3
[r8-bgp]router-id 8.8.8.8
[r8-bgp]peer 78.1.1.2 as 2
R1\R8\AS2宣告路由信息
R1
[r1]bgp 1
[r1-bgp]network 10.10.10.10 24
R8
[r8]bgp 3
[r8-bgp]network 80.80.80.80 24
R2
[r2]bgp 64512
[r2-bgp]import-route ospf 1
R7
[r7]bgp 64513
[r7-bgp]import-route ospf 1破除IBGP之间的水平分割,配置路由反射器
R3
[r3]bgp 64512
[r3-bgp]peer 172.16.192.1 reflect-client
R6
[r6]bgp 64513
[r6-bgp]peer 172.16.96.1 reflect-client路由聚合在R2\R7上配置
[r2]bgp 64512
[r2-bgp]aggregate 172.16.0.0 16 detail-suppressed
[r7]bgp 64513
[r7-bgp]aggregate 172.16.0.0 16 detail-suppressed 
测试

实验结束
边栏推荐
- leetcode 204. Count Primes 计数质数 (Easy)
- 分布式文件存储服务器之Minio对象存储技术参考指南
- 机器学习——支持向量机原理
- C语言中i++和++i在循环中的差异性
- 洛谷小游戏大全(用洛谷的人都得知道)
- 目标检测重要概念——IOU、感受野、空洞卷积、mAP
- Home NAS server (4) | MergerFS and SnapRaid data backup
- LeetCode brush topic series - 787 K station transfer within the cheapest flight
- pytorch基本操作:使用神经网络进行分类任务
- 如何进行并发数计算(稳定性测试和压力测试)?
猜你喜欢

The advantages of making web3d dynamic product display

线程基础(一)

leetcode每天5题-Day04

对node工程进行压力测试与性能分析

OAuth 授权协议 | 都云原生时代了,我们应该多懂一点OAuth ?

The virtual reality real estate display system foresees the future decoration effect in advance

BGP实验(路由反射器,联邦,路由优化)

Different ways of shell scripting

leetcode一步解决链表反转问题

leetcode一步解决链表合并问题
随机推荐
上海交大牵手淘宝成立媒体计算实验室:推动视频超分等关键技术发展
金山云团队分享 | 5000字读懂Presto如何与Alluxio搭配
Block elements, inline elements (
elements, span elements)Automated operation and maintenance tools - ansible, overview, installation, module introduction
The Go language learning notes - dealing with timeout - use the language from scratch from Context
18 years of programmer career, read more than 200 programming books, pick out some essence to share with you
25K测试老鸟6年经验的面试心得,四种公司、四种问题…
nacos注册中心
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays
What is the most important ability of a programmer?
51单片机外设篇:DS18B20
PSQL function, predicate, CASE expression and set operations
How to perform concurrent calculation (stability test and stress test)?
6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略
在腾讯做外包测试的那些日子.....
提高软件测试能力的方法有哪些?看完这篇文章让你提升一个档次
无代码生产新模式探索
PIL与numpy格式之间的转换
goroutine (coroutine) in go language
About the directory structure of the web application