【网络设备配置与管理实验五】RIPv2 协议配置

一、实验目的

通过本实验,可以掌握以下技能:

  • 配置接口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)#

五、验证实验结果

  1. show ip protocols
    (1)sa:

sa-sjt#show ip protocols

(2)twins:

twins-sjt#show ip protocols

(3)gill:

gill-sjt#show ip protocols

  1. show ip route
    该命令显示路由器的IP路由选择表,详细指出了路由器是如何获悉网络和发现路由。该命令如下:
    (1) sa:

sa-sjt#show ip route

(2) twins:

twins-sjt#show ip route

(3) gill:

gill-sjt#show ip route

  1. ping 指令的使用
    从sa路由器去ping gill路由器,如果能ping通,说明RIP协议工作正常,如果不能ping通,所以有其他错误存在,需要检查硬件和其他配置。

ping 192.168.15.1

六、实验总结

  1. RIPv2是RIPv1的改进版本,是个无类路由协议,在更新中发送子网掩码。
  2. 在配置完RIP协议后会自动生成一个路由表,从而使得整个网络结构可以相互ping通。
  3. RIPv2和RIPv1的配置方法大致相同,只是在路由配置后版本选择version 2。

七、附件

下面给出该实验的文件

链接:https://pan.baidu.com/s/1LT5tRyHJQMHsX55yVoIiAA 密码:u0f7

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值