CISCO 配置实验--OSPF
原创
©著作权归作者所有:来自51CTO博客作者h248137333的原创作品,请联系作者获取转载授权,否则将追究法律责任
OSPF开放式最短路径优先
拓扑图:
配置OSPF
r1(config)#router ospf 1
r1(config-router)# network 10.0.0 .0 0.255.255.255 area 1
r1(config-router)# network 192.168.10.0 0.0.0 .255 area 1
r1(config-router)# network 192.168.60.0 0.0.0 .255 area 1
r2(config)#router ospf 1
r2(config-router)# network 192.168.10.0 0.0.0 .255 area 1
r2(config-router)# network 192.168.20.0 0.0.0 .255 area 1
r3(config)#router ospf 1
r3(config-router)# network 192.168.20.0 0.0.0 .255 area 1
r3(config-router)# network 192.168.30.0 0.0.0 .255 area 1
r4(config)#router ospf 1
r4(config-router)# network 192.168.50.0 0.0.0 .255 area 1
r4(config-router)# network 192.168.60.0 0.0.0 .255 area 1
r5(config)#router ospf 1
r5(config-router)# network 192.168.40.0 0.0.0 .255 area 1
r5(config-router)# network 192.168.50.0 0.0.0 .255 area 1
r6(config)#router ospf 1
r6(config-router)# network 172.168.0.0 0.0.255.255 area 1
r6(config-router)# network 192.168.30.0 0.0.0 .255 area 1
r6(config-router)# network 192.168.40.0 0.0.0 .255 area 1
验证OSPF协议
r1#show ip route
C 10.0.0 .0/8 is directly connected, FastEthernet0/0
O 172.168.0.0/16 [110/193] via 192.168.60.2, 00:07:24, Serial0/1
[110/193] via 192.168.10.2, 00:07:24, Serial0/0
C 192.168.10.0/24 is directly connected, Serial0/0
O 192.168.20.0/24 [110/128] via 192.168.10.2, 00:07:24, Serial0/0
O 192.168.30.0/24 [110/192] via 192.168.10.2, 00:07:24, Serial0/0
O 192.168.40.0/24 [110/192] via 192.168.60.2, 00:07:24, Serial0/1
O 192.168.50.0/24 [110/128] via 192.168.60.2, 00:07:24, Serial0/1
C 192.168.60.0/24 is directly connected, Serial0/1
r2#show ip route
O 10.0.0 .0/8 [110/65] via 192.168.10.1, 00:09:43, Serial0/0
O 172.168.0.0/16 [110/129] via 192.168.20.2, 00:09:33, Serial0/1
C 192.168.10.0/24 is directly connected, Serial0/0
C 192.168.20.0/24 is directly connected, Serial0/1
O 192.168.30.0/24 [110/128] via 192.168.20.2, 00:09:33, Serial0/1
O 192.168.40.0/24 [110/192] via 192.168.20.2, 00:09:33, Serial0/1
O 192.168.50.0/24 [110/192] via 192.168.10.1, 00:09:33, Serial0/0
O 192.168.60.0/24 [110/128] via 192.168.10.1, 00:09:43, Serial0/0
r3#show ip route
O 10.0.0 .0/8 [110/129] via 192.168.20.1, 00:10:09, Serial0/0
O 172.168.0.0/16 [110/65] via 192.168.30.2, 00:10:09, Serial0/1
O 192.168.10.0/24 [110/128] via 192.168.20.1, 00:10:09, Serial0/0
C 192.168.20.0/24 is directly connected, Serial0/0
C 192.168.30.0/24 is directly connected, Serial0/1
O 192.168.40.0/24 [110/128] via 192.168.30.2, 00:10:09, Serial0/1
O 192.168.50.0/24 [110/192] via 192.168.30.2, 00:09:59, Serial0/1
O 192.168.60.0/24 [110/192] via 192.168.20.1, 00:10:09, Serial0/0
r4#show ip route
O 10.0.0 .0/8 [110/65] via 192.168.60.1, 00:10:40, Serial0/0
O 172.168.0.0/16 [110/129] via 192.168.50.1, 00:10:40, Serial0/1
O 192.168.10.0/24 [110/128] via 192.168.60.1, 00:10:40, Serial0/0
O 192.168.20.0/24 [110/192] via 192.168.60.1, 00:10:40, Serial0/0
O 192.168.30.0/24 [110/192] via 192.168.50.1, 00:10:40, Serial0/1
O 192.168.40.0/24 [110/128] via 192.168.50.1, 00:10:40, Serial0/1
C 192.168.50.0/24 is directly connected, Serial0/1
C 192.168.60.0/24 is directly connected, Serial0/0
r5#show ip route
O 10.0.0 .0/8 [110/129] via 192.168.50.1, 00:11:02, Serial0/0
O 172.168.0.0/16 [110/65] via 192.168.40.2, 00:11:02, Serial0/1
O 192.168.10.0/24 [110/192] via 192.168.50.1, 00:11:02, Serial0/0
O 192.168.20.0/24 [110/192] via 192.168.40.2, 00:11:02, Serial0/1
O 192.168.30.0/24 [110/128] via 192.168.40.2, 00:11:02, Serial0/1
C 192.168.40.0/24 is directly connected, Serial0/1
C 192.168.50.0/24 is directly connected, Serial0/0
O 192.168.60.0/24 [110/128] via 192.168.50.1, 00:11:02, Serial0/0
r6#show ip route
O 10.0.0 .0/8 [110/193] via 192.168.40.1, 00:11:12, Serial0/0
[110/193] via 192.168.30.1, 00:11:12, Serial0/1
C 172.168.0.0/16 is directly connected, FastEthernet0/0
O 192.168.10.0/24 [110/192] via 192.168.30.1, 00:11:12, Serial0/1
O 192.168.20.0/24 [110/128] via 192.168.30.1, 00:11:22, Serial0/1
C 192.168.30.0/24 is directly connected, Serial0/1
C 192.168.40.0/24 is directly connected, Serial0/0
O 192.168.50.0/24 [110/128] via 192.168.40.1, 00:11:22, Serial0/0
O 192.168.60.0/24 [110/192] via 192.168.40.1, 00:11:12, Serial0/0
下一篇:虚拟局域网命令解释
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
OSPF单区域实验
华为HCIP-Datacom实验系列-OSPF单区域
OSPF Ethernet IP -
OSPF多区域实验
华为HCIP-Datacom实验系列之OSPF多区域实验
OSPF Ethernet IP -
Cisco ❀ OSPF实验应用
该实验详细的综合了OSPF的多个知识点 拓扑要求: (1)R1/R2/R3与SW在area 1内;R3/R4/R5/R6/R7在
OSPF Cisco ide 路由表 链路 -
CISCO OSPF-NSSA实验
OSPF-NSSA实验 配置R3的f0/0 f1/0,R4,R5
ospf network router -
Cisco OSPF基础配置
ospf
cisco