当前位置:网站首页>Basic configuration of BGP - establish peers and route announcements
Basic configuration of BGP - establish peers and route announcements
2022-07-29 03:56:00 【Not smart】
The experimental requirements

IGP Configuration of
Choose one first IGP The agreement guarantees AS2 Internal communication , Here the OSPF. Before that, complete all equipment IP To configure , Now I have been experienced for many days , I won't show more here .
In the face of R2、R3、R4 Conduct OSPF After the configuration , Check whether the routing table of each of them is supplemented



BGP Building peers
Here we use the loopback interface to build neighbors , So first write a static route to ensure that the loopback interface can be connected
[R1]ip route-static 2.2.2.0 24 12.1.1.2
[R2]ip route-static 1.1.1.0 24 12.1.1.1
Test with both loops

Start building neighbors ---EBGP Between
R1

[R1]bgp 1
[R1-bgp]router-id 1.1.1.1
[R1-bgp]peer 2.2.2.2 as-number 2 ( Refers to opposite end ip Address and location as Number )
[R1-bgp]peer 2.2.2.2 ebgp-max-hop 2(BGP Regulations EBGP All neighbors default BGP Data packets TTL The value is 1, This leads to the lack of hops in the loopback neighbor establishment service , So modify the skip count to enough , Set up here 2)
[R1-bgp]peer 2.2.2.2 connect-interface LoopBack 0 ( The target is the loopback interface )
R2

[R2]bgp 2
[R2-bgp]router-id 2.2.2.2
[R2-bgp]peer 1.1.1.1 as-number 1
[R2-bgp]peer 1.1.1.1 ebgp-max-hop 2
[R2-bgp]peer 1.1.1.1 connect-interface LoopBack 0
After completion, you can see TCP Status of and neighbor table

You can see TCP Of 179 The port status has been Established

R1 There are also R2
In the same way R2、R3、R4 Between each other R4、R5 Mutual peer establishment , stay R2、R3、R4 There is no need to modify the number of hops
BGP Announcement of
With R1 For example

[R1]bgp 1
[R1-bgp]network 11.1.1.0 24
stay 2、3 View the routing table
R2

R3

You can find R2 It is superior and R3 It's not good , This is because BGP Of AS-BY-AS Caused by , To modify

[R2]bgp 2
[R2-bgp]peer 3.3.3.3 next-hop-localtake BGP Route transmission to neighbors 3.3.3.3 Modify the next hop attribute to local (2.2.2.2)
Check again at this time R3 The routing table for

It can be found that it has become excellent
R4 To become excellent, you need to do the same , Similarly, it should be announced R5 When looping back, it needs to be in R4 Modify on
Last in R2、R3、R4 Declare their respective loops , Every loop can go to all AS Autonomous systems
test : use R1 The loopback of ping R5 The loopback of

边栏推荐
- nacos注册中心
- Deep into C language (1) -- operators and expressions
- Flask framework operation database_ Add, delete, modify and query statements
- Connect with third-party QQ login
- 面试必备!TCP协议经典十五连问!
- CUB_200鸟类数据集关键点可视化
- 消费行业数字化升级成 “刚需”,weiit 新零售 SaaS 为企业赋能!
- Why does the 20 bit address bus determine the storage space of 1MB
- 大厂们终于无法忍受“加一秒”了,微软谷歌Meta等公司提议废除闰秒
- 力扣每日一题-第44天-205. 同构字符串
猜你喜欢

Shopify卖家:EDM营销就要搭配SaleSmartly,轻松搞定转化率

Deep into C language (1) -- operators and expressions

Sunflower senior product director technology sharing: "how to apply national remote control" in AD domain environment

消费行业数字化升级成 “刚需”,weiit 新零售 SaaS 为企业赋能!

Shopify seller: EDM marketing should be combined with salesmartly to easily get the conversion rate

Instance setup flask service (simple version)

数据挖掘——关联分析例题代码实现(下)

Getting started with caspin

Typescript from getting started to mastering (XX) function generics

关于双指针的思想总结
随机推荐
The list is not updated in real time when JS V-for data changes
Uni app internationalization
MOS tube - rapid recovery application notes (II) [parameters and applications]
Batch production and upload sales NFT opensea eth polygon
Cannot paste multiple pictures at once
LDP --- 标签分发协议
How fast does it take to implement a super simple language
Deep into C language (1) -- operators and expressions
sql
UCOS任务切换过程
SFTP upload error: com.jcraft.jsch JSchException: connection is closed by foreign host
Typescript from entry to mastery (XVIII) joint type and type protection
OA项目之会议通知(查询&是否参会&反馈详情)
In depth C language (2) -- definition and use of structure
Overestimated test driven development?
Flask framework operation database_ Add, delete, modify and query statements
"The programming is not standardized, and my colleagues are in tears!"
Malloc C language
First ALV program 2
小马智行进军前装量产,从自研域控制器入手?