一、实验目的
通过本实验,可以掌握以下技能:
- 配置接口IP地址
- 配置RIPv2协议
- 验证RIPv2协议配置
二、设备需求
- Cisco路由器3台,分别命名为twins、sa和gill。其中twins具有2个以太网接口;sa具有2个以太网接口;gill具有2个以太网接口
- 2条交叉线序双绞线
- 1台access server,及用于反向Telnet的相应电缆
- 1台带有超级终端程序的PC机,以及Console电缆及转接器。
三、拓扑结构及接口IP配置
实验的拓扑结构如下图所示。通过2对交叉线序双绞线分别把twins和sa连接起来、twins和gill连接起来。
各路由器使用的接口及其编号见图的标注。各接口IP地址分配如下:
- twins: F0/0:192.168.10.1 F1/0:192.168.11.1
- sa: F0/0:192.168.10.2 F1/0:192.168.12.1
- gill:F0/0:192.168.15.1 F1/0:192.168.11.2
四、实验配置文档
1.基本网络配置
(1)sa:
Router>
Router>en
Router>enable
Router#con
Router#conf
Router#configure te
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host
Router(config)#hostname sa-sjt
sa-sjt(config)#inte
sa-sjt(config)#interface F
sa-sjt(config)#interface FastEthernet 0/0
sa-sjt(config-if)#ip address 192.168.10.2 255.255.255.0
sa-sjt(config-if)#no shut
sa-sjt(config-if)#no shutdown
sa-sjt(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
sa-sjt(config-if)#exit
sa-sjt(config)#inte
sa-sjt(config)#interface F
sa-sjt(config)#interface FastEthernet 1/0
sa-sjt(config-if)#ip address 192.168.12.1 255.255.255.0
sa-sjt(config-if)#no shut
sa-sjt(config-if)#no shutdown
sa-sjt(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
sa-sjt(config-if)#
(2)twins:
Router>en
Router>enable
Router#conte
Router#conf
Router#configure ter
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host
Router(config)#hostname twins-sjt
twins-sjt(config)#inte
twins-sjt(config)#interface F
twins-sjt(config)#interface FastEthernet 0/0
twins-sjt(config-if)#ip address 192.168.10.1 255.255.255.0
twins-sjt(config-if)#no shut
twins-sjt(config-if)#no shutdown
twins-sjt(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
twins-sjt(config-if)#exit
twins-sjt(config)#inte
twins-sjt(config)#interface F
twins-sjt(config)#interface FastEthernet 1/0
twins-sjt(config-if)#ip address 192.168.11.1 255.255.255.0
twins-sjt(config-if)#no shut
twins-sjt(config-if)#no shutdown
twins-sjt(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
twins-sjt(config-if)#
(3)gill:
Router>en
Router>enable
Router#conf
Router#configure ter
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host
Router(config)#hostname gill-sjt
gill-sjt(config)#int
gill-sjt(config)#interface F
gill-sjt(config)#interface FastEthernet 1/0
gill-sjt(config-if)#ip address 192.168.11.2 255.255.255.0
gill-sjt(config-if)#no shut
gill-sjt(config-if)#no shutdown
gill-sjt(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to up
gill-sjt(config-if)#exit
gill-sjt(config)#int
gill-sjt(config)#interface F
gill-sjt(config)#interface FastEthernet 0/0
gill-sjt(config-if)#ip address 192.168.15.1 255.255.255.0
gill-sjt(config-if)#no shut
gill-sjt(config-if)#no shutdown
gill-sjt(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
gill-sjt(config-if)#
2.配置RIPv2协议
(1)sa:
sa-sjt(config)#router rip
sa-sjt(config-router)#version 2
sa-sjt(config-router)#network 192.168.10.0
sa-sjt(config-router)#network 192.168.12.0
sa-sjt(config-router)#
(2)twins:
twins-sjt(config)#router rip
twins-sjt(config-router)#version 2
twins-sjt(config-router)#network 192.168.10.0
twins-sjt(config-router)#network 192.168.11.0
twins-sjt(config-router)#
(3)gill:
gill-sjt(config)#router rip
gill-sjt(config-router)#version 2
gill-sjt(config-router)#network 192.168.11.0
gill-sjt(config-router)#network 192.168.15.0
gill-sjt(config-router)#
五、验证实验结果
- show ip protocols
(1)sa:
(2)twins:
(3)gill:
- show ip route
该命令显示路由器的IP路由选择表,详细指出了路由器是如何获悉网络和发现路由。该命令如下:
(1) sa:
(2) twins:
(3) gill:
- ping 指令的使用
从sa路由器去ping gill路由器,如果能ping通,说明RIP协议工作正常,如果不能ping通,所以有其他错误存在,需要检查硬件和其他配置。
六、实验总结
- RIPv2是RIPv1的改进版本,是个无类路由协议,在更新中发送子网掩码。
- 在配置完RIP协议后会自动生成一个路由表,从而使得整个网络结构可以相互ping通。
- RIPv2和RIPv1的配置方法大致相同,只是在路由配置后版本选择version 2。
七、附件
下面给出该实验的文件
链接:https://pan.baidu.com/s/1LT5tRyHJQMHsX55yVoIiAA 密码:u0f7