-
实验目的
通过本实验,可以掌握以下技能:
配置接口IP地址。
配置RIP协议。
验证RIP协议配置。 -
设备需求
Cisco路由器3台,分别命名为twins、sa、和gill。其中twins具有2个以太网接口;sa具有2个以太网接口;gill具有2个以太网接口。
2条交叉线序双绞线。
1台access server,及用于反向Telnet的相应电缆。
1台带有超级终端程序的PC机,以及Console电缆及转接器。 -
拓扑结构及配置说明
实验的拓扑结构如图10-3所示。通过2对交叉线序双绞线分别把twins和sa连接起来,twins和gill连接起来。
各路由器使用的接口及其编号见图10-3所示的标注,各接口IP地址分配如下:
twins:E0:192.168.2.1 E1:192.168.3.1
sa:E0:192.168.2.2 E1:192.168.4.1
gill:E0:192.168.3.2 E1:192.168.5.1
-
实验配置
1. 基本网络配置
2. 配置RIP协议 -
验证RIP协议配置:
1. show ip protocols
该命令显示路由器的IP路由选择协议配置,详细说明了协议的配置情况以及协议之间的交互情况,还指出了下一次更新在何时进行。这种细节对诊断配置错误很有帮助,该命令如下:
sa#sh ip protocols
Routing Protocol is “rip”
Sending updates every 30 seconds, next due in 23 seconds
Invalid after 180 seconds, hold down 180, flushed after 240
Outgoing update filter list for all interfaces is
Incoming update filter list for all interfaces is
Redistributing: rip
Default version control: send version 1, receive any version
Interface send Recv Key-chain
Ethernet0/0 1 1 2
Ethernet0/1 1 1 2
Routing for Networks:
192.168.2.0
192.168.4.0
Routing Information Sources:
192.168.2.1 120 00:00:06
Distance: (default is 120)2. show ip route
该命令显示路由器的IP路由选择表,详细指出了路由器是如何获悉网络和发现路由的,该命令如下:
sa#sh 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
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, * - candidate default
U - per-user static route, o -ODRGateway of last resort is not set
192.168.2.0/24 is subnetted, 1 subnets
C 192.168.2.0 is directly connected, Ethernet0/0
192.168.4.0/24 is subnetted, 1 subnets
C 192.168.4.0 is directly connected, Ethernet0/1
192.168.3.0/24 is subnetted, 1 subnets
R 192.168.3.0 [120/1] via 192.168.2.1, 00:07:17, Ethernet0/0
192.168.5.0/24 is subnetted, 1 subnets
R 192.168.5.0 [120/2] via 192.168.2.1, 00:01:18, Ethernet0/03. ping 指令的使用
从sa路由器去ping gill路由器,如果能ping通,说明RIP协议工作正常,如果不能ping通,所以有其他错误存在,需要检查硬件和其他配置。
具体操作如下:
首先设置好三个交换机的端口ip
配置rip协议:
查看路由器当前配置的IPv4路由协议设置:
检验从RIP邻居处接收的路由是否已添加到路由表中。
配置好sa过后,我们在查看gill的路由表,可以看到,同样的。说明配置确实成功了。
从sa路由器去ping gill路由器,能ping通,说明RIP协议工作正常
我们还可以切换rip的版本
这下就可以看到
结束。