实验五 RIP2路由的配置
实验目的
掌握在路由器上配置RIP2。 实验原理
RIP(routing information protocols,路由信息协议)是应用较早,使用较普遍的IGP(interior gataway protocol,内部网关协议),适用于小型同类网络,是典型的距离矢量协议。
RIP协议跳数做为衡量路径开销的,RIP协议里规定最大跳数为15 这里我们使用RIP v2的版本
RIP v2属于无类路由协议,支持VLSM(变长子网掩码),RIP v2是以组播的形式进行路由信息的更新的,组播地址是224.0.0.9。RIP v2还支持基于端口的认证,提高网络的安全性。 实现功能
实现网络的互连互通,从而实现的共享和传递。 实验拓扑
实验步骤 1连接设备
(1) 根据拓扑图,用3根直通线将PC1,PC2分别民S1,S2的端口fa0/1相连,S1的fa0/2
端口与R1的fa0/1相连
(2) 用一根V35线缆将R1的S1/2与R2的S1/3相连,注意DCE的选择。
2实验配置
(1)R1的配置 R1>en 14
R1>star //进入特权模式
R1#configure terminal //进入全局配置模式 R1(config)#interface fa1/1
R1(config-if)#ip address 1.1.1.254 255.255.255.0 //为fa1/0设置ip地址
R1(config-if)#no shutdown R1(config-if)#exit
R1(config)#interface s1/2
R1(config-if)#clock rate 64000 //将r1设置为DCE R1(config-if)#ip address 2.2.2.1 255.255.255.252 //为s1/2设置ip地址 R1(config-if)#no shutdown R1(config-if)#exit
R1(config)#router rip //开启rip进程 R1(config-router)#network 1.1.1.0
R1(config-router)#network 2.2.2.0 //申明本设备直连网段 R1(config-router)#version 2 //设置为版本2 R1(config-router)#end R1#wr
(2)R2的配置 R2>en 14
R2>star //进入到特权模式
R2#configure terminal //进入到全局配置模式 R2(config)# interface fa1/1
R2(config-if)#ip address 3.3.3.254 255.255.255.0 //为fa1/1设置ip地址 R2(config-if)#no shutdown R2(config-if)#exit
R2(config-if)#interface s1/3
R2(config-if)#ip address 2.2.2.2 255.255.255.252 //为s1/3设置ip地址 R2(config-if)#no shutdown R2(config-if)#exit
R2(config)#router rip //开启rip进程 R2(config-router)#network 3.3.3.0
R2(config-router)#network 2.2.2.0 //申明本设备的直辖网段 R2(config-router)#version 2 //设置版本为2 R2(config-router)#end R2#wr
3测试
R1、R2、PC1、PC2上分别做如下测试: ping 3.3.3.2 ping 3.3.3.254 ping 2.2.2.2 ping 2.2.2.1 ping 1.1.1.254 ping 1.1.1.1
R2#ping 3.3.3.2 Sending 5, 100-byte ICMP Echoes to 3.3.3.2, timeout is 2 seconds: < press Ctrl+C to break > !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms R2#ping 3.3.3.254 Sending 5, 100-byte ICMP Echoes to 3.3.3.254, timeout is 2 seconds: < press Ctrl+C to break > !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms R2#ping 2.2.2.2 Sending 5, 100-byte ICMP Echoes to 2.2.2.2, timeout is 2 seconds: < press Ctrl+C to break > !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms R2#ping 2.2.2.1 Sending 5, 100-byte ICMP Echoes to 2.2.2.1, timeout is 2 seconds: < press Ctrl+C to break > !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 30/30/30 ms R2#ping 1.1.1.254
Sending 5, 100-byte ICMP Echoes to 1.1.1.254, timeout is 2 seconds: < press Ctrl+C to break > !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 30/32/40 ms R2#ping 1.1.1.1
Sending 5, 100-byte ICMP Echoes to 1.1.1.1, timeout is 2 seconds: < press Ctrl+C to break > !!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 30/32/40 ms 实验图片
因篇幅问题不能全部显示,请点此查看更多更全内容