思科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,如需转载请自行联系原作者

相关文章
|
容器
五:.net core(.NET 6)使用Autofac实现依赖注入
Autofac的简单使用:由于将来可能引用很多包,为了保持统一队形,我们再新建一个类库项目Wsk.Core.Package,当做包的引用集合:
693 0
五:.net core(.NET 6)使用Autofac实现依赖注入
|
8月前
|
SQL 分布式计算 MaxCompute
MaxCompute操作报错合集之通过UDF(用户定义函数)请求外部数据库资源并遇到报错,是什么原因
MaxCompute是阿里云提供的大规模离线数据处理服务,用于大数据分析、挖掘和报表生成等场景。在使用MaxCompute进行数据处理时,可能会遇到各种操作报错。以下是一些常见的MaxCompute操作报错及其可能的原因与解决措施的合集。
350 0
|
9月前
|
Java 测试技术 Python
Selenium帮助你轻松实现浏览器多窗口操作
Selenium帮助你轻松实现浏览器多窗口操作
|
8月前
|
前端开发 Java 应用服务中间件
计算机Java项目|基于SpringBoot的在线视频教育平台的设计与实现
计算机Java项目|基于SpringBoot的在线视频教育平台的设计与实现
114 0
|
存储 Java 测试技术
Java课程在线视频学习系统的设计与实现
Java课程在线视频学习系统的设计与实现
309 0
|
JSON 前端开发 安全
【Java Web项目】基于WebSocket的Web聊天室
本项目的名称为Web聊天室,即类QQ群组聊天,多个用户可以在同一个群组收发消息进行聊天
【Java Web项目】基于WebSocket的Web聊天室
|
6月前
|
Kubernetes 容器 Perl
在k8S中,如何向Pod中指定容器传递环境变量?有哪些方式?
在k8S中,如何向Pod中指定容器传递环境变量?有哪些方式?
|
Java 关系型数据库 MySQL
Java:SpringBoot整合MyBatis-Plus实现MySQL数据库的增删改查
Java:SpringBoot整合MyBatis-Plus实现MySQL数据库的增删改查
548 0
|
定位技术 API 容器
百度地图API的使用教程以及案例(一)
百度地图API的使用教程以及案例

热门文章

最新文章