实验来源:工大瑞普Cisco网络技术论坛

说明:我们这里的连线方式和拓扑上的不太一样,具体连线方式为:
                                           Router1 S1/0 <----> Router2 S1/0 
                                           Router3 S1/1 <----> Router2 S1/1 

1.按照拓扑上的要求,配置好各个接口的IP地址;
2.在每台路由器上配置RIP协议:

Router1:
Router(config)#router rip
Router(config-router)#network 172.16.1.0
Router(config-router)#network 10.0.0.0

Router2:
Router(config)#router rip
Router(config-router)#network 10.0.0.0

Router3:
Router(config)#router rip
Router(config-router)#network 10.0.0.0
Router(config-router)#network 192.168.1.0

3.使用ping命令验证3台路由器之间的连通性,我们这里略。
4.查看路由信息:

Router1:
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

172.16.0.0/24 is subnetted, 1 subnets
C       172.16.1.0 is directly connected, Loopback0
     10.0.0.0/24 is subnetted, 2 subnets
R       10.2.2.0 [120/1] via 10.1.1.2, 00:00:25, Serial1/0
C       10.1.1.0 is directly connected, Serial1/0
R    192.168.1.0/24 [120/2] via 10.1.1.2, 00:00:25, Serial1/0

Router2:
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

R    172.16.0.0/16 [120/1] via 10.1.1.1, 00:00:07, Serial1/0
     10.0.0.0/24 is subnetted, 2 subnets
C       10.2.2.0 is directly connected, Serial1/1
C       10.1.1.0 is directly connected, Serial1/0
R    192.168.1.0/24 [120/1] via 10.2.2.2, 00:00:08, Serial1/1

Router3:
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

R    172.16.0.0/16 [120/2] via 10.2.2.1, 00:00:13, Serial1/1
     10.0.0.0/24 is subnetted, 2 subnets
R       10.1.1.0 [120/1] via 10.2.2.1, 00:00:13, Serial1/1
C       10.2.2.0 is directly connected, Serial1/1
C    192.168.1.0/24 is directly connected, Loopback0

5.查看相关路由协议信息,例R1:

Router#show ip protocols 
Routing Protocol is "rip"
  Sending updates every 30 seconds, next due in 22 seconds
  Invalid after 180 seconds, hold down 180, flushed after 240
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Redistributing: rip
  Default version control: send version 1, receive any version
    Interface             Send  Recv  Triggered RIP  Key-chain
    Serial1/0             1     1 2                                  
    Loopback0             1     1 2                                  
  Automatic network summarization is in effect
  Maximum path: 4
  Routing for Networks:
    10.0.0.0
    172.16.0.0
  Routing Information Sources:
    Gateway         Distance      Last Update
    10.1.1.2             120      00:00:11
  Distance: (default is 120)

6.调试,例R1:

Router#debug ip rip
RIP protocol debugging is on
Router#
00:05:15: RIP: received v1 update from 10.1.1.2 on Serial1/0
00:05:15:      10.2.2.0 in 1 hops
00:05:15:      192.168.1.0 in 2 hops
00:05:24: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (10.1.1.1)
00:05:24: RIP: build update entries
00:05:24:       network 172.16.0.0 metric 1
00:05:24: RIP: sending v1 update to 255.255.255.255 via Loopback0 (172.16.1.1)
00:05:24: RIP: build update entries
00:05:24:       network 10.0.0.0 metric 1
00:05:24:       network 192.168.1.0 metric 3

这里我们发现在Loopback0口也发送了广播消息,如果我们不想让Loopback0发送广播,我们就要用到passive-interface的命令来设置被动接口(有关passive-interface解释点击这里),例R1:

Router(config)#router rip
Router(config-router)#passive-interface loopback 0

然后我们再在R1上debug看一下:

Router#debug ip rip
RIP protocol debugging is on
Router#
00:17:58: RIP: received v1 update from 10.1.1.2 on Serial1/0
00:17:58:      10.2.2.0 in 1 hops
00:17:58:      192.168.1.0 in 2 hops
00:17:59: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (10.1.1.1)
00:17:59: RIP: build update entries
00:17:59:       network 172.16.0.0 metric 1

在这里我们找不到有关Loopback0口的信息了。
OK,实验完。

本文转自loveme2351CTO博客,原文链接: http://blog.51cto.com/loveme23/29536,如需转载请自行联系原作者

