当前位置:网站首页>CCNP Part 11 BGP (III) (essence)
CCNP Part 11 BGP (III) (essence)
2022-07-06 19:07:00 【CCIE-Yasuo】
CCNP- Chapter 11 -BGP( 3、 ... and )
BGP Thirteen line principles ( Bigger )
Can be modified before 7 strip , After 6 Article cannot be modified , So actually 7 strip
Follow ACL equally , From top to bottom , For example, if the first comparison comes out, it won't go on
More commonly used in work , Article 4 basis as-path
One , The weight -Weight
1. Cisco is called weight , It is privately owned by Cisco , In Huawei, it is called first priority (Pref-Val)
Cisco and Huawei are both locally effective , This means that only incoming routing entries can be managed
The same environment as the previous load balancing , The middle device
Then both sides have the same address
stay BGP in , The first selection principle is weight ,Weight
Generally, as long as you receive this thing , The default is 0( The bigger the better )
But locally 32768
Because the default is 0, So normal can't compareModification method At this time, we need to use strategies !
ACL combination Route-map, So why is learning bad Route-map I'm sure I can't learn well BGP
First use acl Take this 123.1.1.0 The network segment , You can catch whatever network segment you want to change
then route-map Match first
Once it was to modify the next hop so that it could connect even when there was no route
But here , It's modification weight value
Anyway, no matter how much , If you are older than him
We also need to make an empty permit 20
Then hook up in the agreement
stay BGP The connection in is not connected in the whole agreement
But for the corresponding neighbors
> meanwhile , because Weight It can only be valid locally
> So this attribute can only be used in The direction of the route-map
Let's have a look at this time bgp surface
You can see that the weight has become 123, The next one also jumps to 3.3.3.3
Same , The routing table will also change , To verify .
There is another modification weight The way to 
But this kind also has disadvantages
The disadvantage is that as long as the weight of any item announced to the neighbor is sent 123
Use route-map The reason is that it needs to be refined to a network segment , Even a host IP
Two , Local priority
This thing is called local-preference, The default value is 100
stay BGP This one in the table is abbreviated locprf This is the local priority
> The same is for acl+route-map Grab prefix > The practice is almost the same , It's just a change of name 
stay route-map This one inside set In the options
Many things in it are BGP Of
set local-preference Numbers
Don't forget to write an empty route-map
Now come to hook
The same is done here in the neighborhood
TAG: If someone else sent it in route-map Write on in, You can modify the priority when sending it out

For all routing entries on this machine , This is all for local priority .

Means any network announced locally , This number is sent out
Then go to see bgp It has changed 
But there is a special case
stay IBGP in in/out All directions are ok
But in EBGP in ,in Sure ,OUT Direction is not allowed
route-map Do it , It doesn't work
So this route selection is generally used for IBGP
3、 ... and , Prefer local routes
The biggest feature : The next jump is 0.0.0.0, It means local
This applies to EBGP Of
But it can't be used IBGP
because , If you receive a routing entry from yourself, it's a loop
As long as it is received, it will trigger horizontal segmentation , So I can't use it here
for instance :
EBGP Under the environment of , The default setting is no configuration
192.168.1.0/24
I have
But I received , At this time, please tell me which way I will choose ?
You can see that you have selected the following , But this is the weight chosen .
If we force the above weight Change to ratio 32768 Big
So what happens ?
Let's see 
You can see , There is one in front of both entries R,R What is the ?
R The delegate cannot write to the routing table
Why is that ?
First think , Why can we announce ?
Before any agreement is announced , At least you have ?
that , I am directly connected , What's wrong with you like me? Why should you
You look exactly like me , It's better than me ?
My wife loves me, and I'm the genuine !!!
I admit that you are better than me ( The weight )
therefore BGP He was selected in the table , But it will not enter the routing table
Four :AS-PATH( It can only be used for EBGP)
In this , Is the most commonly used value , It's also the default value , Why do you say that ?
Look!
1. The weight , Everyone defaults to the same
2. priority , Everyone is the same
3. Local , You've done my original match ?
4. You can also interfere with how I walk ?
Insert a dongdongha
This thing is called neighbor shutdown , You can also ask him to freeze .
If you can contact operators in the future , Data Center
I'm sure it can be used BGP Of
Then here's a question
The customer suddenly stopped renewing , He said he would give you the money in a few days, and you said you believed him
But what? , If you take his neighbor no 了
It means to reconfigure
At work BGP You can only configure more but not less
And you this no, It may also involve other issues
So the general industry habits in this industry
Meeting shutdown Lose this neighbor , Even if something goes wrong, just drive it directly
If you don't recover, it won't be so good to put it here all the time
But if you reconfigure , It will be a lot of trouble

