1 配置和查看 OSPF协议( 二 )
在配置串行接口时,应按照接口所连接的电缆类型,对连接DCE电缆的接口配置时钟;
在配置以太网接口时,使用了no keepalive命令,以便在不连接网线的情况下,使接口处于激活状态 。
(2)router ospf 100命令启动一个OSPF路由选择协议进程(Process),其中的"100"为进程号 。与配置IGRP和EIGRP协议中的AS号不同的是,在配置OSPF时,并不需要每台路由器中的进程号一致 。AS和进程是完全不同的两个概念 。
(3)network命令使相应酌网段加入OSPF路由进程中,其格式为:
network网络地址(或IP地址)通配码area区域号
在本实验的配置中,使用了相应接口IP地址,并且把通配码写成"0.0.0.0",区域号为0,即主干区域 。
在OSPF的配置中,只要把接口加入到OSPF进程中,此接口所对应的网段就加入到OSPF路由进程中了 。
(4)对于另外2台路由器重复类似的配置,完成OSPF协议的基本配置 。
第2部分:查看IP路由表和测试连通性
下面对配置后的各路由器进行查看和测试,看是否实现了全网的连通 。
在这一部分,我们使用了show ip route、ping、trace等命令 。
监测清单11-1记录了所有的操作及其结果 。
监测清单11-1查看IP路由表并测试连通性
R3#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
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, 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
172.16.0.0/24 is subnetted, 2 subnets
O 172.16.1.0[110/138]via 192.168.1.5,00:00:21,Serial0
C 172.16.3.0 is directly connected, Ethernet0
192.168.1.0/30 is subnetted, 2 subnets
O 192.168.1.0[110/128]via 192.168.1.5,00:00:21,Serial0
C 192.168.1.4 is directly connected, Serial0
R3#
Term_Server#2
[Resuming connection 2 to r2 ... ]
R2#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
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, 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
172.16.0.0/24 is subnetted, 2 subnets
O 172.16.1.0 [110/74] via 192.168.1.1,00:00:43,Serial1
O 172.16.3.0 [110/74] via 192.168.1.6,00:00:43,Serial0
192.168.1.0/30 is subnetted, 2 subnets
C 192.168.1.0 is directly connected, Serial1
C 192.168.1.4 is directly connected, Serial0
R2#ping 172.16.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:
!!!!!
SUCcess rate is 100 percent (5/5), round-tdp min/avg/max =16/18/20 ms
R2#ping 172.163.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max=28/31/32 ms
R2#
Term_Server#1
[Resuming connection 1 to r1 ... ]
R1#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type :
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
推荐阅读
- vivo Y3配置怎么样 vivo Y3性价比高吗 值得买否评测
- 2 配置和查看 OSPF协议
- EXCEL中求和具体操作方法
- 联想Z6 Pro 5G探索版配置怎么样 联想Z6 Pro 5G参数规格详解
- 雏鸡的开食和喂料
- 留存收益和净利润关系是什么
- 和平精英体验服怎么抢号
- 监测和调试 OSPF协议
- 中国和泰国接壤,泰国和中国接壤不
- 小结 配置RIP和IGRP协议