当前位置:网站首页>HCIP练习(OSPF)
HCIP练习(OSPF)
2022-08-03 07:57:00 【雨天_】
1.配置IP地址和环回
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 12.1.1.1 24
[r1]int lo0
[r1-LoopBack0]ip add 1.1.1.1 24
[r2]int g0/0/0
[r2-GigabitEthernet0/0/1]ip add 12.1.1.2 24
[r2]int g0/0/1
[r2-GigabitEthernet0/0/1]ip add 23.1.1.1 24
[r2]int lo0
[r2-LoopBack0]ip add 2.2.2.2 24
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add 23.1.1.2 24
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 34.1.1.1 24
[r3]int lo0
[r3-LoopBack0]ip add 3.3.3.3 24
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 34.1.1.2 24
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 45.1.1.1 24
[r4]int lo0
[r4-LoopBack0]ip add 4.4.4.4 24
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]ip add 45.1.1.2 24
[r5]int lo0
[r5-LoopBack0]ip add 5.5.5.5 24
(测试)
2.进行OSPF宣告和划分区域
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[r1-ospf-1-area-0.0.0.0]network 12.1.1.1 0.0.0.0
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 12.1.1.2 0.0.0.0
[r2-ospf-1]area 1
[r2-ospf-1-area-0.0.0.0]network 23.1.1.1 0.0.0.0
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]area 1
[r3-ospf-1-area-0.0.0.1]network 23.1.1.2 0.0.0.0
[r3-ospf-1-area-0.0.0.1]network 3.3.3.3 0.0.0.0
[r3-ospf-1-area-0.0.0.1]network 34.1.1.1 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 34.1.1.2 0.0.0.0
[r4-ospf-1]area 2
[r4-ospf-1-area-0.0.0.2]network 4.4.4.4 0.0.0.0
[r4-ospf-1-area-0.0.0.2]network 45.1.1.1 0.0.0.0
[r5]ospf 1 router-id 5.5.5.5
[r5-ospf-1]area 2
[r5-ospf-1-area-0.0.0.2]network 5.5.5.5 0.0.0.0
[r5-ospf-1-area-0.0.0.2]network 45.1.1.2 0.0.0.0
3.配置tunnel
[r2]int t0/0/0
[r2-Tunnel0/0/0]ip add 10.1.1.1 24
[r2-Tunnel0/0/0]tunnel-protocol gre
[r2-Tunnel0/0/0]source 23.1.1.1
[r2-Tunnel0/0/0]destination 34.1.1.2
[r4]int t0/0/0
[r4-Tunnel0/0/0]ip add 10.1.1.2 24
[r4-Tunnel0/0/0]tunnel-protocol gre
[r4-Tunnel0/0/0]source 34.1.1.2
[r4-Tunnel0/0/0]destination 23.1.1.1
4.优化宣告
[r2]ospf 1
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]network 10.1.1.1 0.0.0.0
[r4]ospf 1
[r4-ospf-1]area 0
[r4-ospf-1-area-0.0.0.0]network 10.1.1.2 0.0.0.0
(查看)
查看R2的数据库表
(骨干和非骨干链路都传来一条路由,默认选择骨干链路的路由)
(测试)
5.创建OSPF虚链路
非法ABR获取合法ABR授权后,具有区域间路由共享功能。(合法ABR与非法ABR在同一区域)
[r2]undo int t0/0/0
[r2]ospf 1
[r2-ospf-1]area 1
[r2-ospf-1-area-0.0.0.1]vlink-peer 4.4.4.4
[r4]undo int t0/0/0
[r4]ospf 1
[r4-ospf-1]area 1
[r4-ospf-1-area-0.0.0.1]vlink-peer 2.2.2.2
(查看)
(测试)
边栏推荐
- Daily practice of PMP | Do not get lost in the exam-8.2 (including agility + multiple choice)
- 最佳高质量字体
- 【Kaggle实战】泰坦尼克号生存人数预测(从零到提交到Kaggle再到模型的保存与恢复)
- Roson的Qt之旅#103 QML之标签导航控件TabBar
- 工控机防勒索病毒浅析
- DSP-ADAU1452输出通道配置
- “==”和equals的区别
- AI mid-stage sequence labeling task: three data set construction process records
- 2022下半年软考「高项&集成」复习计划ta来喽~
- Taro框架-微信小程序-调用微信支付
猜你喜欢
随机推荐
ArcEngine (3) zoom in and zoom out through the MapControl control to achieve full-image roaming
greenplum role /user 管理
How does Mysql query two data tables for the same fields in two tables at the same time
“碳中和”愿景下,什么样的数据中心才是我们需要的?
Karatsuba大数乘法的Verilog实现
Dapr 与 NestJs ,实战编写一个 Pub & Sub 装饰器
Roson的Qt之旅#103 QML之标签导航控件TabBar
Transformer、BERT、GPT 论文精读笔记
word之个人设置
23届微软秋招内推
IDEA2021.2安装与配置(持续更新)
WordPress主题-B2美化通用子主题商业运营版
22-08-02 西安 尚医通(02)Vscode、ES6、nodejs、npm、Bable转码器
vim 折叠函数
AI mid-stage sequence labeling task: three data set construction process records
推荐系统-排序层-精排模型:LR、GBDT、Wide&Deep、DCN、DIN、DIEN、MMOE、PLE
uni-app 顶部选项卡吸附效果 demo(整理)
002-字段不为null
RViz报错: Error subscribing: Unable to load plugin for transport ‘compressed‘解决方法
Nanny level explains Transformer