Packet Tracer - 配置 RIPv2

Packet Tracer - 配置 RIPv2

目标

第 1 部分:配置 RIPv2

第 2 部分:验证配置

拓扑图

背景信息

尽管在现代网络中极少使用 RIP,但是作为了解基本网络路由的基础则十分有用。 在本活动中,您将使用适当的网络语句和被动接口配置默认路由(RIP 版本 2),并验证全连接。

第 1 部分:    配置 RIPv2

步骤 1:    在 R1 上配置 RIPv2。

  1.      使用适当的命令在 R1 上创建默认路由,以使所有互联网流量通过 S0/0/1 离开网络。
  • R1(config)# ip route 0.0.0.0 0.0.0.0 s0/0/1
  1.     进入 RIP 协议配置模式。
  • R1(config)# router rip
  1.      使用 RIP 协议的第 2 版并禁用网络汇总。
  • R1(config-router)# version 2
  • R1(config-router)# no auto-summary
  1.     为连接到 R1 的网络配置 RIP。
  • R1(config-router)# network 192.168.1.0
  • R1(config-router)# network 192.168.2.0
  1.      配置不含路由器的 LAN 端口,这样端口就不会发出任何路由信息。
  • R1(config-router)# passive-interface gig 0/0
  1.      通过其他 RIP 路由器,通告步骤 1a 中配置的默认路由。
  • R1(config-router)# default-information originate
  1.     保存配置。

R1# write

步骤 2:    在 R2 上配置 RIPv2。

  1.      输入 RIP 协议配置模式。
  • R2(config)# router rip
  1.     使用 RIP 协议的第 2 版并禁用网络汇总。
  • R2(config-router)# version 2
  • R2(config-router)# no auto-summary
  1.      为直接连接到 R2 的网络配置 RIP。
  • R2(config-router)# network 192.168.2.0
  • R2(config-router)# network 192.168.3.0
  • R2(config-router)# network 192.168.4.0
  1.     配置不包含路由器的接口,以使其不发送路由信息。
  • R2(config-router)# passive-interface gig 0/0/0
  1.      保存配置。

R2# write

步骤 3:    在 R3 上配置 RIPv2

在 R3 上重复执行步骤 2。

R3(config)# router rip
R3(config-router)# version 2
R3(config-router)# no auto-summary
R3(config-router)# network 192.168.4.0
R3(config-router)# network 192.168.5.0
R3(config-router)# passive-interface gig 0/0/0

R3(config-route)#end

R3#write

第 2 部分:    验证配置

步骤 1:     查看 R1、R2 和 R3 的路由表。

a.     使用适当的命令显示 R1 的路由表。 此时,路由表中会显示 RIP (R) 以及连接的路由 (C) 和本地 (L) 路由。 所有网络都有一个条目。 您还会看到列出了一个默认路由。

b.    查看 R2 和 R3 的路由表。 请注意,每个路由器都有所有 192.168.x.0 网络的完整列表和一个默认路由。

步骤 2:    检验与所有目的地的完全连接。

此时,每个设备都应能够 ping 网络内的每一个其他设备。 此外,所有设备都应能够 ping Web 服务器

实验步骤:

R1:

R1>en

R1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R1(config)#ip route 0.0.0.0 0.0.0.0 s0/0/1

%Default route without gateway, if not a point-to-point interface, may impact performance

R1(config)#router rip

R1(config-router)#version 2

R1(config-router)#no auto-summary

R1(config-router)#network 192.168.1.0

R1(config-router)#network 192.168.2.0

R1(config-router)#passive-interface g0/0

R1(config-router)#default-information originate

R1(config-router)#end

R1#

%SYS-5-CONFIG_I: Configured from console by console

R1#wr

Building configuration...

[OK]

R1#

R2:

R2>en

R2#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R2(config)#router rip

R2(config-router)#versi

R2(config-router)#version 2

R2(config-router)#no au

R2(config-router)#no auto-summary

R2(config-router)#netw

R2(config-router)#network 192.168.2.0

R2(config-router)#network 192.168.3.0

R2(config-router)#network 192.168.4.0

R2(config-router)#pas

R2(config-router)#passive-interface g0/0

R2(config-router)#end

R2#

%SYS-5-CONFIG_I: Configured from console by console

R2#wr

Building configuration...

[OK]

R2#

R3:

R3>en

R3#conf t

Enter configuration commands, one per line. End with CNTL/Z.

R3(config)#rou

R3(config)#router rip

R3(config-router)#version 2

R3(config-router)#no auto-summary

R3(config-router)#network 192.168.4.0

R3(config-router)#network 192.168.5.0

R3(config-router)#passive-interface g0/0

R3(config-router)#end

R3#

%SYS-5-CONFIG_I: Configured from console by console

R3#wr

Building configuration...

[OK]

R3#

实验链接:https://pan.baidu.com/s/1KxHELf9qWUMRq82Fge1nuA?pwd=3218

提取码:3218

--来自百度网盘超级会员V2的分享

  • 3
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

傻傻的心动

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值