当前位置:网站首页>OSPF basic configuration application (comprehensive experiment: interference election default routing area summary authentication -- interface authentication)
OSPF basic configuration application (comprehensive experiment: interference election default routing area summary authentication -- interface authentication)
2022-07-27 02:15:00 【Not smart】
Catalog
authentication -- Interface authentication
Comprehensive experiment :

First step : Subnet partition
First of all to IP Address planning , The experimental requirements R4 Loopback fixation , Other network segments use 192.168.1.0/24 division .R1—R3 Is the region 0,R3—R4 Is the region 1, Each of them has a loopback ,R3 Loop back in area 0.
Two regions , Let's divide the master network into two , obtain 192.168.1.0/25 And 192.168.1.128/25 This will facilitate the regional summary later . Then it is divided according to the needs of the two regions , Area 0 need 4 Net segment (3 Loop back + Backbone links ), Area 1 need 1 Net segment ( Backbone links )

be used for R3—R4 The network segment between them is directly delimited to 30 position , Because this network segment only needs two IP
The second step :IP To configure
Follow the first step IP Planning IP To configure

With R1 For example

[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 27
![]()
[R1]interface loopback 0
[R1-LoopBack0]ip address 192.168.1.33 27
Configure all IP
The third step : ospf To configure
First ospf Start of , Process number and id To configure
The process number can be defined at startup 、RID, Default process 1,RID-- The format is IPV4 Address , The whole network is unique
![]()
[R1]ospf 1 router-id 192.168.1.1
Then select and announce the region
![]()
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.31
notes :ospf When declaring, the mask needs to be unmasked to declare
And then in turn R2—R4 Make an announcement , Notice the announcement R3 Of g0/0/1 Mouth and R4 when , Declare the area to be an area 1(area 1)
Interference in elections
The experimental requirements R3 by DR equipment , No, BDR. So we have to intervene in the election , Change priority . because ospf The election is non preemptive , So after modifying the priority , All routers need to be restarted OSPF process . In order not to restart the process , We can DR The priority is changed to maximum , Other equipment is modified as 0( Deemed to have waived ), There is no need to restart the process .

[R3]int g0/0/0 ( The port to participate in the election )
[R3-GigabitEthernet0/0/0]ospf dr-priority 255
Press this operation to change the priority of other devices to 0, Then you can view the neighbor table of any router in this area
![]()
<R3>display ospf peer

We can see 0 Regional DR by R3 Of id
Default route
Experimental requirements cannot be declared R4 The loopback of , So we need to configure the default route on the border router , That is to say R4 On

[R4]ospf 1
[R4-ospf-1]default-route-advertise always
Regional summary
In order to minimize the number of routing entries , We can 0 Summarize by Region
notes :OSPF The protocol does not support interface summary , Only in ABR(R3) Admiral 0 Route calculated by regional topology , Share with 1 Summarize when area

[R3]ospf 1
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]abr-summary 192.168.1.0 255.255.128
After summary, you can view R4 You can find 0 There is only one route in the area
[R4]display ip routing-table protocol ospf

authentication -- Interface authentication
The experiment requires that the update is safe , We need to configure directly connected neighbors or adjacent interfaces , In order to ensure the security of update

[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
Pattern Number password
Mode of each interface 、 Number 、 The password requires consistency between neighbors , Otherwise, the topology cannot be shared
So far, all the experimental requirements have been met , End of experiment .
Add :
Passive interface
Also called silent interface -- Only receive and do not send routing protocol information , Interface for connecting user terminals , It shall not be used to connect the interface of neighbor router , Otherwise, you can't establish a neighbor relationship .
[r2]ospf 1
[r2-ospf-1]silent-interface GigabitEthernet 0/0/0
Fast convergence plus
Neighbor timer 10s hello time 40s dead time
Between neighbors , Modify the local hello time, Local dead time Automatically 4 Matched by relationships , but ospf Between neighbors hello time and dead time It has to be exactly the same , Otherwise, you can't establish a neighbor relationship .
[r1]interface GigabitEthernet 0/0/0
[r1-GigabitEthernet0/0/0]ospf timer hello 5
边栏推荐
- 6.28 flush written test
- 超出隐藏显示省略号
- 机械硬盘选购指南——从选购经历谈起
- [MySQL] MySQL startup and shutdown commands and some error reports to solve problems
- 静态路由基础配置(IP地址的规划、静态路由的配置),实现全网可达。
- HCIA静态路由综合实验
- 2022年最新文本生成图像研究 开源工作速览(Papers with code)
- Flink1.13.6详细部署方式
- 二层封装技术(HDLC、PPP--PAP\CHAP、GRE)实验练习
- [FPGA tutorial case 29] the second DDS direct digital frequency synthesizer based on FPGA - Verilog development
猜你喜欢

广域网技术实验

OSPF在MGRE环境下的实验

Unity Huatuo example project source code analysis and inspiration

NAT(网络地址转化协议)

Enumerated valueof() method stepping on the pit

2022年T2I文本生成图像 中文期刊论文速览-1(ECAGAN:基于通道注意力机制的文本生成图像方法+CAE-GAN:基于Transformer交叉注意力的文本生成图像技术)

TCP的三次握手与四次断开

2022zui new Tiktok 24-hour round robin live broadcast monitoring (I) live broadcast room start-up monitoring

HCIA动态路由OSPF实验

WAN technology experiment
随机推荐
初识C语言(1)
OSPF协议知识汇总
Introduction to network - Introduction to Enterprise Networking & basic knowledge of network
6.28 flush written test
机械硬盘选购指南——从选购经历谈起
JS logical operator
6.30滴滴面经(一面+二面)
Test and open basic daily question brushing (continuous updating...)
[详解C语言]一文带你认识C语言,让你醍醐灌顶
Vitgan: training Gans with vision transformers
Three methods that can effectively fuse text and image information -- feature stitching, cross modal attention, conditional batch normalization
Dynamic routing rip protocol experiment
[paddleseg source code reading] paddleseg export static graph export Trace in py file
【mysql】mysql启动关闭命令以及一些报错解决问题
Text to image论文精读SSA-GAN:基于语义空间感知的文本图像生成 Text to Image Generation with Semantic-Spatial Aware GAN
HCIA(网络初级综合实验练习)
STM32入门教程第二讲
[explain C language in detail] this article takes you to know C language and makes you impressed
Text to image论文精读RAT-GAN:文本到图像合成中的递归仿射变换 Recurrent Affine Transformation for Text-to-image Synthesis
Unity Huatuo hot update environment installation and sample project