当前位置:网站首页>BGP federal experiment
BGP federal experiment
2022-07-27 09:21:00 【Stay-true】
One 、 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 in , 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 ,
As1 The other loopback of is 10.0.0.0/24,AS3 The other loopback of is 11.0.0.0/242,
2、 Whole AS2 Of IP The address is 172.16.0.0/16, Please divide reasonably
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 routing entries , Avoid loop problems
Two 、 Experimental Topology :

3、 ... and 、 Experimental configuration :
( One )、 Segment division
( Two )、 Router basic ip To configure
( 3、 ... and )、 start-up OSPF process
( Four )、 start-up BGP
1.R1
[r1]bgp 1
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 12.0.0.2 as-number 2
2.R2:
And R1 Jianlin
[r2]bgp 64512
[r2-bgp]router-id 2.2.2.2
[r2-bgp]confederation ip 2
[r2-bgp]confederation peer-as 64513 —— And R5 Establishing a federation EBGP Peer relationship
[r2-bgp]peer 12.0.0.1 as-number 1 ------- And R1 Build a neighborhood
And R3 Jianlin :R2 And R3 yes IBGP Loopback neighbor building between peer relationships
[r2-bgp]peer 172.16.3.1 as-number 64512
[r2-bgp]peer 172.16.3.1 connect-interface LoopBack 0
And R5 Jianlin :R2 And R5 Is a special Federation EBGP Jianlin
[r2-bgp]peer 172.16.5.1 as-number 64513
[r2-bgp]peer 172.16.5.1 connect-interface LoopBack 0
[r2-bgp]peer 172.16.5.1 ebgp-max-hop ————EBGp Peers need to Non direct connection and neighbor building , Then To modify manually TTL value
3.R3
And R2 Jianlin
[r3]bgp 64512
[r3-bgp]router-id 3.3.3.3
[r3-bgp]confederation id 2
[r3-bgp]peer 172.16.2.1 as 64512
And R4 Build a neighbor
[r3-bgp]peer 172.16.4.1 as-number 64512
[r3-bgp]peer 172.16.4.1 connect-interface LoopBack 0
4.R4
[r4]bgp 64512
[r4-bgp]router-id 4.4.4.4
[r4-bgp]confederation id 2
[r4-bgp]confederation peer-as 64513 Establishing a federation EBGP Peer relationship
And R3 Jianlin
[r4-bgp]peer 172.16.3.1 as-number 64512
[r4-bgp]peer 172.16.3.1 connect-interface LoopBack 0
And R7 Build a neighbor
[r4-bgp]peer 172.16.7.1 as-number 64513
[r4-bgp]peer 172.16.7.1 connect-interface LoopBack 0
[r4-bgp]peer 172.16.7.1 ebgp-max-hop
5.R5:
And R2 Jianlin
[r5]bgp 64513
[r5-bgp]router-id 5.5.5.5
[r5-bgp]confederation id 2
[r5-bgp]confederation peer-as 64512 Establishing a federation EBGP Peer relationship
[r5-bgp]peer 172.16.2.1 as-number 64512
[r5-bgp]peer 172.16.2.1 connect-interface LoopBack 0
[r5-bgp]peer 172.16.2.1 ebgp-max-hop
And R6 Build a neighbor
[r5-bgp]peer 172.16.6.1 as-number 64513
[r5-bgp]peer 172.16.6.1 connect-interface LoopBack 0
6.R6:
[r6]bgp 64513
[r6-bgp]router-id 6.6.6.6
[r6-bgp]confederation id 2
And R5 Jianlin
[r6-bgp]peer 172.16.1.5 as-number 64513
[r6-bgp]peer 172.16.1.5 connect-interface LoopBack 0
And R7 Jianlin
[r6-bgp]peer 172.16.7.1 as-number 64513
[r6-bgp]peer 172.16.7.1 connect-interface LoopBack 0
7.R7:
[r7]bgp 64513
[r7-bgp]router-id 7.7.7.7
[r7-bgp]confederation id 2
[r7-bgp]confederation peer-as 64512
And R4 Build a neighbor
[r7-bgp]peer 172.16.4.1 as
[r7-bgp]peer 172.16.4.1 as-number 64512
[r7-bgp]peer 172.16.4.1 connect-interface LoopBack 0
[r7-bgp]peer 172.16.4.1 ebgp-max-hop
And R8 Build a neighbor
[r7-bgp]peer 78.0.0.2 as 3
8.R8:
[r7-bgp]peer 78.0.0.2 as 3
( 5、 ... and )、 Publish route
1. stay R1 Release 10.0.0.0 Network segment
[r1-bgp]network 10.0.0.0 24
[r2-bgp]display bgp routing-table

