当前位置:网站首页>BGP experiment the next day
BGP experiment the next day
2022-07-02 04:03:00 【Jeff657】
The experimental requirements :
1.AS1 There are two loops , One address is 192.168.1.0/24, This address cannot be declared in any agreement ;AS3 There are two loops , One address is 192.168.2.0/24, This address cannot be declared in any agreement , Finally, it is required that the two loops can communicate with each other ;
2. Whole AS2 Of ip The address is 172.16.0.0, Please make a reasonable division ;
3.AS Backbone link between IP The address can be customized at will ;
4. Use BGP The protocol allows the loopback of all devices in the whole network to access each other ;
5. Reduce the number of entries , Avoid loop problems .
Experimental Topology :
Experimental configuration :
IP The address is configured as shown in the figure below :
The specific configuration commands are as follows :
R2:
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 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.32.1 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 172.16.64.1 0.0.0.0
R3:
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 172.16.1.1 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 172.16.64.2 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 172.16.96.1 0.0.0.0
R4:
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 172.16.2.1 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 172.16.96.2 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 172.16.224.1 0.0.0.0
R5:
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 172.16.128.1 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 172.16.32.2 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 172.16.160.1 0.0.0.0
R6:
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]area 0
[R6-ospf-1-area-0.0.0.0]network 172.16.129.1 0.0.0.0
[R6-ospf-1-area-0.0.0.0]network 172.16.160.2 0.0.0.0
[R6-ospf-1-area-0.0.0.0]network 172.16.192.1 0.0.0.0
R7:
[R7]ospf 1 router-id 7.7.7.7
[R7-ospf-1]area 0
[R7-ospf-1-area-0.0.0.0]network 172.16.192.2 0.0.0.0
[R7-ospf-1-area-0.0.0.0]network 172.16.224.2 0.0.0.0
[R7-ospf-1-area-0.0.0.0]network 172.16.128.2 0.0.0.0
start-up BGP agreement :
R1:
[R1]bgp 1
[R1-bgp]router-id 1.1.1.1
[R1-bgp]peer 12.1.1.2 as-number 2
R2:
[R2]bgp 64512
[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-number 1
[R2-bgp]peer 172.16.1.1 as-number 64512
[R2-bgp]peer 172.16.1.1 connect-interface LoopBack 0
[R2-bgp]peer 172.16.128.1 as-number 64513
[R2-bgp]peer 172.16.128.1 connect-interface LoopBack 0
[R2-bgp]peer 172.16.128.1 ebgp-max-hop 2
R3:
[R3]bgp 64512
[R3-bgp]router-id 3.3.3.3
[R3-bgp]confederation id 2
[R3-bgp]peer 172.16.0.1 as-number 64512
[R3-bgp]peer 172.16.0.1 connect-interface LoopBack 0
[R3-bgp]peer 172.16.2.1 as-number 64512
[R3-bgp]peer 172.16.2.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.1.1 as-number 64512
[R4-bgp]peer 172.16.1.1 connect-interface LoopBack 0
[R4-bgp]peer 172.16.130.1 as-number 64513
[R4-bgp]peer 172.16.130.1 connect-interface LoopBack 0
[R4-bgp]peer 172.16.130.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.0.1 as-number 64512
[R5-bgp]peer 172.16.0.1 connect-interface LoopBack 0
[R5-bgp]peer 172.16.0.1 ebgp-max-hop 2
[R5-bgp]peer 172.16.129.1 as-number 64512
[R5-bgp]peer 172.16.129.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.128.1 as-number 64513
[R6-bgp]peer 172.16.128.1 connect-interface LoopBack 0
[R6-bgp]peer 172.16.130.1 as-number 64513
[R6-bgp]peer 172.16.130.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.129.1 as-number 64513
[R7-bgp]peer 172.16.129.1 connect-interface LoopBack 0
[R7-bgp]peer 172.16.2.1 as-number 64512
[R7-bgp]peer 172.16.2.1 connect-interface LoopBack 0
[R7-bgp]peer 172.16.2.1 ebgp-max-hop 2
[R7-bgp]peer 23.1.1.2 as-number 3
R8:
[R8]bgp 3
[R8-bgp]router-id 8.8.8.8
[R8-bgp]peer 23.1.1.1 as-number 2
Announce segment :
R1 and R2 On :
R1]bgp 1
[R1-bgp]network 10.1.1.0 24
[R2]bgp 64512
[R2-bgp]peer 172.16.2.1 next-hop-local
[R2-bgp]peer 172.17.4.1 next-hop-local
[R2-bgp]peer 172.16.4.1 next-hop-local
R3 and R6 Open reflector :
R3:
[R3]bgp 64512
[R3-bgp]peer 172.16.3.1 reflect-client
R6:
[R6]bgp 64513
[R6-bgp]peer 172.16.4.1 reflect-client
R7 and R8:
[R7]bgp 64513
[R7-bgp]peer 172.16.3.1 next-hop-local
[R7-bgp]peer 172.16.5.1 next-hop-local
[R8]bgp 3
[R8-bgp]network 10.1.2.0 24
[R2]ip route-static 172.16.0.0 21 NULL 0
[R2]bgp 64512
[R2-bgp]network 172.16.0.0 21
[R7]ip route-static 172.16.0.0 21 NULL 0
[R7]bgp 64513
[R7-bgp]network 172.16.0.0 21
In order to make 192.168.1.1 and 192.168.2.1 Can communicate , To use tunnel, Write a static route :
Use GRE:
[R1]int Tunnel 0/0/0
[R1-Tunnel0/0/0]ip address 10.1.3.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre
[R1-Tunnel0/0/0]source 10.1.1.1
[R1-Tunnel0/0/0]destination 10.1.2.1
[R8]int Tunnel 0/0/0
[R8-Tunnel0/0/0]ip address 10.1.3.2 24
[R8-Tunnel0/0/0]tunnel-protocol gre
[R8-Tunnel0/0/0]source 10.1.2.1
[R8-Tunnel0/0/0]destination 10.1.1.1
[R8]ip route-static 192.168.1.0 24 Tunnel 0/0/0
[R8]ip route-static 192.168.2.0 24 10.1.3.2
边栏推荐
- u本位合约爆仓清算解决方案建议
- The original author is out! Faker. JS has been controlled by the community..
- 近段时间天气暴热,所以采集北上广深去年天气数据,制作可视化图看下
- 跳出舒适区,5年点工转型自动化测试工程师,我只用了3个月时间
- [Li Kou brush questions] 15 Sum of three numbers (double pointer); 17. Letter combination of phone number (recursive backtracking)
- Welcome the winter vacation multi school league game 2 partial solution (B, C, D, F, G, H)
- [source code analysis] NVIDIA hugectr, GPU version parameter server - (1)
- 【人员密度检测】基于形态学处理和GRNN网络的人员密度检测matlab仿真
- SQL:常用的 SQL 命令
- [tips] use Matlab GUI to read files in dialog mode
猜你喜欢

