当前位置:网站首页>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
边栏推荐
- Force buckle 540 A single element in an ordered array
- The original author is out! Faker. JS has been controlled by the community..
- 蓝湖的安装及使用
- SQL: common SQL commands
- Document declaration and character encoding
- How about Ping An lifetime cancer insurance?
- Go language introduction
- [untitled]
- 接口调试工具模拟Post上传文件——ApiPost
- The second game of the 12th provincial single chip microcomputer competition of the Blue Bridge Cup
猜你喜欢
蓝桥杯单片机第六届温度记录器
【力扣刷题】15.三数之和(双指针);17.电话号码的字母组合(递归回溯)
C language: examples of logical operation and judgment selection structure
How to model noise data? Hong Kong Baptist University's latest review paper on "label noise representation learning" comprehensively expounds the data, objective function and optimization strategy of
MD5 of Oracle
[live broadcast review] the first 8 live broadcasts of battle code Pioneer have come to a perfect end. Please look forward to the next one!
Use a mask to restrict the input of the qlineedit control
The 11th Blue Bridge Cup single chip microcomputer provincial competition
The second game of the 11th provincial single chip microcomputer competition of the Blue Bridge Cup
The original author is out! Faker. JS has been controlled by the community..
随机推荐
Use of go package
【IBDFE】基于IBDFE的频域均衡matlab仿真
[Li Kou brush questions] 15 Sum of three numbers (double pointer); 17. Letter combination of phone number (recursive backtracking)
Monkey test
Get started with Aurora 8b/10b IP core in one day (5) -- learn from the official routine of framing interface
蓝桥杯单片机省赛第五届
go 变量与常量
Is the product of cancer prevention medical insurance safe?
WPViewPDF Delphi 和 .NET 的 PDF 查看组件
Opencv learning example code 3.2.4 LUT
蓝桥杯单片机省赛第七届
0基础如何学习自动化测试?按照这7步一步一步来学习就成功了
SQL: common SQL commands
Wechat applet - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
【直播回顾】战码先锋首期8节直播完美落幕,下期敬请期待!
Delete the code you wrote? Sentenced to 10 months!
Go function
First acquaintance with P4 language
L'avènement de l'ère 5G, une brève discussion sur la vie passée et présente des communications mobiles
藍湖的安裝及使用