当前位置:网站首页>Republishing and routing strategy of OSPF
Republishing and routing strategy of OSPF
2022-07-27 02:16:00 【Not smart】
The experimental requirements :

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
ordinary IP Planning and configuration

Follow the above figure IP To configure
Dynamic routing configuration
The title requires that the blue area be used RIP, The red area uses OSPF,R2 The loopback of is announced in RIP,R4 The loopback of is announced in OSPF
R1

[R1]rip 1
[R1-rip-1]version 2
[R1-rip-1]network 1.0.0.0
[R1-rip-1]network 172.16.0.0
[R1-rip-1]network 12.0.0.0
[R1-rip-1]network 14.0.0.0
R2

[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]q
[R2]ospf 1
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 23.1.1.1 0.0.0.0
R3

[R3]ospf 1
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 23.1.1.2 0.0.0.0[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 34.1.1.2 0.0.0.0
R4

[R4]ospf 1
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 34.1.1.1 0.0.0.0[R4-ospf-1-area-0.0.0.0]q
[R4-ospf-1]q
[R4]rip 1
[R4-rip-1]version 2
[R4-rip-1]network 14.0.0.0
Reissue
In the OSPF In the release RIP It is necessary to make routing strategies , We need two ASBR To configure
With R2 For example
Crawl prefix list

[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
Routing strategy

[R2]route-policy huawei deny node 10
Info: New Sequence of this List.
[R2-route-policy]if-match ip-prefix 1
[R2-route-policy]quit
[R2]route-policy huawei permit node 20
Info: New Sequence of this List.
[R2-route-policy]if-match ip-prefix 2
[R2-route-policy]apply cost-type type-1
[R2-route-policy]quit
[R2]route-policy huawei permit node 30
Info: New Sequence of this List.
[R2-route-policy]if-match ip-prefix 3
[R2-route-policy]apply cost 6
[R2-route-policy]quit
[R2]route-policy huawei permit node 40
Info: New Sequence of this List.
[R2-route-policy]if-match ip-prefix 4
[R2-route-policy]apply cost-type type-1
[R2-route-policy]apply cost 9
Two way republishing and calling

[R2]ospf 1
[R2-ospf-1]import-route rip 1 route-policy huawei
[R2-ospf-1]q
[R2]rip 1
[R2-rip-1]import-route ospf 1
When it's done, it can be done in R4 Check the routing table on

The same goes for completion R3 On the configuration
Routing optimization
see R1 The routing table for

It can be found that R4 The loopback of has two routes , One is through R4 Go directly to , The other is through R2 Go round and go back R4 Go again , Obviously, the route selection is poor .
Solution :1、 Loopback interface configuration 32 Bitmask ip Address 2、 Modify the network type of the loopback interface
1、
![]()
[R4]interface LoopBack 0
[R4-LoopBack0]ip add 4.4.4.4 32
2、

[R4]interface LoopBack 0
[R4-LoopBack0]ospf network-type broadcast
After taking any plan , Look at the routing table again

You can see that the route entry becomes a
边栏推荐
- HCIA Basics (1)
- 三种能有效融合文本和图像信息的方法——特征拼接、跨模态注意、条件批量归一化
- 6.29 众安暑期测开实习一面
- Static comprehensive experiment (comprehensive exercise of static route, loopback interface, default route, empty interface, floating static)
- The basic configuration of static routing (planning of IP address and configuration of static routing) realizes the accessibility of the whole network.
- 关于在VS2022或者高级版本运行环境下遇到fopen,strerror等不安全的问题
- 解决方案:炼丹师养成计划 Pytorch+DeepLearning遇见的各种报错与踩坑避坑记录(二)
- Fastjson handles string escape characters
- 最新C语言入门与进阶 -史上最全最详细的C语言教程!! 第一节-总览C语言概括
- OSPF在MGRE环境下配置及LSA的优化---减少LSA更新量(汇总、特殊区域)
猜你喜欢
![[explain C language in detail] takes you to play with loop structure (for_while_do while)](/img/d9/75053297873a5b5458514e7f557cdc.png)
[explain C language in detail] takes you to play with loop structure (for_while_do while)

mgre的全连和星型拓扑实验

Text to image论文精读GR-GAN:逐步细化文本到图像生成 GRADUAL REFINEMENT TEXT-TO-IMAGE GENERATION

2022 latest live broadcast monitoring 24-hour monitoring (III) analysis of barrage in live broadcast room
![[volatile principle] volatile principle](/img/d4/adb4b43aaccecd506065ce838c569e.png)
[volatile principle] volatile principle

ACM模式输入输出练习

Dynamic routing rip protocol experiment

a元素的伪类
![[MySQL] MySQL startup and shutdown commands and some error reports to solve problems](/img/23/b4c90604eba796692fbe049d2679d1.png)
[MySQL] MySQL startup and shutdown commands and some error reports to solve problems

OSPF协议知识汇总
随机推荐
测开基础 日常刷题 (持续更新ing...)
初识C语言(2)
超出隐藏显示省略号
Text to image论文精读DF-GAN:A Simple and Effective Baseline for Text-to-Image Synthesis一种简单有效的文本生成图像基准模型
Unity Huatuo hot update environment installation and sample project
HCIA动态路由OSPF实验
二层封装技术(HDLC、PPP--PAP\CHAP、GRE)实验练习
JS 99 multiplication table
静态综合实验(静态路由、环回接口、缺省路由、空接口、浮动静态的综合练习)
[explain C language in detail] takes you to play with functions
ACM mode input and output exercise
Unity Huatuo example project source code analysis and inspiration
C语言——赋值运算符、复合的赋值运算符、自增自减运算符、逗号运算符、条件运算符、goto语句、注释
三种能有效融合文本和图像信息的方法——特征拼接、跨模态注意、条件批量归一化
NAT (network address translation protocol)
C语言——关系运算符和逻辑运算符、if语句、switch语句、分支结构的嵌套
OSPF protocol knowledge summary
JS max?
[explain C language in detail] this article takes you to know C language and makes you impressed
2022zui new Tiktok 24-hour round robin live broadcast monitoring (I) live broadcast room start-up monitoring