当前位置:网站首页>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
边栏推荐
- 2022牛客多校第二场解题报告
- pyflink连接iceberg 实践
- Usage of qcombobox
- postgresql查询【表字段类型】和库中【所有序列】
- Pyspark changes the column order and saves it into iceberg database
- 模型预测控制(MPC)解析(九):二次规划的数值解(下)
- uniapp上下滑屏切换支持视频和图片轮播实现,类似抖音效果
- An article to understand data warehouse: metadata classification, metadata management
- Blog building 7: Hugo
- PHP基础知识 - PHP 使用 MySQLI
猜你喜欢
![[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

The fourth phase (2021-2022) research on the implementation of cloud native technology in traditional industries - central state-owned enterprises was officially released

学术界爆火的类脑智能,啥时候能落地?来听行业大咖怎么说丨量子位·对撞派 x 时识科技...

思迈特软件完成C轮融资,让BI真正实现“普惠化”

Allure use

SQL Server查询结果导出到EXCEL表格

Blog Building 9: add search function to Hugo

Machine learning how to achieve epidemic visualization -- epidemic data analysis and prediction practice

Day112.尚医通:手机验证码登录功能

SQL注入 ----前置基础
随机推荐
Usage of qmap
单片机IO口控制12V电压通断,MOS和三极管电路
Day112.尚医通:手机验证码登录功能
Opengauss synchronization status query
JS手写函数之slice函数(彻底弄懂包头不包尾)
一键开关机电路
网口网络水晶头RJ45、POE接口定义线序
pyspark 写入数据到iceberg
(十三)基于51单片机的简单温度报警装置
CAT1 4G+以太网开发板232数据通过4G模块TCP发到服务器
CAT1 4g+ Ethernet development board 232 data is sent to the server through 4G module TCP
Export SQL server query results to excel table
CI框架如何集成Smarty模板
MySQL how to add users and set permissions?
An article to understand data warehouse: metadata classification, metadata management
2022牛客多校第一场解题报告
Can‘t connect to server on ‘IP‘ (60)
MCU IO port controls 12V voltage on and off, MOS and triode circuit
pyflink连接iceberg 实践
The fourth phase (2021-2022) research on the implementation of cloud native technology in traditional industries - central state-owned enterprises was officially released



