当前位置:网站首页>BGP experiment
BGP experiment
2022-06-23 05:13:00 【Empty and white】

One 、 To configure IP
Two 、 To configure AS2 Of OSPF
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]a 0
[r2-ospf-1-area-0.0.0.0]net 23.1.1.1 0.0.0.255
[r2-ospf-1-area-0.0.0.0]net 2.2.2.2 0.0.0.0
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]a 0
[r3-ospf-1-area-0.0.0.0]net 23.1.1.2 0.0.0.255
[r3-ospf-1-area-0.0.0.0]net 3.3.3.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0]net 34.1.1.1 0.0.0.255
[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]a 0
[r4-ospf-1-area-0.0.0.0]net 34.1.1.2 0.0.0.255
[r4-ospf-1-area-0.0.0.0]net 4.4.4.4 0.0.0.0
3、 ... and 、 To configure AS1 AS2 between BGP
[r1]bgp 1
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 12.1.1.2 as
[r1-bgp]peer 12.1.1.2 as-number 2
[r2]bgp 2
[r2-bgp]router-id 2.2.2.2
[r2-bgp]peer 12.1.1.1 as-number 1


Four 、 To configure IGP
1、R2,R3,R4
[r3]bgp 2
[r3-bgp]router-id 3.3.3.3
[r3-bgp]peer 2.2.2.2 as-number 2
[r3-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[r3-bgp]peer 4.4.4.4 as-number 2
[r3-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r4]bgp 2
[r4-bgp]router-id 4.4.4.4
[r4-bgp]peer 3.3.3.3 as-n
[r4-bgp]peer 3.3.3.3 as-number 2
[r4-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[r2]bgp 2
[r2-bgp]router-id 2.2.2.2
[r2-bgp]peer 3.3.3.3 as-number 2
[r2-bgp]peer 3.3.3.3 connect-interface LoopBack 0
5、 ... and 、R4 And R5 Jianlin
1、 Distribution route
[r5]ip route-static 4.4.4.0 24 45.1.1.1
[r5]ip route-static 4.4.4.0 24 54.1.1.1
[r4]ip route-static 5.5.5.5 24 45.1.1.2
[r4]ip route-static 5.5.5.5 24 54.1.1.2
2、 To configure BGP
[r5]bgp 3
[r5-bgp]router-id 5.5.5.5
[r5-bgp]peer 4.4.4.4 as-number 2
[r5-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r5-bgp]peer 4.4.4.4 ebgp-max-hop 2
[r4]bgp 2
[r4-bgp]peer 5.5.5.5 as-number 3
[r4-bgp]peer 5.5.5.5 connect-interface LoopBack 0
[r4-bgp]peer 5.5.5.5 ebgp-max-hop 2


6、 ... and 、 Announce routing
[r1]bgp 1
[r1-bgp]net 192.168.1.0 24

[r2]bgp 2
[r2-bgp]peer 3.3.3.3 next-hop-local
R2 And R4 Jianlin
[r4]bgp 2
[r4-bgp]peer 2.2.2.2 as-number 2
[r4-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[r2]bgp 2
[r2-bgp]peer 4.4.4.4 as-number 2
[r2-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r2-bgp]peer 4.4.4.4 next-hop-local

[r4-bgp]peer 3.3.3.3 next-hop-local
[r4-bgp]peer 2.2.2.2 next-hop-local
[r3-bgp]peer 2.2.2.2 next-hop-local
[r5-bgp]net 192.168.5.0 24
[r4-bgp]net 192.168.4.0 24
[r3-bgp]net 192.168.3.0 24
[r2-bgp]net 192.168.2.0 24


边栏推荐
- Cookie-Session讲解
- Object structure diagram, which can quickly illustrate the internal structure of an object
- 【C语言】关键字
- Arduino火焰传感器(含代码)
- 396. mine site construction
- Function declaration and call of 17 generator
- vmware网络连接出错Unit network.service not found
- HCIP 重发布实验
- SwiftUI 2.0 课程笔记 Chapter 5
- 超越芯片和AI,硬科技资本为什么越来越“硬核”?
猜你喜欢

Architecture à trois niveaux MVC
![[MAC] there is no source option in security and privacy](/img/ec/6a7bc7689346378c6ed0dc644f709a.png)
[MAC] there is no source option in security and privacy

当SBAS遇上rtklib

开源生态|超实用开源License基础知识扫盲帖(下)

Metadata management Apache Atlas Compilation (embedded) deployment and various error records encountered

直接插入排序——【常见排序法(1/8)】

HCIP 交换机实验

vmware网络连接出错Unit network.service not found

teqc进行GNSS数据质量分析时生成的s文件介绍

Hard core, become a high-quality tester: learn to communicate with products
随机推荐
滑块视图的实现
微信小程序:老年祝福短视频
HCIP 交换机实验
985 test engineer is hanged. Who is more important in terms of education and experience?
Small problems in the spoole framework for TCP communication in PHP
使用teqcplot对teqc 质量分析结果进行可视化展示
centos7部署docker,安装mysql
In unity, how to read and write a scriptableobject object in editor and runtime
MVC three-tier architecture
大环境不好难找工作?三面阿里,幸好做足了准备,已拿offer
"Wechat applet - Basics" takes you to understand the routing system of the applet (2)
MVC三层架构
超越芯片和AI,硬科技资本为什么越来越“硬核”?
servlet自学笔记
【Mac】安全性与隐私中没有任何来源选项
JSP入门级笔记
传统意义上的互联网式的平台或将不复存在,一个融合的产业特质和互联网特质的全新产业
UI automation positioning edge -xpath actual combat
Chrome debugging tips
Cookie session explanation