RIPv1配置(Enabling Rip)相关推荐

  1. 华为网络配置(RIP)

    目录 前言 一.RIP概述 1.RIP简介 2.RIPv1与RIPv2的比较 3.水平分割 4.毒性反转 5.多进程和多实例 6.热备份 7.防止路由环路 8.提升RIP网络的性能 9.特性依赖和限制 ...

  2. 思科模拟器动态路由器的配置(rip)

    实验内容 1.硬件连接 2.地址规划 在R0中:f0/0:29.29.1.254/24  f1/0:29.29.2.254/24 f4/0:29.29.0.1/24 在R1中:f0/0:29.29.3 ...

  3. 三层交换配置及RIP动态路由

    三层交换vlan间通信 1.1 问题 VLAN实现了广播域的隔离,同时也将VLAN间的通信隔离了.三层交换技术使得VLAN间可以通信. 通过三层交换实现VLAN间通信 1.2 方案 为了解决了传统路由 ...

  4. 配置路由协议rip和ospf

    完成拓扑图,并使各个网段的主机可以通信. 1.使用RIP配置动态路由 对R0 Continue with configuration dialog? [yes/no]: no Press RETURN ...

  5. Linux- 动态路由的配置使用——RIP/OSPF

    1 静态路由配置 详见 https://blog.csdn.net/qq_35550345/article/details/86571004 2 概念 路由:网络中两个节点间数据传输的路径.静态路由, ...

  6. 实训十五:路由器RIPV1配置

    一.实验目的 1.掌握动态路由的配置方法 2.理解 RIP 协议的工作过程 二.应用环境 1.在路由器较多的环境里,手工配置静态路由给管理员带来大的工作负担 2.在不太稳定的网络环境里,手工修改表不现 ...

  7. 静态路由配置及RIP配置

    1.静态路由配置 基本概念 静态路由是指由用户或网络管理员手工配置的路由信息.当网络的拓扑结构或链路的状态发生变化时,网络管理员需要手工去修改路由表中相关的静态路由信息.静态路由信息在缺省情况下是私有 ...

  8. HCNA——RIP简单介绍及基本配置

    HCNA--RIP简单介绍及基本配置 路由信息协议RIP 路由信息协议RIP(Routing Information Protocol)的简称,它是一种基于距离矢量(Distance-Vector)算 ...

  9. 华为网络实验--动态路由器+RIP路由协议配置及验证

    华为网络实验–动态路由器+RIP路由协议配置及验证 文章目录 华为网络实验--动态路由器+RIP路由协议配置及验证 前言 一.动态路由 1.1动态路由协议基础 1.1.1动态路由 1.1.2动态路由特 ...

  10. 动态路由协议RIP的深层配置学习

    动态路由协议: 动态路由相比静态路由的区别在于,动态路由是基于拓扑变化而收敛的路由协议.这使得动态路由更适用于复杂的大型网络(静态路由协议需要手工配置,工程量较大).当然动态路由有其他的问题:然如安全 ...

最新文章

  1. 王炸养成记——看Linux 25周年发展变化
  2. extlink.php,ExtJs 学习笔记基础篇 Ext组件的使用_extjs
  3. LeanCloud学习笔记(1)
  4. LINUX服务器出网带宽 一直被占用原因查找
  5. Collection和Collections的区别是什么
  6. Coprime Sequence
  7. 系统学习机器学习之神经网络(三)--GA神经网络与小波神经网络WNN
  8. 实验3:视频播放小程序
  9. 第六届光电设计大赛心得透过毛玻璃成像matlab
  10. HTML编辑器UEditor的简单使用
  11. python算法——字符串表达式的计算
  12. 嵌入式linux lvds,一种嵌入式主板实现双LVDS显示输出的电路及方法与流程
  13. Java 和 || 优先级
  14. 怎么关闭win7计算机一键还原系统,win7一键还原如何进入?一键还原win7系统的教程...
  15. 【C#学习】单个问号的作用
  16. STM32F103 TFTLCD显示实验(一)
  17. 12306订票客户端 FOR .NET 演示项目 【1】项目概况
  18. CSS使用伪类控制边框长度
  19. Lenovo x3650m5 如何进入BIOS
  20. win8计算机上工具选项在哪,Start8、ViStart等八种工具帮你找回Windows 8开始菜单

热门文章

  1. Matlab 2016a 安装及破解方法
  2. w10计算机字体怎么设置在哪里设置,win10电脑系统字体大小如何设置
  3. 解决pytorch的fashion-mnist数据集下载过慢的问题
  4. 仿WPS PDF阅读器
  5. 程序员简历应该怎么写?
  6. CO_P0(logisim)
  7. 西门子S7-1200PLC脉冲控制伺服程序案例 此程序是关于西门子1200PLC以PTO脉冲方式控制伺服电机,步进电机的功能块程序
  8. PC端后台管理系统实现
  9. 如何在线查看某个地方的高程值
  10. matlab里的copula函数,常见copula函数简介