当前位置:网站首页>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
测试
实验结束
边栏推荐
- Timing task library in the language use Cron, rounding
- leetcode一步解决链表反转问题
- oracle 远程连接数据库
- An advanced method for solving palindromes
- OAuth 授权协议 | 都云原生时代了,我们应该多懂一点OAuth ?
- 分布式文件存储服务器之Minio对象存储技术参考指南
- Thread Basics (1)
- A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
- Use the browser's local storage to realize the function of remembering the user name
- 18 years of programmer career, read more than 200 programming books, pick out some essence to share with you
猜你喜欢
路由规划中级篇
Introduction to Grid Layout
Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)
测试技术之APP蓝牙连接测试
OAuth 授权协议 | 都云原生时代了,我们应该多懂一点OAuth ?
Use the browser's local storage to realize the function of remembering the user name
测试环境要多少?从成本与效率说起
The advantages of making web3d dynamic product display
51 MCU Peripherals: Infrared Communication
6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略
随机推荐
【漫画】2021满分程序员行为对照表(最新版)
ATM系统
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays
C 竞赛——捕鱼
Polar Parametrization for Vision-based Surround-View 3D Detection 论文笔记
【解决】RESP.app 连接不上redis
淘系资深工程师整理的300+项学习资源清单(2021最新版)
nacos registry
国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
Redis集群模式
TikTok平台的两种账户有什么区别?
HCIP第十七天
18 years of programmer career, read more than 200 programming books, pick out some essence to share with you
About the directory structure of the web application
分布式文件存储服务器之Minio对象存储技术参考指南
国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐
Redis-cluster mode (master-slave replication mode, sentinel mode, clustering mode)
金山云团队分享 | 5000字读懂Presto如何与Alluxio搭配
Redis database
goroutine (coroutine) in go language