思科RIP小实验演示

简介:

RIP: 
公有标准协议;
位于OSI 第 7 层, 套接字: UDP 520
分为 version 1 和 2 
仅适用于小型网络,因为 RIP 传递只能穿越最多15个有效路由器(最多16个)
实验名称:思科RIP小实验
实验拓扑

实验需求:每个路由器的路由表都会自动装入RIP
实验思路:
1. 在每个路由器设置ip
2. 在每个路由器配置RIP
实验验证命令:
show ip protocols
show ip route
show ip route rip

配置命令:
1>en
R1#conf terminal 
Enter configuration commands, one per line. End with 
CNTL/Z.
R1(config)#int f0/0
R1(config-if)#no shu
R1(config-if)#ip add 192.
Dec 14 18:46:21.315: %LINK-3-UPDOWN: Interface 
FastEthernet0/0, changed state to up
Dec 14 18:46:22.315: %LINEPROTO-5-UPDOWN: Line protocol 
on Interface FastEthernet0/0, changed state to up
R1(config-if)#ip add 192.168.12.1 255.255.255.0
R1(config-if)#exi
R1(config)#int l 0
R1(config-if)#ip add 10.10.1.1 255.255.255.0
R1(config-if)#exi
R1(config)#router rip (启用RIP协议)
R1(config-router)#version 2 (配置当前 运行的RIP为version 2 的版本)
R1(config-router)#no auto-summary (关闭自动汇总功能)
R1(config-router)#network 192.168.12.0 (添加直连路由的路由表,把自己有的都加到RIP)
R1(config-router)#network 10.10.1.0 
R1(config-router)#exi
R1(config)#

R2>en
R2#configure t
Enter configuration commands, one per line. End with 
CNTL/Z.
R2(config)#int f0/1
R2(config-if)#no shu
R2(config-if)#ip add 192
Dec 14 18:47:34.407: %LINK-3-UPDOWN: Interface 
FastEthernet0/1, changed state to up
Dec 14 18:47:35.407: %LINEPROTO-5-UPDOWN: Line protocol 
on Interface FastEthernet0/1, changed state to up
R2(config-if)#ip add 192.168.12.2 255.255.255.0
R2(config-if)#exi
R2(config)#int l 0
R2(config-if)#ip add 10.10.2.2 255.255.255.0
R2(config-if)#exi
R2(config)#int f0/0
R2(config-if)#no shu
R2(config-if)#ip add 1
Dec 14 18:48:21.487: %LINK-3-UPDOWN: Interface 
FastEthernet0/0, changed state to up
Dec 14 18:48:22.487: %LINEPROTO-5-UPDOWN: Line protocol 
on Interface FastEthernet0/0, changed state to up
R2(config-if)#ip add 192.168.23.2 255.255.255.0
R2(config-if)#exi
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary 
R2(config-router)#net
R2(config-router)#network 192.168.12.0
R2(config-router)#network 192.168.23.0
R2(config-router)#network 10.10.2.0 
R2(config-router)#

R3>en
R3#configure t
Enter configuration commands, one per line. End with 
CNTL/Z.
R3(config)#int f0/1
R3(config-if)#no shu
R3(config-if)#ip add 192.168
Dec 14 18:48:38.847: %LINK-3-UPDOWN: Interface 
FastEthernet0/1, changed state to up
Dec 14 18:48:39.847: %LINEPROTO-5-UPDOWN: Line protocol 
on Interface FastEthernet0/1, changed state to up
R3(config-if)#ip add 192.168.23.3 255.255.255.0
R3(config-if)#exi
R3(config)#int l 0
R3(config-if)#ip add 10.10.3.3 255.255.255.0
R3(config-if)#exi
R3(config)#int f0/0
R3(config-if)#no shu
R3(config-if)#ip add 192.1
Dec 14 18:49:21.871: %LINK-3-UPDOWN: Interface 
FastEthernet0/0, changed state to up
Dec 14 18:49:22.871: %LINEPROTO-5-UPDOWN: Line protocol 
on Interface FastEthernet0/0, changed state to up
R3(config-if)#ip add 192.168.34.3 255.255.255.0
R3(config-if)#exi
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary 
R3(config-router)#network 192.168.23.0
R3(config-router)#network 192.168.34.0
R3(config-router)#network 10.10.3.0

R4>en
R4#configure t
Enter configuration commands, one per line. End with 
CNTL/Z.
R4(config)#int f0/1
R4(config-if)#no shu
R4(config-if)#ip add 192.168
Dec 14 18:49:54.863: %LINK-3-UPDOWN: Interface 
FastEthernet0/1, changed state to up
Dec 14 18:49:55.863: %LINEPROTO-5-UPDOWN: Line protocol 
on Interface FastEthernet0/1, changed state to up
R4(config-if)#ip add 192.168.34.4 255.255.255.0
R4(config-if)#exi
R4(config)#int l 0
R4(config-if)#ip add 10.10.4.4 255.255.255.0
R4(config-if)#exi
R4(config)#router rip
R4(config-router)#version 2
R4(config-router)#no auto-summary 
R4(config-router)#network 192.168.34.0
R4(config-router)#network 10.10.4.0 
R4(config-router)#end
R4#s
*Dec 14 18:51:04.707: %SYS-5-CONFIG_I: Configured from 
console by console
R4#show ip route
Codes: C - connected, S - static, 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
    i - IS-IS, su - IS-IS summary, 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 192.168.12.0/24 [120/2] via 192.168.34.3, 00:00:14, 
