当前位置:网站首页>Hcip day 8
Hcip day 8
2022-07-28 08:39:00 【 ᝰꫛꫀꪝ】
1、 The experimental requirements
1、 Use two-point two-way republishing
2、 All routers choose the best route
3、 There is a backup path , No loops , And routing feedback
4、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
2、 The topology
3、 The analysis process
1、 Such as topology IP Address assignment , On the left for RIP, On the right is OSPF area0
2、2,2,2,2 and 4.4.4.4 Loopback may exist 32 Bit mask and 24 Bit mask routing , So the loop back interface , Change the loopback interface to broadcast type
3、 The backup path needs to be routed Cost Value modified in ASBR Just go to the , Routing feedback is OSPF Has been resolved in
4、 Prevent loops , take ASBR The above direct interface is retransmitted RIP and OSPF Area
5、 Finally, add routing rules
4、 Configure the content
R1
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip address 12.1.1.1 255.255.255.0
[r1-GigabitEthernet0/0/0]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip address 14.1.1.1 255.255.255.0
[r1]int l0
[r1-LoopBack0]ip address 1.1.1.1 255.255.255.0
[r1]int l1
[r1-LoopBack1]ip add 172.16.1.1 24
[r1-LoopBack1]int l2
[r1-LoopBack2]ip add 172.16.2.1 24
[r1-LoopBack2]int l3
[r1-LoopBack3]ip add 172.16.3.1 24
[r1-LoopBack3]int l4
[r1-LoopBack4]ip add 172.16.4.1 24
[r1]rip 1
[r1-rip-1]version 2
[r1-rip-1]network 12.0.0.0
[r1-rip-1]network 1.0.0.0
[r1-rip-1]network 14.0.0.0
[r1-rip-1]network 172.16.0.0
[r1]ip ip-prefix 23 permit 23.1.1.0 24
[r1]int g 0/0/1
[r1-GigabitEthernet0/0/1]rip metricin ip-prefix 23 2
[r1]ip ip-prefix 4 permit 4.4.4.0 24
[r1]ip ip-prefix 43 permit 43.1.1.0 24
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]rip metricin ip-prefix 4 2
[r1-GigabitEthernet0/0/0]rip metricin ip-prefix 43 2
R2
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip address 12.1.1.2
255.255.255.0
[r2-GigabitEthernet0/0/0]int g 0/0/1
[r2-GigabitEthernet0/0/1]ip address 23.1.1.2 255.255.255.0
[r2]int l0
[r2-LoopBack0]ip address 2.2.2.2 255.255.255.0
[r2-LoopBack0]ospf network-type broadcast
[r2]ospf 1
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
[r2]ospf 1
[r2-ospf-1] import-route direct
[r2-ospf-1] import-route rip 1
[r2]rip 1
[r2-rip-1] version 2
[r2-rip-1] network 12.0.0.0
[r2-rip-1] network 2.0.0.0
[r2-rip-1] import-route direct
[r2-rip-1] import-route ospf 1
[r2]ip ip-prefix 5 permit 4.4.4.0 24
[r2]ip ip-prefix 6 permit 43.1.1.0 24
[r2]ip ip-prefix 1 permit 172.16.1.0 24
[r2]ip ip-prefix 2 permit 172.16.2.0 24
[r2]ip ip-prefix 3 permit 172.16.3.0 24
[r2]ip ip-prefix 4 permit 172.16.4.0 24
[r2]route-policy haha deny node 10
[r2-route-policy]if-match ip-prefix 1
[r2]route-policy haha permit node 20
[r2-route-policy]if-match ip-prefix 2
[r2-route-policy]apply cost-type type-1
[r2]route-policy haha permit node 30
[r2-route-policy]if-match ip-prefix 3
[r2-route-policy]apply cost 6
[r2]route-policy haha permit node 40
[r2-route-policy]if-match ip-prefix 4
[r2-route-policy]apply cost 9
[r2-route-policy]apply cost-type type-1
[r2]route-policy haha permit node 50
[r2]route-policy haha permit node 15
[r2-route-policy]if-match ip-prefix 5
[r2-route-policy]apply cost-type type-1
[r2]route-policy haha permit node 25
[r2-route-policy]if-match ip-prefix 6
[r2-route-policy]apply cost-type type-1
[r2]ospf 1
[r2-ospf-1]import-route rip 1 route-policy haha
R3
[r3]ospf 1
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0] network 3.3.3.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0] network 23.1.1.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0] network 43.1.1.0 0.0.0.255
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip address 43.1.1.3 255.255.255.0
[r3-GigabitEthernet0/0/0]int g 0/0/1
[r3-GigabitEthernet0/0/1]ip address 23.1.1.3 255.255.255.0
R4
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ip address 14.1.1.4 255.255.255.0
[r4-GigabitEthernet0/0/0]int g 0/0/1
[r4-GigabitEthernet0/0/1] ip address 43.1.1.4 255.255.255.0
[r4-GigabitEthernet0/0/1]int l0
[r4-LoopBack0]ip address 4.4.4.4 255.255.255.0
[r4-LoopBack0]ospf network-type broadcast
[r4]rip 1
[r4-rip-1]version 2
[r4-rip-1]network 14.0.0.0
[r4-rip-1]import-route direct
[r4-rip-1]import-route ospf 1
[r4]ip ip-prefix 5 permit 23.1.1.0 24
[r4]ip ip-prefix 6 permit 2.2.2.0 24
[r4]ip ip-prefix 1 permit 172.16.1.0 24
[r4]ip ip-prefix 2 permit 172.16.2.0 24
[r4]ip ip-prefix 3 permit 172.16.3.0 24
[r4]ip ip-prefix 4 permit 172.16.4.0 24
[r4]route-policy haha deny node 10
[r4-route-policy]if-match ip-prefix 1
[r4]route-policy haha permit node 20
[r4-route-policy]if-match ip-prefix 2
[r4-route-policy]apply cost-type type-1
[r4]route-policy haha permit node 30
[r4-route-policy]if-match ip-prefix 3
[r4-route-policy]apply cost 6
[r4]route-policy haha permit node 40
[r4-route-policy]if-match ip-prefix 4
[r4-route-policy]apply cost 9
[r4-route-policy]apply cost-type type-1
[r4]route-policy haha permit node 50
[r4]route-policy haha permit node 15
[r4-route-policy]if-match ip-prefix 5
[r4-route-policy]apply cost-type type-1
[r4]route-policy haha permit node 25
[r4-route-policy]if-match ip-prefix 6
[r4-route-policy]apply cost-type type-1
[r4]ospf 1
[r4-ospf-1]import-route rip 1 route-policy haha
5、 The results verify that
Two way republication
R1 adopt RIP Learned routes
R1 Go to 2.2.2.2 The next jump is 12.1.1.2
R3 adopt OSPF Learned routes
R3 Go to 4.4.4.4 The next jump is 43.1.1.4
R3 What I learned R1 The routing
边栏推荐
- 中标捷报!南大通用GBase 8s中标南瑞集团2022年数据库框架项目
- Introduction to self drive tour of snow mountains in the West in January 2018
- Matlab (3) matlab program flow control statement
- 思迈特软件完成C轮融资,让BI真正实现“普惠化”
- No super high-rise buildings | new regulations: what information does it reveal that no new buildings above 500 meters should be built?
- 阿里巴巴内部面试资料
- How to import and export Youxuan database
- 优炫数据库导入和导出方法
- 微服务架构 Sentinel 的服务限流及熔断
- Sparksql and flinksql create and link table records
猜你喜欢

