当前位置:网站首页>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 
测试

实验结束
边栏推荐
- flex布局(弹性布局)
- Mysql数据库 | 基于Docker搭建Mysql-8.0以上版本主从实例实战
- Redis(十一) - 异步优化秒杀
- 回文串求解的进阶方法
- 程序员最重要的能力是什么?
- Automated operation and maintenance tools - ansible, overview, installation, module introduction
- OAuth 授权协议 | 都云原生时代了,我们应该多懂一点OAuth ?
- H5 access payment process - WeChat payment & Alipay payment
- Say good woman programmers do testing have an advantage?More than a dozen interview, abuse of cry ~ ~ by the interviewer
- C竞赛训练
猜你喜欢
随机推荐
[OpenCV from entry to practice] image processing technology [pixel] (the most detailed in the whole network)
CPU使用率和负载区别及分析
Thread Basics (1)
[PSQL] window function, GROUPING operator
leetcode一步解决链表反转问题
VMTK环境配置记录
Automated operation and maintenance tools - ansible, overview, installation, module introduction
Luogu mini game Daquan (everyone who uses Luogu must know)
Home NAS server (4) | MergerFS and SnapRaid data backup
leetcode-338.比特位计数
保证家里和企业中的WIFI安全-附AC与AP组网实验
如何进行并发数计算(稳定性测试和压力测试)?
Alluxio为Presto赋能跨云的自助服务能力
Differences between i++ and ++i in loops in C language
Timing task library in the language use Cron, rounding
A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)
双重for循环案例(用js打印九九乘法表)
Say good woman programmers do testing have an advantage?More than a dozen interview, abuse of cry ~ ~ by the interviewer
Shuttle + Alluxio 加速内存Shuffle起飞
网安学习-内网渗透4









