当前位置:网站首页>OSPF routing control
OSPF routing control
2022-07-22 08:55:00 【Wuhao9_】
One 、OSPF Routing control
priority :
[r3-ospf-1]preference 50--- modify OSPF Routing default priority --- This command will only affect all types of fields as OSPF(OSPF Routing information inside the network ) Routing information for .
[r3-ospf-1]preference ase 100--- Modify the default priority of routes imported outside the domain . The above modification , Only modify the default priority of the corresponding type of route in the device local route table .
Cost value :
COST= Reference bandwidth / Real bandwidth
1、 Change the overhead value by modifying the reference bandwidth
[r3-ospf-1]bandwidth-reference 1000 --- Modifying the reference bandwidth requires that all OSPF The devices in the network are all changed to the same . Because once the reference bandwidth is modified , All devices in the whole network have to be modified into the same , therefore , Its essence cannot control the choice of road . Its significance lies in that when the real bandwidth is large , The reference bandwidth can be increased , Avoid poor routing .
2、 The effect of modifying the cost value is achieved by modifying the real transmission rate of the interface
[r3-GigabitEthernet0/0/0]undo negotiation auto --- Turn off auto negotiation
[r3-GigabitEthernet0/0/0]speed 10
Be careful , The command takes effect after restarting the interface
This method can indeed change the size of the cost value for the specified interface , Play the effect of controlling route selection . however , It will affect the real transmission rate of the interface , also , It can only be reduced , therefore , This scheme is not recommended for real route selection control .
3、 Directly modify the cost value of the interface
[r3-GigabitEthernet0/0/0]ospf cost 1000--- Modify the interface cost value
Be careful : Because the cost value of the loopback interface is a defined value , therefore , The result will not be changed by the outside world , namely 1,2 Neither method will affect the cost value of the loopback interface . however , The first 3 This method can change the cost value of the loopback interface .
Particular attention :OSPF The cost value of reaching the target network segment in , The cumulative value of the cost value flowing into the interface in the direction of routing information transmission
2、OSPF The appendix E
appendix E It mainly defines a solution in a special case
appendix E The proposed solution masks a shorter normal entry , And the longer the mask will be his LSID Use direct broadcast address to express .
3、 ... and 、OSPF The road selection principle
Intra domain ---1 class ,2 class LSA
Inter domain ---3 class LSA
Outside the country ---5 class ,7 class LSA--- Type 1 、 Type 2
1、 Intra domain --- If there are multiple passes to reach the same target network segment 1 class ,2 class LSA Learned routing information , The cost value of reaching the target network segment will be compared , Choose the one with low cost , If the cost value is the same , Then the load will be balanced .
2、 Inter domain ---- If there are multiple passes to reach the same target network segment 3 class LSA Learned routing information , The cost value of reaching the target network segment will be compared , Choose the one with low cost , If the cost value is the same , Then the load will be balanced .
3、 Outside the country ---[r2]display ospf lsdb ase--- You can expand all at once 5 class LSA
Type 1 : If the cost value type is type 1, Then the cost value of all devices in the domain to reach the target network segment outside the domain is equal to the cost value of local arrival notifier plus the seed measurement .
[r4-ospf-1]import-route rip 1 type 1--- Modify the cost value type when republishing
Type 2 : If the cost value type is type 2, Then the cost value of all devices in the domain to reach the target network segment outside the domain is equal to the seed metric .
type 1 Always better than type 2---- The purpose of this design is to facilitate interference and routing in some special cases .
type 2 The road selection principle : If there are multiple passes to reach the same target network segment 5/7 class LSA Learned routing information , And the cost value types are all types 2, Then compare the seed metrics first , Give priority to those with small seed metrics ; If the seed measures the same , Then compare the accumulated cost value along the way , Give priority to those with small accumulated cost value along the way . If the accumulated cost along the way is the same , Load balancing .
type 1 The road selection principle :: If there are multiple passes to reach the same target network segment 5/7 class LSA Learned routing information , And the cost value types are all types 1, Then the total cost value will be compared ( Seed measure + Accumulate the cost value along the way ), Give priority to those with low total cost . If the total cost is the same , Load balancing .
4、 Intra domain and inter domain --- If the same destination network segment exists, pass 1 Classes and 2 class LSA Learned information in the domain and through 3 class LSA Learned inter domain information , Will be preferred to pass 1 class 2 class LSA Learned , Even if the cost is more valuable .----- Intra domain is better than inter domain
5、 Interregional and extraterritorial --- If the same destination network segment exists, pass 3 class LSA Learned inter domain information and through 5 class /7 class LSA Learned foreign information . Will be preferred to pass 3 class LSA Learned , Even if the cost is more valuable .--- Inter domain is better than extradomain .
6、 In the Huawei system ,5 Classes and 7 class LSA The road selection rules are the same
Four 、OSPF My guard ring
1、 Inter domain anti ring
1)、OSPF Because routing information is also transmitted between regions , therefore , There is a regional level segmentation mechanism , The region from which the routing information is learned will not return to this region
2)、 The region division of star topology itself is also an anti ring mechanism
2、 In domain anti ring
OSPF Anti ring mechanism in the domain ---SPF Algorithm --- Shortest path first algorithm
5、 ... and 、 Reissue
Between the two protocols , Or two processes share routing information ;
1、 effect :
In a network , If running multiple routing protocols or different processes of the same routing protocol , The protocols cannot directly communicate with each other, including the independent forwarding and operation between processes ; Therefore, it is necessary to republish to realize the sharing of routes .
2、 Conditions :
1)、 There must be ASBR equipment --- Connect two protocols or two processes at the same time , You can learn the routing information on both sides at the same time , Then complete the route sharing .
2)、 We must pay attention to three measures ----A The protocol and B The measurement calculation logic between protocols is illogical , Cannot be used directly . So I will A The agreement is published to B When the agreement ,ASBR Will not carry A The protocol measures to B agreement , It's sharing to B When the agreement , from ASBR The device adds a starting metric to the route .
3、 The rules :
1)、 take A The protocol is imported into B When the agreement , Need to be in ASBR Of B Configure republication on the protocol .
2)、 take A The agreement is published to B When the agreement , Yes, it will ASBR All the people on the pass A Agreement learned and ASBR Announced on A All direct routes of the protocol are shared to B Agreement .
spot :
Single point --- Between two protocols or two processes 1 individual ASBR equipment
Bipoint --- Between two protocols or two processes 2 individual ASBR equipment
Multipoint --- There are multiple... Between two protocols or two processes ASBR equipment
towards :
A one-way ---- Only will A The agreement is published to B In the agreement
two-way ----A/B All routes of the protocol are shared
To configure :
A--->B: One dynamic routing protocol is published to another dynamic routing protocol
static state ---->B: Import static routes into dynamic routing protocols
Direct connection ---->B: Import direct route into dynamic routing protocol
RIP:
A---->B: One dynamic routing protocol is published to another dynamic routing protocol
[r2-rip-1]import-route ospf 1
Conclusion :1、 Through republishing technology, the routing information of other protocols is imported into RIP in , The default seed measure assigned to it is 0.
How to modify the seed measure :
1、 Modify the overall situation in the process :[r2-rip-1]default-cost 2
2, Modify for this reissue :[r2-rip-1]import-route ospf 1
cost 3
Be careful : When the above two commands are executed at the same time , Will be in accordance with paragraph 2 strip , Match more
Precise commands to execute .
static state --->B: Import static routes into dynamic routing protocols
[r2-rip-1]import-route static
Conclusion : During the republication process, the default route will not be republished to the dynamic routing protocol .
Direct connection ---->B: Import direct route into dynamic routing protocol
[r2-rip-1]import-route direct
Conclusion :1、 except R1 Outside the direct network segment of , All direct connections will be imported
2、 if ASBR the A---->B: Re release and direct connection --->B Re release of , And contain the same routing information twice , Will give priority to learning direct connection --->B Re release information .
[r2-ospf-1]default cost ?
INTEGER<0-16777214>Cost value
[r2-ospf-1]default type ?
INTEGER<1-2>
Type value
边栏推荐
- Experimental support for decorators is a feature that is subject to change in a future release. Set
- Partage de la stratégie de percée ultime des commerçants professionnels pendant de nombreuses années (avec un ensemble complet de modèles de transaction)
- FastJson、JackJson处理时间、日期问题注意事项
- IO 模型详解(通俗易懂)
- [step on pit] solution to NPM installation error
- TPS trading strategy with a winning rate of 93.98%
- [C语言] 文件操作《一》
- Must use destructuring props assignmenteslint
- 量化交易中的三类行情
- 不断提升认知,从而达到交易的最高级别——稳定盈利(一)
猜你喜欢
动态内存管理
Partage de la stratégie de percée ultime des commerçants professionnels pendant de nombreuses années (avec un ensemble complet de modèles de transaction)
TPS trading strategy with a winning rate of 93.98%
vscode添加自定义注释
Windows环境下Redis安装与配置的两种方式
未配置在app.json的(uni发行微信小程序)
类的加载机制以及双亲委托机制
Soft exam intermediate [Database System Engineer] Chapter 1: computer system knowledge, self-study soft exam notes, preparation for the soft exam in May 2022, computer hardware system CPU composition
Self study golang [3.6 slice practice code] slice length, upper limit, copy, delete and increase
电商大促就靠RPA,摆脱重复劳动,急速提效
随机推荐
【flex布局快速上手】快速理解flex布局用法,通过常见的四个布局案例解释【详细注释,一看就会】
Self study the definition of golang [3.5go language array, range keyword] array, and use the for loop to traverse one-dimensional array
Self study golang [Chapter 1: basic knowledge of go language] Why do you want to learn go language? The relationship between go language and C language? Founder of go language? What are the characteri
不断提升认知,从而达到交易的最高级别——稳定盈利(二)
软考中级【数据库系统工程师】第0章:如何自学备考,考试介绍考什么,备考教材,上午和下午的体型分数分布,备考课程链接,个人备考感谢
基礎不牢地動山搖之牛客刷題《二》
js 判断数据是否为空
Self study golang [3.6 slice practice code] slice length, upper limit, copy, delete and increase
Continuously improve cognition, so as to reach the highest level of trading - stable profits (I)
解决IDEA的插件中心连接不上网络
Experimental support for decorators is a feature that is subject to change in a future release. Set
FastJson、JackJson处理时间、日期问题注意事项
指针深度解刨《四》(指针和数组的 “亲密“ 关系)
Quantify three types of market in trading
Several applications of Martin strategy
serialization and deserialization
Remove styles pasted in TinyMCE
Formation and destruction of function stack frames (26 pictures help you understand function stack frames in depth)
新手股票开户安全吗?网上可以办理吗?
指针深度进阶《六》(二维数组相关知识)