当前位置:网站首页>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
边栏推荐
- Suggestions on settlement solution of u standard contract position explosion
- Go variables and constants
- 向数据库中存入数组数据,代码出错怎么解决
- Basic operations of MySQL database (based on tables)
- Blue Bridge Cup SCM digital tube skills
- Failed to upgrade schema, error: “file does not exist
- Introduction to vmware workstation and vSphere
- How to solve the problem that objects cannot be deleted in Editor Mode
- Delete the code you wrote? Sentenced to 10 months!
- 【力扣刷题】15.三数之和(双指针);17.电话号码的字母组合(递归回溯)
猜你喜欢

First acquaintance with string+ simple usage (II)

Introduction to vmware workstation and vSphere

2022-07-01:某公司年会上,大家要玩一食发奖金游戏,一共有n个员工, 每个员工都有建设积分和捣乱积分, 他们需要排成一队,在队伍最前面的一定是老板,老板也有建设积分和捣乱积分, 排好队后,所有

Target free or target specific: a simple and effective zero sample position detection comparative learning method
![[personnel density detection] matlab simulation of personnel density detection based on morphological processing and GRNN network](/img/11/4a8b52603e6e14a1ed6da1264dee57.png)
[personnel density detection] matlab simulation of personnel density detection based on morphological processing and GRNN network

文档声明与字符编码

Sword finger offer II 006 Sort the sum of two numbers in the array

跳出舒适区,5年点工转型自动化测试工程师,我只用了3个月时间

蓝桥杯单片机省赛第八届

Wpviewpdf Delphi and Net PDF viewing component
随机推荐
Didi open source Delta: AI developers can easily train natural language models
go 变量与常量
The second game of the 11th provincial single chip microcomputer competition of the Blue Bridge Cup
[personal notes] PHP common functions - custom functions
接口调试工具模拟Post上传文件——ApiPost
Homework in Chapter 3 of slam course of dark blue vision -- derivative application of T6 common functions
Uni app - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
Use of go package
Realizing deep learning framework from zero -- Introduction to neural network
Go language introduction
Fourier series
Li Kou interview question 02.08 Loop detection
go 语言命名规范
0 foundation how to learn automated testing? Follow these seven steps step by step and you will succeed
The 5th Blue Bridge Cup single chip microcomputer provincial competition
[personnel density detection] matlab simulation of personnel density detection based on morphological processing and GRNN network
Wechat applet - realize the countdown of 60 seconds to obtain the mobile verification code (mobile number + verification code login function)
Sword finger offer II 006 Sort the sum of two numbers in the array
Microsoft Research Institute's new book "Fundamentals of data science", 479 Pages pdf
MD5 of Oracle