His interface will not be closed , It's just that the neighbors shut down 
You can see clearly here idle state , It was manually closed by the administrator
Back to the point ,AS-Path
Here we go again AS-PATH 了 ? What does that mean ?
It's this thing
Follow this i It doesn't matter !
For example, the meaning of this picture , This is this. 123.1.1.0 The routing entry for , Yes, first 300, after 200 Come here
In this attribute , It's the way of comparison , Who is more and who is less .
The less, the better. . Represents faster .
In this modified place , Can only increase , Can't reduce
What does that mean ?
It's meaningless
Like you killed someone , Rebel 10 year
Hey, I don't , Poor quality , There is no repentance after killing , Still like this or that
Life imprisonment , You know what
Can only add , But it can't be reduced
How to do this ?
Same use acl+route-map Catch it first
then set as-path prepend
Then write the number after it ( representative AS Just number it , Add as much as you like )
But be careful
Remember to write an empty route-map rearwards
Remember to hook it up behind the neighbors !
effect :
There is a question
If the one I added happens to be in this network , After that, it's really
Don't you trigger the anti ring mechanism? Then don't you gg Did you? ?
Missing routing entries will kill you
Then it can be written like this at this time
I copy myself infinitely 
Since you can't be executed , I can double it for you ?
Let's see the effect at this time
You can see , The above ones are all the same
So this as-path, The path is selected according to the number
It can prevent loop , It can also be adjusted manually
What if the same quantity cannot be compared ?
That's a question , Next jump , coming
5、 ... and . Origin attribute
The origin attribute is here
The priority is from I-E-?
This path hinder i and e and ?
It doesn't mean igp and egp And what
This i On behalf of BGP Medium IBGP agreement
This E That is the representative. EGP,EGP It's something that was more than ten years ago, and it has long been eliminated
Then the question mark represents the meaning of redistribution
It's the same thing , Also in route-map Medium set Inside 
The detailed steps are exactly the same as the previous ones, so I won't write them
1.ACL take sb. into custody
2.route-map matching
3.set Attribute find what you want
4. Interface or protocol hooking
5. Remember to write an empty route-map Follow me
6、 ... and .MED value ( By default IBGP Effective within... And modifiable )
This parameter is actually the routing entry in the routing table
Manage the data behind the distance 
It's called MED, This value is in the BGP The smaller China is, the better
practice :
ACL Grasp the routing prefix
First do in Direction
It means that coming in from this neighbor takes effect
Then come and have a look at this time bgp surface
Sometimes it may not take effect , Then you can use this command
This situation is : By default , stay EBGP Of in Direction is not effective .
What does this command mean , Always compare med value
summary
1. The weight ( Locally available , It can be applied to IBGP and EBGP) Cisco private , It can only be used for in Direction , The default value is 0.
2. Local priority , It can be used for IBGP In the environment , The default value is 100,in/out All possible
stay EBGP In the environment , It can only be used in in Direction ,out Direction does not take effect
3. More believe in local , The next jump is 0.0.0.0 Local
4.as-path, The less you pass, the better , Copy yourself , What you compare is not size
And it passes from the back to the front ( Support only EBGP)IBGP It can be transmitted but not effective
5. Origin attribute (I>E>?), All environments are in effect
6.MED, measurements , The smaller the better. . By default 0. Not supported by default EBGP
If you want to use EBGP The situation of , The parameters will change after modification, but ` The router itself does not compare by default `
Need to make a bgp always-compare-med
It means always compare MED value
All experiments of this time are built on the simulator EVE-NG Next
So every experiment will be done with soft restart or direct restart
clear ip bgp * soft bgp Soft restart
clear ip bgp * bgp Process restart
Is it clear in actual work , But if the environment is very large, it is better to soft restart or wait
The next chapter goes on BGP
OK, this time is over , Welcome to my article . I am a CCIE-Yasuo, Just pay attention to me if you like , See you in the next issue .
Welcome the students of Xinmeng education to communicate together , I am a 41 The strong wind and swordsman of the period
At the same time, I am also a 18 It was written at school by a student from a college aged , If there is any mistake or infringement, please contact us in time to delete .
边栏推荐
- Installation and management procedures
- 线代笔记....
- 五金机电行业智能供应链管理系统解决方案:数智化供应链为传统产业“造新血”
- A wearable arm device for night and sleeveless blood pressure measurement [translation]
- Pytorch common loss function
- Precautions for binding shortcut keys of QPushButton
- 同宇新材冲刺深交所:年营收9.47亿 张驰与苏世国为实控人
- Visual Studio Code启动时提示“Code安装似乎损坏。请重新安装。”、标题栏显示“不受支持”信息的解决办法
- Mathematics in machine learning -- common probability distribution (XIII): Logistic Distribution
- Video based full link Intelligent Cloud? This article explains in detail what Alibaba cloud video cloud "intelligent media production" is
猜你喜欢

