当前位置:网站首页>HCIA_OSPF实验
HCIA_OSPF实验
2022-07-17 00:16:00 【 ᝰꫛꫀꪝ】
1、实验需求
1、R1-3为区域0,R3到R4为区域1;其中R3的环回也在区域0
2、R1-R3,R3为DR设备,没有BDR
3、R4环回地址已经固定,其他所有网段使用192.168.1.0/24进行合理分配
4、R4环回不能宣告,全网可达,保障更新安全,避免环路,减少路由条目数量
2、实验拓扑

3、分析过程
1、针对区域划分,如拓扑所示
2、将R1与R2的参选接口的优先级设置为0
3、192.168.1.0/24
192.168.1.0/25 ——区域0
192.168.1.0/27 ——骨干链路
192.168.1.32/27 ——R1环回
192.168.1.64/27 ——R2环回
192.168.1.96/27 ——R3环回
192.168.1.128/25 ——区域1
192.168.1.128/30 ——骨干链路
4、区域1可汇总为192.168.1.0/25
然后汇总后可能会被动产生黑洞,设置空接口即可
R4的环回不可宣告,在边界路由器R4宣告缺省路由
4、配置内容
R1:
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 27
[r1-GigabitEthernet0/0/0]int l0
[r1-LoopBack0]ip add 192.168.1.33 27
[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.32 0.0.0.63
[r1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.63
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ospf dr-priority 0
R2:
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.2 27
[r2-GigabitEthernet0/0/0]int l0
[r2-LoopBack0]ip add 192.168.1.65 27
[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.64 0.0.0.63
[r2-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.63
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ospf dr-priority 0
R3:
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.1.3 27
[r3-GigabitEthernet0/0/0]int l0
[r3-LoopBack0]ip add 192.168.1.97 27
[r3]int g 0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.1.129 30
[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.0 0.0.0.63
[r3-ospf-1-area-0.0.0.0]network 192.168.1.96 0.0.0.63
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]network 192.168.1.128 0.0.0.3
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]abr-summary 192.168.1.0 255.255.255.128
[r3]ip route-static 192.168.1.0 25 NULL 0
R4:
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ip add 192.168.1.130 30
[r4-GigabitEthernet0/0/0]int l0
[r4-LoopBack0]ip add 4.4.4.4 24
[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.128 0.0.0.3
[r4]ospf
[r4-ospf-1]default-route-advertise always
5、结果验证
R1的环回访问4.4.4.4
R1通过ospf获得的路由
R1的邻居表
边栏推荐
- General knowledge of network (detailed)
- Lintcode 366:fibonacci Fibonacci sequence
- Flask template injection
- Interpretation of concurrent virtual users, RPS and TPS
- BeanShell脚本获取当前时间
- Dynamic programming problem - Small Soldiers rush forward
- How to configure multiple SSH keys for novices (easy to understand hand-in-hand teaching)
- 网络层协议和IP数据包的格式(详解)
- Use JMeter to test services based on websocket protocol
- Sword finger offer 48 The longest substring without repeated characters
猜你喜欢

echo -e用法

The JMeter BeanShell implementation writes the parameterized data generated by the request to the file

Firewalld 防火墙
![[unity Editor Extension] unity makes its own exclusive editor panel](/img/67/12a4ab5167d4a5fc2aaba5220c8df9.png)
[unity Editor Extension] unity makes its own exclusive editor panel

Sword finger offer 53 - I. find the number I in the sorted array

Network layer protocol and IP packet format (detailed)

Flask template injection

安装软件提示无法定位程序输入点AddDllDirectory于动态链接库Kernel32.dll上(文末有下载地址)

Traversal of binary tree

VLAN and trunk port configuration
随机推荐
postman的json脚本转jmeter的jmx脚本
不会叭不会叭,昨天真有人没写出二进制枚举
深入性能测试数据分析
Test knowledge preparation
YUM仓库服务与PXE自动部署系统
单片机之数码管秒表的动态显示
Leetcode --- one question per day
Sigaga
Performance bottleneck positioning XMIND
Shell脚本case分支语句、扒匿名登录FTP的max地址
[solved] after referring to the local MySQL and forgetting the password, [server] --initialize specified but the data directory has files in it Aborti
Understanding: what is interface and the concept of interface
安装软件提示无法定位程序输入点AddDllDirectory于动态链接库Kernel32.dll上(文末有下载地址)
静态路由(详)
JMeter response time test component & multi interface concurrency
PHP pseudo protocol for command execution
高质量的子程序
Network layer protocol and IP packet format (detailed)
The solution to the bounce and offset of unity3d game characters when jumping to the ground
[unity Editor Extension] unity makes its own exclusive editor panel


