当前位置:网站首页>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
边栏推荐
- Tinyint type map is received and returned as Boolean
- 第五讲—按键控制LED
- Dynamic routing ofps protocol configuration
- HCIA Basics (1)
- Is index reproduction text generation image is score quantitative experiment whole process reproduction inception score quantitative evaluation experiment step on the pit and avoid the pit process
- ViTGAN:用视觉Transformer训练生成性对抗网络 Training GANs with Vision Transformers
- Static routing default routing VLAN experiment
- OSPF static experiment
- NAT network address translation experiment
- Unity Huatuo revolutionary hot update series [1]
猜你喜欢

IS指标复现 文本生成图像IS分数定量实验全流程复现 Inception Score定量评价实验踩坑避坑流程

Text to image paper intensive reading ssa-gan: text to image generation with semantic spatial aware Gan

TCP's three handshakes and four waves (brief introduction)
![[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)
![[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

TCP的三次握手与四次断开

Dynamic routing ofps protocol configuration

最新C语言入门与进阶 -史上最全最详细的C语言教程!! 第一节-总览C语言概括

Text to image论文精读DF-GAN:A Simple and Effective Baseline for Text-to-Image Synthesis一种简单有效的文本生成图像基准模型

Connect mysql detailed graphic operations in ECs docker (all)
随机推荐
STM32_HAL_SUMMARY_NOTE
Es specify user name and password when instantiating resthighlevelclient
OSPF basic configuration application (comprehensive experiment: interference election default routing area summary authentication -- interface authentication)
静态路由基础配置(IP地址的规划、静态路由的配置),实现全网可达。
高度塌陷解决方法
Dynamic routing rip protocol experiment
Three methods that can effectively fuse text and image information -- feature stitching, cross modal attention, conditional batch normalization
Unity Huatuo hot update environment installation and sample project
RIP V2 的简单应用(v2的配置、宣告、手工汇总、RIPV2的认证、沉默接口、加快收敛)
Solution to high collapse
ensp中的简单静态路由
HCIA静态路由综合实验
Beyond hidden display ellipsis
定时器中断实验
NAT network address translation experiment
TCP的三次握手与四次断开
7.16 written examination of Duoyi network
7.8 Ruijie online written examination
ACM mode input and output exercise
[详解C语言]一文带你玩转选择(分支)结构