当前位置:网站首页>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
边栏推荐
- Day 7 of learning C language
- Nutrecipes developed based on arkui ETS
- Apple cut its price by 600 yuan, which was almost a devastating blow to the collapse of its domestic flagship mobile phone
- 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
- Explanation of binary tree
- 基于ArkUI eTS开发的坚果笑话(NutJoke)
- Intel, squeezed by Samsung and TSMC, finally put down its body to customize chip technology for Chinese chips
- [leetcode -- the first day of introduction to programming ability] basic data type [statistics of odd numbers within the range / average wage after removing the minimum wage and maximum wage)
- 对 int 变量赋值的操作是原子的吗?
- 基于restful页面数据交互
猜你喜欢

Antdesign a-modal user-defined instruction realizes dragging and zooming in and out

MySQL transaction

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

Flex layout (actual Xiaomi official website)

How to deploy yolov6 with tensorrt

CUDA programming-04: CUDA memory model

Five kinds of 3D attention/transformer finishing (a-scn, point attention, CAA, offset attention, point transformer)

ctfshow 终极考核

C# 窗体应用常用基础控件讲解(适合萌新)

ArcGIS pro2.8 deep learning environment configuration based on rtx30 graphics card
随机推荐
How to deploy yolov6 with tensorrt
QDoubleValidator不生效问题解决办法
5g failed to stimulate the development of the industry, which disappointed not only operators, but also mobile phone enterprises
Easy language programming: allow the screen reading software to obtain the text of the label control
pollFirst(),pollLast(),peekFirst(),peekLast()
Music experience ceiling! Emotional design details of 14 Netease cloud music
D3.v3.js data visualization -- pictures and tips of force oriented diagram
一些实用、常用、效率越来越高的 Kubernetes 别名
Storage and computing engine
BEVFormer: Learning Bird’s-Eye-View Representation from Multi-Camera Images via Spatiotemporal Trans
[C language - zero foundation lesson 6] input and output sentence format and compound sentence
Apple cut its price by 600 yuan, which was almost a devastating blow to the collapse of its domestic flagship mobile phone
QT uses SQLite to open multiple database files at the same time
pollFirst(),pollLast(),peekFirst(),peekLast()
The third day of learning C language
基于ArkUI eTS开发的坚果笑话(NutJoke)
坚果天气
[leetcode -- the first day of introduction to programming ability] basic data type [statistics of odd numbers within the range / average wage after removing the minimum wage and maximum wage)
How to register code cloud account
Day 8 of learning C language