当前位置: 首页 > article >正文

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)# network 192.168.2.0
  • R2(config-router)# network 192.168.3.0
  • R2(config-router)# network 192.168.4.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的分享


http://www.kler.cn/news/16926.html

相关文章:

  • 少年不懂孔乙己,读懂已是书中人
  • DGIOT智慧农业案例分享
  • 01-Flink Metrics简介
  • Compiler Lab1- 自制词法分析器
  • 【ROS 开发神器 Visual Studio Code 的安装和设置】
  • 理解Hopcroft DFA最小化算法
  • 教育专题讲座(没有答案)
  • ImageJ实践——拟合矩形选区探究(bounding rectangle),左侧优先法则
  • 出道的第八年,依然AI着......
  • Python每日一练(20230505) 课程表 Course Schedule III/IV
  • Java 中的集合框架有哪些?(十四)
  • Leetcode刷题日志2.0
  • 【QT】 Qt高级——Qt自定义标题栏
  • 为什么说网络安全行业是IT行业最后的红利?
  • 【计算机是怎么跑起来的】基础:计算机三大原则
  • 前端架构师-week4-Node多进程开发入门
  • 《用于准确连续非侵入性血压监测的心跳内生物标志物》阅读笔记
  • 3分钟快速了解mysql数据导入到es
  • 【OMNET++】V2X仿真
  • 【Mac教学】如何打开macOS 的最大权限
  • 密码学【java语言】初探究
  • python面向对象三大特性详解 - 封装 继承 多态
  • 第四十八章 管理镜像 - 将备份降级为 DR 异步
  • Three.js--》模型材质与纹理的使用
  • 如何编写高质量代码
  • CentOS7 安装MySQL8
  • 第16章 指令级并行与超标量处理器
  • java获取文件名后缀方法
  • 分布式光伏发电大规模应用,运维难题如何解?
  • 网络应用基础 ——(2023新星计划文章一)