FastEthernet0/1
10.0.0.0/24 is subnetted, 4 subnets
R 10.10.1.0 [120/3] via 192.168.34.3, 00:00:14, 
FastEthernet0/1
R 10.10.2.0 [120/2] via 192.168.34.3, 00:00:14, 
FastEthernet0/1
R 10.10.3.0 [120/1] via 192.168.34.3, 00:00:14, 
FastEthernet0/1
C 10.10.4.0 is directly connected, Loopback0
R 192.168.23.0/24 [120/1] via 192.168.34.3, 00:00:14, 
FastEthernet0/1
C 192.168.34.0/24 is directly connected, 
FastEthernet0/1
R4#show ip route rip
R 192.168.12.0/24 [120/2] via 192.168.34.3, 00:00:05, 
FastEthernet0/1
10.0.0.0/24 is subnetted, 4 subnets
R 10.10.1.0 [120/3] via 192.168.34.3, 00:00:05, 
FastEthernet0/1
R 10.10.2.0 [120/2] via 192.168.34.3, 00:00:05, 
FastEthernet0/1
R 10.10.3.0 [120/1] via 192.168.34.3, 00:00:05, 
FastEthernet0/1
R 192.168.23.0/24 [120/1] via 192.168.34.3, 00:00:05, 
FastEthernet0/1 
R4#show ip protocols 
Routing Protocol is "rip"
Sending updates every 30 seconds, next due in 27 
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 2, receive 
version 2
Interface Send Recv Triggered RIP 
Key-chain
FastEthernet0/1 2 2

Loopback0             2     2                         

Automatic network summarization is not in effect
Maximum path: 4
Routing for Networks:
10.0.0.0
192.168.34.0
Routing Information Sources:
Gateway Distance Last Update
192.168.34.3 120 00:00:00
Distance: (default is 120)

R4#ping 192.168.12.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout 
is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip 
min/avg/max = 12/38/80 ms
R4#



本文转自 linuxpp 51CTO博客,原文链接:http://blog.51cto.com/13505118/2050777,如需转载请自行联系原作者

相关文章
|
存储 数据采集 人工智能
AI时代:云存储加速多模态数据存储与管理创新
阿里云存储产品高级解决方案架构师欧阳雁(乐忱)分享了中国企业在全闪存高端存储市场的快速增长,指出AI大模型的发展推动了企业级存储市场。去年,高端企业级存储闪存占比约为25%,相较于欧美50%的比例,显示出中国在AI领域的巨大增长潜力。演讲涵盖AI业务流程,包括数据预处理、训练和推理的痛点,以及针对这些环节的存储解决方案,强调了稳定、高性能和生命周期管理的重要性。此外,还介绍了数据预处理的全球加速和弹性临时盘技术,训练阶段的高性能存储架构,推理场景的加速器和AI Agent的应用,以及应对大数据业务的存储考量,如对象存储、闪电立方和冷归档存储产品。
39789 20
|
23天前
|
JSON API 数据安全/隐私保护
深度分析淘宝卖家订单详情API接口,用json返回数据
淘宝卖家订单详情API(taobao.trade.fullinfo.get)是淘宝开放平台提供的重要接口,用于获取单个订单的完整信息,包括订单状态、买家信息、商品明细、支付与物流信息等,支撑订单管理、ERP对接及售后处理。需通过appkey、appsecret和session认证,并遵守调用频率与数据权限限制。本文详解其使用方法并附Python调用示例。
|
9月前
|
Go
阿里云可观测 2024 年 11 月产品动态
阿里云可观测 2024 年 11 月产品动态。
153 93
|
Web App开发 存储 监控
|
11天前
|
人工智能 分布式计算 DataWorks
阿里云大数据AI产品月刊-2025年8月
阿里云大数据& AI 产品技术月刊【2025年 8 月】,涵盖 8 月技术速递、产品和功能发布、市场和客户应用实践等内容,帮助您快速了解阿里云大数据& AI 方面最新动态。
93 1
|
2月前
|
监控 数据可视化 API
低代码平台对接API:无需编程快速搭建电商数据中台
低代码平台助力电商企业快速搭建数据中台,通过可视化操作整合京东、淘宝等多平台API,实现库存监控、价格对比、订单分析等功能,降低技术门槛,提升运营效率。
|
Kubernetes 容器 Perl
在k8S中,如何向Pod中指定容器传递环境变量?有哪些方式?
在k8S中,如何向Pod中指定容器传递环境变量?有哪些方式?
|
SQL 分布式计算 MaxCompute
MaxCompute操作报错合集之通过UDF(用户定义函数)请求外部数据库资源并遇到报错,是什么原因
MaxCompute是阿里云提供的大规模离线数据处理服务,用于大数据分析、挖掘和报表生成等场景。在使用MaxCompute进行数据处理时,可能会遇到各种操作报错。以下是一些常见的MaxCompute操作报错及其可能的原因与解决措施的合集。
542 0
|
分布式计算 Hadoop Java
VMware创建Linux虚拟机之(五)Spark完全分布式部署教程
VMware创建Linux虚拟机之(五)Spark完全分布式部署教程
625 0
VMware创建Linux虚拟机之(五)Spark完全分布式部署教程
|
Unix Linux 开发工具
【Linux】从零开始,Linux之Centos7系统部署Python项目
【Linux】从零开始,Linux之Centos7系统部署Python项目