新版BSCI实验手册-配置ospf验证,汇总,虚链路
更新时间:2023-05-24 06:58:01 阅读量: 实用文档 文档下载
- 新版bsci整改报告上传推荐度:
- 相关推荐
新版BSCI实验手册-配置ospf验证
新版BSCI实验手册-配置ospf验证,汇总,虚链路 环境:三台路由器串口相连,其它接口配置如图
要求:1.在area 1配置ospf虚链路,router-id如图配置
2.将R1的LOOP口配置ospf手工路由汇总
3.
配置ospf接口验证(R1 和R2)
4.使用show命令查看结果
步骤一: 配置三个路由器接口使其连通。
R1的配置
R1(config)# interface Loopback0
R1(config-if)# ip address 30.1.1.1 255.255.255.0
R1(config)# interface Loopback1
R1(config-if)# ip address 30.1.2.1 255.255.255.0
R1(config)# interface Loopback2
R1(config-if)# ip address 30.1.3.1 255.255.255.0
R1(config)# interface s0
R1(config-if)# ip address 10.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R2的配置
R2(config)# interface Loopback0
R2(config-if)# ip address 50.1.1.1 255.255.255.0
R2(config)# interface s0
R2(config-if)# ip address 10.1.1.2 255.255.255.0
R2(config-if)#clockrate 64000
R2(config-if)#no shutdown
R2(config)# interface s1
新版BSCI实验手册-配置ospf验证
R2(config-if)# ip address 20.1.1.1 255.255.255.0
R2(config-if)#no shutdown
R3的配置
R3(config)# interface Loopback0
R3(config-if)# ip address 40.1.1.1 255.255.255.0
R3(config)# interface s1
R3(config-if)# ip address 20.1.1.2 255.255.255.0
R3(config-if)#clockrate 64000
R3(config)#no shutdown
步骤二: 配置ospf
R1的配置
R1(config)#router ospf 1
启用ospf协议,进程号为1
R1(config-router)#router-id 1.1.1.1
配置router-id
R1(config-router)#network 10.1.1.0 0.0.0.255 area 1
将接口参与到区域1内
R1(config-router)#network 30.1.1.0 0.0.0.255 area 0
将接口参与到区域0内
R1(config-router)#network 30.1.2.0 0.0.0.255 area 0
R1(config-router)#network 30.1.3.0 0.0.0.255 area 0
R2的配置
R2(config)#router ospf 1
R2(config-router)#router-id 2.2.2.2
R2(config-router)#network 10.1.1.0 0.0.0.255 area 1
R2(config-router)#network 20.1.1.0 0.0.0.255 area 2
将接口参与到区域2内
R2(config-router)#network 50.1.1.0 0.0.0.255 area 1
R3的配置
R3(config)#router ospf 2
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 20.1.1.0 0.0.0.255 area 2
R3(config-router)#network 40.1.1.0 0.0.0.255 area 2
步骤三:配置ospf虚链路
R1的配置
新版BSCI实验手册-配置ospf验证
R1(config)#router ospf 1
R1(config-router)# area 1 virtual-link 2.2.2.2 配置虚电路,指对端的router-id
R2的配置
R2(config)#router ospf 1
R2(config-router)# area 1 virtual-link 1.1.1.1
步骤四:配置ospf手工路由汇总
R1的配置
R1(config)#router ospf 1
R1(config-router)# area 0 range 30.1.0.0 255.255.252.0
手工汇总路由
R2的配置
R2(config)#router ospf 1
R2(config-router)# area 0 range 30.1.0.0 255.255.252.0
因你的区域0已经延伸到此
步骤五:配置ospf接口验证(R1 和R2)
R1的配置
R1(config)# interface Serial0
R1(config-if)# ip ospf authentication message-digest
启用验证
R1(config-if)# ip ospf message-digest-key 1 md5 cisco 定义密钥
R2的配置
R2(config)# interface Serial0
R2(config-if)# ip ospf authentication message-digest
R2(config-if)# ip ospf message-digest-key 1 md5 cisco
两端必须一致
步骤六:查看路由表
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
新版BSCI实验手册-配置ospf验证
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
50.0.0.0/32 is subnetted, 1 subnets
O
50.1.1.1 [110/65] via 10.1.1.2, 00:09:41, Serial0
OSPF域内学来的路由条目
20.0.0.0/24 is subnetted, 1 subnets
O IA
20.1.1.0 [110/128] via 10.1.1.2, 00:09:31, Serial0
OSPF域间学来的路由条目
40.0.0.0/32 is subnetted, 1 subnets
O IA
40.1.1.1 [110/129] via 10.1.1.2, 00:09:31, Serial0
10.0.0.0/24 is subnetted, 1 subnets
C
10.1.1.0 is directly connected, Serial0
30.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
C
30.1.3.0/24 is directly connected, Loopback2
C
30.1.2.0/24 is directly connected, Loopback1
C
30.1.1.0/24 is directly connected, Loopback0
O
30.1.0.0/22 is a summary, 00:09:32, Null0
手工汇总的条目
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
新版BSCI实验手册-配置ospf验证
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
50.0.0.0/24 is subnetted, 1 subnets
C
50.1.1.0 is directly connected, Loopback0
20.0.0.0/24 is subnetted, 1 subnets
C
20.1.1.0 is directly connected, Serial1
40.0.0.0/32 is subnetted, 1 subnets
O
40.1.1.1 [110/65] via 20.1.1.2, 00:04:48, Serial1
10.0.0.0/24 is subnetted, 1 subnets
C
10.1.1.0 is directly connected, Serial0
30.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
O
30.1.2.1/32 [110/65] via 10.1.1.1, 00:04:38, Serial0
O
30.1.3.1/32 [110/65] via 10.1.1.1, 00:04:39, Serial0
O
30.1.0.0/22 is a summary, 00:04:39, Null0
O
30.1.1.1/32 [110/65] via 10.1.1.1, 00:04:39, Serial0
R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
新版BSCI实验手册-配置ospf验证
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
50.0.0.0/32 is subnetted, 1 subnets
O IA
50.1.1.1 [110/65] via 20.1.1.1, 00:02:02, Serial1
20.0.0.0/24 is subnetted, 1 subnets
C
20.1.1.0 is directly connected, Serial1
40.0.0.0/24 is subnetted, 1 subnets
C
40.1.1.0 is directly connected, Loopback0
10.0.0.0/24 is subnetted, 1 subnets
O IA
10.1.1.0 [110/128] via 20.1.1.1, 00:02:02, Serial1
30.0.0.0/22 is subnetted, 1 subnets
O IA
30.1.0.0 [110/129] via 20.1.1.1, 00:01:47, Serial1
步骤七:查看邻居表
R1#show ip ospf neighbor
邻居已建立,点对点无DR之说
Neighbor ID
Pri
State
新版BSCI实验手册-配置ospf验证
Dead Time
Address
Interface
2.2.2.2
1
FULL/
-
00:00:33
10.1.1.2
Serial0
R2#show ip ospf neighbor
Neighbor ID
Pri
State
Dead Time
Address
Interface
1.1.1.1
1
FULL/
-
00:00:33
10.1.1.1
Serial0
3.3.3.3
1
FULL/
-
00:00:34
20.1.1.2
Serial1
R3#show ip ospf neighbor
Neighbor ID
Pri
State
Dead Time
Address
Interface
2.2.2.2
新版BSCI实验手册-配置ospf验证
1
FULL/
-
00:00:37
20.1.1.1
Serial1
步骤八:用ping命令测试
R1#ping 40.1.1.1 测试连通性
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/60/68 ms
R1#ping 50.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/36 ms
R2#ping 30.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/32/32 ms
步骤九:显示当前配置信息
R1的配置信息
R1#sh run
hostname R1
!
interface Loopback0
ip address 30.1.1.1 255.255.255.0
!
interface Loopback1
ip address 30.1.2.1 255.255.255.0
!
interface Loopback2
ip address 30.1.3.1 255.255.255.0
!
interface Serial0
新版BSCI实验手册-配置ospf验证
ip address 10.1.1.1 255.255.255.0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 cisco !
router ospf 1
router-id 1.1.1.1
area 0 range 30.1.0.0 255.255.252.0
area 1 virtual-link 2.2.2.2
network 10.1.1.0 0.0.0.255 area 1
network 30.1.1.0 0.0.0.255 area 0
network 30.1.2.0 0.0.0.255 area 0
network 30.1.3.0 0.0.0.255 area 0 end
R2#sh run
hostname R2
interface Loopback0
ip address 50.1.1.1 255.255.255.0 !
interface Serial0
ip address 10.1.1.2 255.255.255.0
ip ospf authentication message-digest
ip ospf message-digest-key 1 md5 cisco
clockrate 64000
!
interface Serial1
ip address 20.1.1.1 255.255.255.0 !
router ospf 1
新版BSCI实验手册-配置ospf验证
router-id 2.2.2.2
area 0 range 30.1.0.0 255.255.252.0
area 1 virtual-link 1.1.1.1
network 10.1.1.0 0.0.0.255 area 1
network 20.1.1.0 0.0.0.255 area 2
network 50.1.1.0 0.0.0.255 area 1 end
R3#sh run
Hostname R3
!
interface Loopback0
ip address 40.1.1.1 255.255.255.0 !
interface Serial1
ip address 20.1.1.2 255.255.255.0
clockrate 64000
!
router ospf 2
router-id 3.3.3.3
network 20.1.1.0 0.0.0.255 area 2
network 40.1.1.0 0.0.0.255 area 2 end
正在阅读:
新版BSCI实验手册-配置ospf验证,汇总,虚链路05-24
马克思主义中国化理论成果的精髓之实事求是04-09
体育理论考试201-22
社区关工委汇报材料09-24
中国历代疆域政区的演变06-01
2011计算机考研组成原理知识点讲解(含例题解析) - 图文03-11
100以内数的加减法(一)备课11-26
计算机网络技术试题及答案03-20
辽师大版快乐英语三年级下册教案精品05-04
- 教学能力大赛决赛获奖-教学实施报告-(完整图文版)
- 互联网+数据中心行业分析报告
- 2017上海杨浦区高三一模数学试题及答案
- 招商部差旅接待管理制度(4-25)
- 学生游玩安全注意事项
- 学生信息管理系统(文档模板供参考)
- 叉车门架有限元分析及系统设计
- 2014帮助残疾人志愿者服务情况记录
- 叶绿体中色素的提取和分离实验
- 中国食物成分表2020年最新权威完整改进版
- 推动国土资源领域生态文明建设
- 给水管道冲洗和消毒记录
- 计算机软件专业自我评价
- 高中数学必修1-5知识点归纳
- 2018-2022年中国第五代移动通信技术(5G)产业深度分析及发展前景研究报告发展趋势(目录)
- 生产车间巡查制度
- 2018版中国光热发电行业深度研究报告目录
- (通用)2019年中考数学总复习 第一章 第四节 数的开方与二次根式课件
- 2017_2018学年高中语文第二单元第4课说数课件粤教版
- 上市新药Lumateperone(卢美哌隆)合成检索总结报告
- 链路
- 汇总
- 新版
- 验证
- 配置
- 实验
- 手册
- BSCI
- ospf