C#/VB.NET 给PDF文档添加文本/图像水印

Synchronous development of business and application: strategic suggestions for application modernization
![[depth first search] Ji suanke: find numbers](/img/e4/708a1e8252bcd2d0d621c66bf6bfed.jpg)
[depth first search] Ji suanke: find numbers
![A wearable arm device for night and sleeveless blood pressure measurement [translation]](/img/fd/947a38742ab1c4009ec6aa7405a573.png)
A wearable arm device for night and sleeveless blood pressure measurement [translation]

美庐生物IPO被终止:年营收3.85亿 陈林为实控人

How to improve website weight

Lucun smart sprint technology innovation board: annual revenue of 400million, proposed to raise 700million

基于蝴蝶种类识别

Pychrm Community Edition calls matplotlib pyplot. Solution of imshow() function image not popping up

线代笔记....
随机推荐
涂鸦智能在香港双重主板上市:市值112亿港元 年营收3亿美元
[depth first search] Ji suanke: find numbers
R language ggplot2 visualization: use the ggdotplot function of ggpubr package to visualize dot plot, set the palette parameter, and set the colors of data points and box graphs of dot plots at differ
Collection of penetration test information -- use with nmap and other tools
Use map function and split function to type multiple elements in one line
[matlab] Simulink the input and output variables of the same module cannot have the same name
[depth first search] Ji suanke: a joke of replacement
R语言使用rchisq函数生成符合卡方分布的随机数、使用plot函数可视化符合卡方分布的随机数(Chi Square Distribution)
Test technology stack arrangement -- self cultivation of test development engineers
R language uses DT function to generate t-distribution density function data and plot function to visualize t-distribution density function data
Take a look at how cabloyjs workflow engine implements activiti boundary events
用于远程医疗的无创、无袖带血压测量【翻译】
Solution of intelligent management platform for suppliers in hardware and electromechanical industry: optimize supply chain management and drive enterprise performance growth
Reptiles have a good time. Are you full? These three bottom lines must not be touched!
Abstract classes and abstract methods
About NPM install error 1
Optical blood pressure estimation based on PPG and FFT neural network [translation]
Graffiti intelligence is listed on the dual main board in Hong Kong: market value of 11.2 billion Hong Kong, with an annual revenue of 300 million US dollars
If you have any problems, you can contact me. A rookie ~
MRO industrial products enterprise procurement system: how to refine procurement collaborative management? Industrial products enterprises that want to upgrade must see!

