Allure use
![[Qt5] QT small software release](/img/83/9867bd4513caadac6a056c801abe48.png)
[Qt5] QT small software release

Gbase appears in Unicom cloud Tour (Sichuan Station) to professionally empower cloud ecology

C轮融资已完成!思迈特软件领跑国内BI生态赋能,产品、服务竿头一步

uniapp---- 获取当前位置的经纬度等信息的详细步骤(包含小程序)
![[Qt5] a method of multi window parameter transmission (using custom signal slot) and case code download](/img/6d/870add6179f0e3a2f9b719f79594f3.png)
[Qt5] a method of multi window parameter transmission (using custom signal slot) and case code download

Leetcode brushes questions. I recommend this video of the sister Xueba at station B

【软考软件评测师】2013综合知识历年真题

MySQL how to add users and set permissions?

机器学习如何做到疫情可视化——疫情数据分析与预测实战
随机推荐
Blog Building 9: add search function to Hugo
阿里巴巴内部面试资料
Tell you step by step what you need to do to apply for PMP? What should I do?
Redis 基本知识,快来回顾一下
Prescan quick start to master the transportation elements in lesson 14, prescan
VK1620温控仪/智能电表LED数显驱动芯片3/4线接口内置 RC振荡器,提供技术支持
Does gbase 8s support storing relational data and object-oriented data?
PHP基础知识 - PHP 使用 MySQLI
Gbase appears in Unicom cloud Tour (Sichuan Station) to professionally empower cloud ecology
Window 2 - > toolbar (28-1)
思迈特软件完成C轮融资,让BI真正实现“普惠化”
ASP. Net core foundation IV
Uniapp ---- detailed steps to obtain the longitude and latitude of the current position and other information (including applet)
竞赛:糖尿病遗传风险检测挑战赛(科大讯飞)
Source code analysis of linkedblockingqueue
jquey的基础语法
一键开关机电路
机器学习如何做到疫情可视化——疫情数据分析与预测实战
How to write a JMeter script common to the test team
uniapp上下滑屏切换支持视频和图片轮播实现,类似抖音效果