here R2 Has been received R1 Published routing information , But at this time R3、R5 To receive R1 Routing information for , But it doesn't work

2. resolvent : modify R2 Change the attribute of the next hop to yourself
[r2]bgp 64512
[r2-bgp]peer 172.16.3.1 next-hop-local
[r2-bgp]peer 172.16.5.1 next-hop-local
At this point to see R3、R5 Become the best available


3. Break the union R2 And R4,R3 And R7 Of IBGP Horizontal segmentation (IBGP Anti ring mechanism : When a router from a IBGP Learn something from the peer BGP When routing , He will not be able to notify others in this route IBGP Peer relationship )
4. resolvent : Set up a routing reflector between them
(1) Set up R3:
[r3]bgp 64512
[r3-bgp]peer 172.16.2.1 reflect-client ———— Appoint R2 by R3 Reflective customers , here R3 by RR 了 .

(2) Set up R6
[r6]bgp 64513
[r6-bgp]peer 172.16.5.1 reflect-client

5. here R2 And R6、R6 And R8 It's under the Federation EBGP Peer relationship , The router between them can forward routing information to R6 and R8.


6. modify R7 Change the attribute of the next hop to yourself
[r7-bgp]peer 172.16.6.1 next-hop-local
[r7-bgp]peer 172.16.4.1 next-hop-local

At this time, the whole network can reach
( 5、 ... and )、 stay R2 Make an empty interface to the summary
边栏推荐
- As a VC, the auction house invested Web3 for the first time
- [C language _ study _ exam _ review lesson 3] overview of ASCII code and C language
- The fifth day of learning C language
- Openharmony Mengxin contribution Guide
- 645. Wrong set
- A survey of robust lidar based 3D object detection methods for autonomous driving paper notes
- [C language - zero foundation lesson 10] adventure of array Kingdom
- [C language - zero foundation lesson 14] variable scope and storage class
- ES6 new - array part
- CUDA programming-02: first knowledge of CUDA Programming
猜你喜欢

Apple cut its price by 600 yuan, which was almost a devastating blow to the collapse of its domestic flagship mobile phone

pollFirst(),pollLast(),peekFirst(),peekLast()

5g failed to stimulate the development of the industry, which disappointed not only operators, but also mobile phone enterprises

pollFirst(),pollLast(),peekFirst(),peekLast()

Linux Installation and remote connection MySQL records

ES6 new - array part

CUDA programming-01: build CUDA Programming Environment

NPM install error forced installation

Special exercises for beginners of C language to learn code for the first time

flex布局 (实战小米官网)
随机推荐
Flex layout (actual Xiaomi official website)
DNS domain name space
C# 窗体应用常用基础控件讲解(适合萌新)
What if the parameters in QT are structs or custom classes when sending signals?
The lifecycle of arkui development framework components
Software testing function testing a full set of common interview questions [function testing - zero foundation] essential 4-1
ES6 new - function part
Longest string without duplicate characters
Antdesign a-modal user-defined instruction realizes dragging and zooming in and out
[micro service ~sentinel] sentinel dashboard control panel
linux安装和远程连接mysql记录
[cloud native kubernetes practice] deploy the rainbow platform under the kubernetes cluster
500 error reporting
Special exercises for beginners of C language to learn code for the first time
Huawei machine test question: Martian computing JS
Some practical, commonly used and increasingly efficient kubernetes aliases
对 int 变量赋值的操作是原子的吗?
ArkUI开发框架组件的生命周期
Babbitt | yuan universe daily must read: Guangzhou Nansha released the "Yuan universe nine" measures, and the platform can obtain up to 200million yuan of financial support
Music experience ceiling! Emotional design details of 14 Netease cloud music