当前位置:网站首页>[hcip] experiment of republishing and routing strategy
[hcip] experiment of republishing and routing strategy
2022-07-29 01:36:00 【1ta-chi】
List of articles
The experimental requirements
- Use two-point two-way republishing
- All routers choose the best route
- There is a backup path , No loop and route feedback
- R1 Except for self loopback , Plus several loops
172.16.1.0/24 deny
172.16.2.0/24 type 1
172.16.3.0/24 cost 6
172.16.4.0/24 type 1 cost 9
Change the above parameters
Experimental process
To configure IP
//R1 - example
#
interface GigabitEthernet0/0/0
ip address 12.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 14.1.1.1 255.255.255.0
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.0
#
interface LoopBack1
ip address 172.16.1.1 255.255.255.0
#
interface LoopBack2
ip address 172.16.2.1 255.255.255.0
#
interface LoopBack3
ip address 172.16.3.1 255.255.255.0
#
interface LoopBack4
ip address 172.16.4.1 255.255.255.0
START agreement
//RIP
//R1
rip 1
undo summary
version 2
network 1.0.0.0
network 172.16.0.0
network 12.0.0.0
network 14.0.0.0
//R2
rip 1
undo summary
version 2
network 2.0.0.0
network 12.0.0.0
//R4
rip 1
undo summary
version 2
network 14.0.0.0
//OSPF
//R2
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 23.1.1.2 0.0.0.0
//R3
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 23.1.1.3 0.0.0.0
network 34.1.1.3 0.0.0.0
//R4
ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 34.1.1.4 0.0.0.0
Route table display 

Two way republication
//R2
ospf 1 router-id 2.2.2.2
import-route rip 1
area 0.0.0.0
network 23.1.1.2 0.0.0.0
#
rip 1
undo summary
version 2
network 2.0.0.0
network 12.0.0.0
import-route ospf 1
//R4
ospf 1 router-id 4.4.4.4
import-route rip 1
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 34.1.1.4 0.0.0.0
#
rip 1
undo summary
version 2
network 14.0.0.0
import-route ospf 1
Route table display 

You can find R4 The routing table of is consistent with that before republishing , Therefore, there is no routing feedback
however R2 The routing table of is inconsistent with that before republishing ,R4 Loopback 4.4.4.4 stay OSPF And RIP Different sending methods lead to routing feedback , stay R2 Two routes are generated in the route table
// Solution : modify R4 Looped OSPF Operation mode
[R4]interface LoopBack 0
[R4-LoopBack0]ospf network-type broadcast
Check again at this time R2 Routing table , nothing 4.4.4.4/32
You can also change the address to
4.4.4.4/32, There will be no4.4.4.4/24Address
Connectivity testing :R1 Loopback ping R3 Loopback 
Interference in routing
R1 Yes OSPF and R3 Yes RIP Any network segment in is equal overhead load balancing 
But in fact, there are differences between the upper and lower roads , We are in R2 And R4 The upper interference chooses the way — Use Offset list
//R2
[R2]ip ip-prefix a permit 4.4.4.0 24
[R2]ip ip-prefix a permit 34.1.1.0 24
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]rip metricout ip-prefix a 2
//R4
[R4]ip ip-prefix a permit 23.1.1.0 24
[R4]int g0/0/1
[R4-GigabitEthernet0/0/1]rip metricout ip-prefix a 2

