当前位置:网站首页>OSPF实验
OSPF实验
2022-07-23 05:47:00 【.98℃】
1.要求

2.拓扑
3.分析
1.各网段ip如图
2.更具要求需要干涉选举,将r1、r2优先级直接设置为0突出选举更加方便
3.需要汇总,认证,设置空接口,缺省
4.配置
1).接口ip 配置、环回ip。
[r1]int loopb 11
[r1-LoopBack11]ip add 192.168.1.1 27
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.97 27
[r2]int loopb 22
[r2-LoopBack22]ip add 192.168.1.33 27
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.98 27
[r3]
[r3]int loopb 33
[r3-LoopBack33]ip add 192.168.1.65 27
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.1.99 27
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.1.129 30
[r4]int loopb 44
[r4-LoopBack44]ip add 4.4.4.4 24
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 192.168.1.130 30
2).开启OSPF,宣告
[r1]ospf 1 route-i
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.225
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]network 192.168.1.99 0.0.0.0
[r3-ospf-1-area-0.0.0.0]network 192.168.1.65 0.0.0.0
[r3-ospf-1-area-0.0.0.0]q
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]network 192.168.1.129 0.0.0.0
[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]area 1
[r4-ospf-1-area-0.0.0.1]network 192.168.1.0 0.0.0.2553). 干涉选举
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ospf dr-priority 0
[r2-]int g0/0/0
[r2-GigabitEthernet0/0/0]ospf dr-priority 04).区域汇总
[r3-ospf-1]a 0
[r3-ospf-1-area-0.0.0.0]abr-summary 192.168.1.0 255.255.255.0
[r3-ospf-1-area-0.0.0.0]q
[r3-ospf-1]a 1
[r3-ospf-1-area-0.0.0.1]abr-summary 192.168.1.128 255.255.255.128
5).认证加密
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
6).缺省路由
[r3]ospf 1
[r3-ospf-1]default-route-advertise always 7).空接口防止成环
[r3]ip route-static 192.168.1.0 24 NULL 0
[r3]ip route-static 192.168.1.128 25 NULL 0
5.验证
r3的邻居表:

r1去ping 4.4.4.4

r3路由表

边栏推荐
- Learning diary - (routing and switching technology) layer 3 switch
- Real questions required for Niuke interview [algorithm] summary of high-frequency TOP200 questions
- zabbix监控详细安装到部署
- OSPF single area configuration instance learning record
- Understanding of LSM tree (log structured merge tree)
- 写一个可执行文件依赖.so的测试用例
- app编译打包部署手册
- Link expansion configuration of OSPF
- PPP 配置实例学习记录
- 2020-10-16
猜你喜欢

Gameframework: package resources, publish packages with the app, package and generate folder instructions, upload resources to the server, download resources, gamefreamworklist DAT and gameframeworkve

MySQL performance optimization, index optimization

C language can also write Plants vs. Zombies

超好用的抓包工具tcpdump

深度优先找出图中顶点U到顶点V的所有简单路径

Hcip --- condition matching and OSPF Protocol

Nas里搭建Frpc客户端【超级无脑】

Unity used trilib plug-in under URP pipeline to load model material incorrectly

FTP experiment and overview

Link expansion configuration of OSPF
随机推荐
2020-09-20
app编译打包部署手册
Query the cross compiled executable dependency Library
Solution rapide: xshell ne peut pas glisser dans un dossier ou un paquet
静态路由原理与配置
Hcip --- mGRE comprehensive experiment
C language can also write Plants vs. Zombies
Default routing configuration instance learning record
0 dynamic programming leetcode918. Maximum sum of circular subarrays
DHCP configuration instance learning record
DHCP principle and configuration
Routing extension configuration of OSPF and rip
OSPF single area configuration instance learning record
OSPF multi area configuration instance learning record
快速解决:Xshell拖不進去文件夾或者軟件包的問題
Unity3d+gameframework: resource analysis, resource dependency, circular dependency detection
Hcip --- HCIA knowledge review (I)
RIP 配置实例学习记录
Hcip - first experiment
Understanding of LSM tree (log structured merge tree)