CCNA授课之RIP v2实验

CCNA授课之RIP v2实验
2007-06-25 14:30:24
标签: CCNA RIP
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。 http://59099.blog.51cto.com/49099/31678
参考CCIE#9823黄振川的CCNA实验手册(这本实验手册还不错,现在已经绝版了)
 
RIP(Routing information Protocol)是应用较早、使用较普遍的内部网关协议(Interior Gateway Protocol,简称IGP),适用于小型同类网络,是典型的距离向量(distance-vector)协议。文档见RFC1058、RFC1723。
RIP通过广播UDP报文来交换路由信息,每30秒发送一次路由信息更新。RIP提供跳跃计数(hop count)作为尺度来衡量路由距离,跳跃计数是一个包到达目标所必须经过的路由器的数目。如果到相同目标有二个不等速或不同带宽的路由器,但跳跃计数相同,则RIP认为两个路由是等距离的。RIP最多支持的跳数为15,即在源和目的网间所要经过的最多路由器的数目为15,跳数16表示不可达。
1.实验目的
通过本实验,读者可以掌握以下技能:

在路由器上启动RIP协议;

声明相应网络进入RIP路由进程;

查看路由表并理解相关字段含义;

查看RIP协议配置信息;

监测RIP协议相关信息。
R1 R2 R3 之间配置RIP V2 协议,并用PING 命令进行PING 测试,使之PING 通。
实验步骤:
1. R1.R2.R3 上进行底层配置
R1:
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname router1
router1(config)#int s2/1
router1(config-if)#ip address 12.0.0.1 255.255.255.0
router1(config-if)#no shutdown
router1(config-if)#
R2:
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname router2
router2(config)#int s2/1
router2(config-if)#ip address 12.0.0.2 255.255.255.0
router2(config-if)#no shutdown
router2(config-if)#^Z
router2#
R3:
Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname router3
router3(config)#int s2/1
router3(config-if)#ip address 23.0.0.3 255.255.255.0
router3(config-if)#no shutdown
router3(config-if)#
*Jun 22 01:04:28.527: %LINK-3-UPDOWN: Interface Serial2/1, changed state to up^Z
router3#
2. R1.R2.R3 上配置RIP V2 协议
R1:
router1#
router1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
router1(config)#router rip
router1(config-router)#version 2
router1(config-router)#net 12.0.0.0
router1(config-router)#^Z
router1#
R2:
router2#
router2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
router2(config)#router rip
router2(config-router)#version 2
router2(config-router)#net 12.0.0.0
router2(config-router)#net 23.0.0.0
router2(config-router)#^Z
router2#
R3:
router3#
router3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
router3(config)#router rip
router3(config-router)#version 2
router3(config-router)#net 23.0.0.0
router3(config-router)#^Z
router3#
3. show ip route 命令在R1.R2.R3 上查看路由表
R1:
router1#show ip route
Codes: C - connected, S - static, 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
       E1 - OSPF external type 1, E2 - OSPF external type 2
       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
 
R     23.0.0.0/8 [120/1] via 12.0.0.2, 00:00:06, Serial2/1
     12.0.0.0/24 is subnetted, 1 subnets
C        12.0.0.0 is directly connected, Serial2/1
R2:
router2#show ip route
Codes: C - connected, S - static, 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
       E1 - OSPF external type 1, E2 - OSPF external type 2
       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
 
     23.0.0.0/24 is subnetted, 1 subnets
C        23.0.0.0 is directly connected, Serial2/2
     12.0.0.0/24 is subnetted, 1 subnets
     12.0.0.0 is directly connected, Serial2/1
R3:
router3#show ip route
Codes: C - connected, S - static, 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
       E1 - OSPF external type 1, E2 - OSPF external type 2
       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
 
     23.0.0.0/24 is subnetted, 1 subnets
C        23.0.0.0 is directly connected, Serial2/1
R     12.0.0.0/8 [120/1] via 23.0.0.2, 00:00:24, Serial2/1
4. PING 命令在R1.R3 上进行PING 测试
R1:
router1#ping 23.0.0.2
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 23.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/31/84 ms
router1#ping 23.0.0.3
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 23.0.0.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/49/108 ms
router1#
R3:
router3#ping 12.0.0.1
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/53/72 ms
router3#ping 12.0.0.2
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.0.0.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/32/76 ms
router3#
 
测试结果:R1.R3 上的PING 测试全通。

你可能感兴趣的:(职场,休闲,CCNA,rip协议)