当前位置:网站首页>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

边栏推荐
- SFTP upload error: com.jcraft.jsch JSchException: connection is closed by foreign host
- Data too long for column 'xxx' at row 1 solution
- [原理] 横向渗透的几种方式
- 华为天才少年稚晖君做了一把模块化机械键盘,引起极客圈地震,网友:这才是真正的客制化...
- Typescript from getting started to mastering (XXIII) namespace namespace (Part 2)
- 新零售O2O 电商模式解析
- I.MX6U-驱动开发-2-LED驱动
- tron OUT_ OF_ ENERGY
- UCOS task switching process
- Deep into C language (3) -- input and output stream of C
猜你喜欢

What you see and think in Microsoft

关于双指针的思想总结

UCOS task switching process

Connect with third-party QQ login
![MOS tube - rapid recovery application notes (II) [parameters and applications]](/img/54/eb040a51304192def8cfb360c7c213.png)
MOS tube - rapid recovery application notes (II) [parameters and applications]

SQL窗口函数

(2022 Hangdian multi school III) 1011 link is as bear (thinking + linear basis)

Casbin入门

小马智行进军前装量产,从自研域控制器入手?

Overestimated test driven development?
随机推荐
企业网的三层架构
关于双指针的思想总结
Is the browser multi process or single process?
@Configuration (proxybeanmethods = false) what's the use of setting this to false
RHCE的at,crontab的基本操作,chrony服务和对称加密和非对称加密
Solve the problem of garbled code when opening the project code in idea
Uni app internationalization
1. Header file - Comment - namespace - standard input / output stream
Typescript from getting started to mastering (XXIII) namespace namespace (Part 2)
路西法98-生活记录ing
[原理] 横向渗透的几种方式
Cloudera manager platform fault repair record
How do programmers use code to completely end those things in the system?
Typescript from introduction to proficiency (XXIV) using import syntax
Meeting notice of OA project (Query & whether to attend the meeting & feedback details)
Wechat applet monitors sliding events on the screen
OPENSQL快速学习
LDP --- 标签分发协议
2. Variables and scope
lodash库常用方法