here R1 To R3 The route selection of has been completed , The next in OSPF Medium interference routing , Use Huawei routing strategy
// The type of poor routing 2 Change to type 1
//R2
[R2]ip ip-prefix b permit 2.2.2.0 24
[R2]ip ip-prefix b permit 12.1.1.0 24
[R2]route-policy b permit node 10
Info: New Sequence of this List.
[R2-route-policy]if-match ip-prefix b
[R2-route-policy]apply cost-type type-1
[R2-route-policy]q
[R2]route-policy b permit node 20 // Empty table , Allow all
Info: New Sequence of this List.
[R2-route-policy]q
[R2]ospf 1
[R2-ospf-1]import-route rip route-policy b // Reissue
//R4
[R4]ip ip-prefix b permit 14.1.1.0 24
[R4]route-policy b permit node 10
Info: New Sequence of this List.
[R4-route-policy]if-match ip-prefix b
[R4-route-policy]apply cost-type type-1
[R4-route-policy]q
[R4]route-policy b permit node 20
Info: New Sequence of this List.
[R4-route-policy]q
[R4]ospf 1
[R4-ospf-1]import-route rip route-policy b

At this time only R1 Loop back and other overhead load balancing
change R1 Loopback parameters – Huawei routing strategy
//R2
ip ip-prefix R1-1 index 10 permit 172.16.1.0 24
ip ip-prefix R1-2 index 10 permit 172.16.2.0 24
ip ip-prefix R1-3 index 10 permit 172.16.3.0 24
ip ip-prefix R1-4 index 10 permit 172.16.4.0 24
#
route-policy b permit node 10
if-match ip-prefix b
apply cost-type type-1
#
route-policy b deny node 20
if-match ip-prefix R1-1
#
route-policy b permit node 30
if-match ip-prefix R1-2
apply cost-type type-1
#
route-policy b permit node 40
if-match ip-prefix R1-3
apply cost 6
#
route-policy b permit node 50
if-match ip-prefix R1-4
apply cost 6
apply cost-type type-1
#
route-policy b permit node 60
#
ospf 1 router-id 2.2.2.2
import-route rip 1 route-policy b
//R4 - ditto
Route table display 

Connectivity test :
边栏推荐
- Flink Postgres CDC
- Behind the second round of okaleido tiger sales is the strategic support of ecological institutions
- Analysis of Multi Chain use cases on moonbeam -- review of Derek's speech in Polkadot decoded 2022
- C language 300 lines of code to achieve mine sweeping (deployable + markable + changeable difficulty level)
- New 1688 API access instructions
- 云原生应用综合练习下
- 一文读懂Okaleido Tiger近期动态,挖掘背后价值与潜力
- Log4j dynamic loading configuration file
- Ruiji takeout project actual battle day01
- Naver three party login
猜你喜欢

Recommended Spanish translation of Beijing passport

Behind the second round of okaleido tiger sales is the strategic support of ecological institutions

20220728 sorting strings that are not pure numbers

Cookies and sessions

PLATO上线LAAS协议Elephant Swap,用户可借此获得溢价收益

HCIA配置实例(eNSP)

J9数字论:什么因素决定NFT的价值?

Flink SQL Hudi 实战
![[leetcode sliding window problem]](/img/84/566d3805e52c358603694cdec69a13.png)
[leetcode sliding window problem]

Embedded sharing collection 23
随机推荐
了解网址url的组成后 运用url模块、querystring模块和mime模块完善静态网站
What are source code, inverse code and complement code
[SQL's 18 dragon subduing palms] 01 - Kang long regrets: introductory 10 questions
Openpyxl merge cells
Docker compose install MySQL
Plato launched the LAAS protocol elephant swap, which allows users to earn premium income
如何选择专业、安全、高性能的远程控制软件
Analysys analysis: focus on users, improve the user experience of mobile banking, and help the growth of user value
SQL question brushing: find the last of all employees_ Name and first_ Name and corresponding department number Dept_ no
[MySQL] historical cumulative de duplication of multiple indicators
New upgrade: get Taobao product details "advanced version" API
New 1688 API access instructions
一文搞懂ES6基本全部语法
Django reports an error using pymsql module django.db.utils.operationalerror
T-sne降维
JS event introduction
【搜索】—— 迭代加深/双向DFS/IDA*
vm options、program arguments、environment property
Window object of BOM series
围绕新市民金融聚焦差异化产品设计、智能技术提效及素养教育