Demonstration description of integrated base scheme

【直播回顾】战码先锋首期8节直播完美落幕,下期敬请期待!
![[personal notes] PHP common functions - custom functions](/img/3d/d50622e3ddb08f654f30063e8226ac.jpg)
[personal notes] PHP common functions - custom functions

Fourier series

Déchirure à la main - tri

How much is the tuition fee of SCM training class? How long is the study time?

SQL Yiwen get window function

JVM knowledge points

Set vscode. When double clicking, the selected string includes the $symbol - convenient for PHP operation

Blue Bridge Cup single chip microcomputer sixth temperature recorder
随机推荐
Basic operations of MySQL database (based on tables)
Go语言介绍
Oracle common SQL
手撕——排序
C language: examples of logical operation and judgment selection structure
A thorough understanding of the development of scorecards - the determination of Y (Vintage analysis, rolling rate analysis, etc.)
软件测试人的第一个实战项目:web端(视频教程+文档+用例库)
How to solve the problem that objects cannot be deleted in Editor Mode
Déchirure à la main - tri
The original author is out! Faker. JS has been controlled by the community..
[personal notes] PHP common functions - custom functions
Where can I buy cancer insurance? Which product is better?
Uni app - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
SQL:常用的 SQL 命令
Vite: scaffold assembly
《西线无战事》我们才刚开始热爱生活,却不得不对一切开炮
集成底座方案演示说明
Cloud service selection of enterprises: comparative analysis of SaaS, PAAS and IAAs
初识P4语言
"No war on the Western Front" we just began to love life, but we had to shoot at everything