当前位置:网站首页>HCIA实验(06)
HCIA实验(06)
2022-07-25 09:47:00 【雨天_】

1.进行地址规划
192.168.1.0/24 (划分成两个子网)
192.168.1.0/25 A0(区域0)
192.168.1.0/27 (骨干)
192.168.1.0/29 192.168.1.8/29 192.168.1.16/29 192.168.1.24/29
192.168.1.32/27 R1 192.168.1.64/27 R2 192.168.1.94/27 R3 (用户)
192.168.1.128/25 A1(区域1)

2.配置环回
[r1]int LoopBack 0
[r1-LoopBack0]ip add 192.168.1.33 27
[r2]int LoopBack 0
[r2-LoopBack0]ip add 192.168.1.65 27
[r3]int LoopBack 0
[r3-LoopBack0]ip add 192.168.1.97 27
[r4]int LoopBack 0
[r4-LoopBack0]ip add 4.4.4.4 24
3.配置路由器接口
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 29
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip add 192.168.1.2 29
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 192.168.1.3 29
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.1.129 25
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 192.168.1.130 25
(测试)



4.宣告
[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.255
[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.3 0.0.0.0
[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.97 0.0.0.0
[r3]ospf 1 router-id 4.4.4.4
[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.130 0.0.0.0
(查看r3)

(r3与r1,r2和r4全部正常的建立成了邻接关系)
(查看r4)

5.修改选举结果和优先级
[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 0(放弃选举,只形成DR)
(查看r1和r2)

(当DR为0,全都形成邻居关系,无拓扑交互,无法形成通路)
6.在r4上配置缺省
[r4]ospf 1
[r4-ospf-1]default-route-advertise always
(查看r1的ospf)
(缺省实现)
(测试)


8.(保障更新安全)做认证
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher 123456

9.将区域0的路由汇总,发给区域1
[r3]ospf 1
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]abr-summary 192.168.1.0 255.255.255.128

10.在r3上做一个空接口,防止出现环路
[r3]ip route-static 192.168.1.0 25 NULL 0
边栏推荐
- 6. PXE combines kickstart principle and configuration to realize unattended automatic installation
- 6.PXE结合Kickstart原理和配置实现无人值守自动装机
- Configuration of OSPF protocol (take Huawei ENSP as an example)
- UE4 quickly find the reason for packaging failure
- js 哈希表 01
- C# 类库的生成,使用类库对象对DataGridView 进行数据绑定
- Pytorch code template (CNN)
- 3.信你能理解的!shell脚本之循环语句与函数,数组,冒泡排序
- 云原生IDE:iVX免费的首个通用无代码开发平台
- 美国机场围棋风格可视化专题图:ArcGIS Pro版本
猜你喜欢
随机推荐
Acquisition and compilation of UE4 source code
Vs Code connects to the remote jupyter server
3.跟你思想一样DNS域名解析服务!!!
Open virtual private line network load balancing
js 哈希表 01
Redis usage scenario
淦,为什么 '𠮷𠮷𠮷' .length !== 3 ??
Multithreading - static proxy mode
Storage, computing, distributed storage (collection and sorting is suitable for Xiaobai)
4.隔壁小孩都会的,各种shell符号{}[]等
6.shell之正则表达式
Bug classification and grading
2.介绍部署LAMP平台+DISCUZ论坛
js 哈希表 02
使用Three.js实现炫酷的赛博朋克风格3D数字地球大屏
HCIP实验(02)
Configure FTP virtual user and access control
VLAN configuration and application (take Huawei ENSP as an example)
3、 Five operation modes of unittest test cases
异步Servlet在转转图片服务的实践









