当前位置:网站首页>HCIP BGP Comprehensive Experiment Establishing peers, route reflectors, federation, route announcement and aggregation
HCIP BGP Comprehensive Experiment Establishing peers, route reflectors, federation, route announcement and aggregation
2022-08-02 06:44: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协议,and peer establishment
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-clientRoutes are aggregated inR2\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 
测试

实验结束
边栏推荐
猜你喜欢
随机推荐
软件测试在职2年跳槽4次,你还在怪老板不给你涨薪?
[OpenCV from entry to practice] image processing technology [pixel] (the most detailed in the whole network)
MySql统计函数COUNT详解
【合集- 行业解决方案】如何搭建高性能的数据加速与数据编排平台
Guarantee WIFI security in home and enterprise-with AC and AP networking experiment
反向解析dns服务器
Common functions of pytorch
Double for loop case (use js jiujiu printing multiplication table)
npm、cnpm的安装
深度学习——CNN实现MNIST手写数字的识别
6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略
Leetcode parentheses matching problem -- 32. The longest parentheses effectively
NPM ---- 安装yarn
OAuth 授权协议 | 都云原生时代了,我们应该多懂一点OAuth ?
如何优化OpenSumi终端性能?
pytorch基本操作:使用神经网络进行分类任务
关于鸿蒙系统 JS UI 框架源码的分析
What is the most important ability of a programmer?
eggjs controller层调用controller层解决方案
人工神经网络









