实验目的
通过本实验,可以掌握以下技能:
- 配置接口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
实验配置
基本网络配置
首先添加路由器与主机搭建基本的网络拓扑结构(其中三个路由需要分别添加两个以太网接口)
地址信息配置(这里使用图形化操作完成)
sa
twins
gill
PC0
PC1
最后的网络拓扑结构如下
配置RIP协议
sa
Router# Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#router rip Router(config-router)#network 192.168.2.0 Router(config-router)#network 192.168.4.0 Router(config-router)#^Z Router# %SYS-5-CONFIG_I: Configured from console by console Router#
twins
Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#router rip Router(config-router)#network 192.168.2.0 Router(config-router)#network 192.168.3.0 Router(config-router)#^Z Router# %SYS-5-CONFIG_I: Configured from console by console Router#
Gill
Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#router rip Router(config-router)#network 192.168.3.0 Router(config-router)#network 192.168.5.0 Router(config-router)#^Z Router# %SYS-5-CONFIG_I: Configured from console by console Router#
验证RIP协议配置
sa
twins
gill
验证IP设置
sa
twins
gill
最终的网络拓扑图如下(这里将PC改为了Server)
相互ping
sa ping twins
sa ping gill
gill ping twins
gill ping sa
之后使用PC1 ping server0
然后用server0 ping pc1
至此该实验完成!