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

RIP实验二扩展配置

第一步:地址规划

设备接口地址
R1G0/0/0192.168.1.1 24
R2G0/0/0192.168.1.2 24
R2G0/0/1192.168.2.1 24
R3G0/0/0192.168.2.2 24
R3G0/0/1192.168.3.1 24
R4G0/0/0192.168.3.2 24
R4G0/0/1192.168.4.1 24
R5G0/0/0192.168.4.2 24
R5G0/0/1192.168.1.3 24

为了方便配置,将各个地址,描述在拓扑图中

第二步:设备配置

R1地址配置

<Huawei>system-view [Huawei]sysname R1 [R1]interface g0/0/0 [R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24

R2地址配置

<Huawei>system-view [Huawei]sysname R2 [R2]interface g0/0/0 [R2-GigabitEthernet0/0/0]ip address 192.168.1.2 24 [R2]interface g0/0/1 [R2-GigabitEthernet0/0/1]ip address 192.168.2.1 24

R3地址配置

<Huawei>system-view [Huawei]sysname R3 [R3]interface g0/0/0 [R3-GigabitEthernet0/0/0]ip address 192.168.2.2 24 [R3]interface g0/0/1 [R3-GigabitEthernet0/0/1]ip address 192.168.3.1 24

R4地址配置

<Huawei>system-view [Huawei]sysname R4 [R4]interface g0/0/0 [R4-GigabitEthernet0/0/0]ip address 192.168.3.2 24 [R4]interface g0/0/1 [R4-GigabitEthernet0/0/1]ip address 192.168.4.1 24

R5地址配置

<Huawei>system-view [R5]interface g0/0/0 [R5-GigabitEthernet0/0/0]ip address 192.168.4.2 24 [R5]interface g0/0/1 [R5-GigabitEthernet0/0/1]ip address 192.168.1.3 24

第三步:测试直连设备间通讯

R1与R2和R5间的通信
[R1]ping 192.168.1.2 PING 192.168.1.2: 56 data bytes, press CTRL_C to break Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=255 time=190 ms Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=60 ms Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=40 ms Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=40 ms Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=40 ms ​ --- 192.168.1.2 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 40/74/190 ms ​ [R1]ping 192.168.1.3 PING 192.168.1.3: 56 data bytes, press CTRL_C to break Reply from 192.168.1.3: bytes=56 Sequence=1 ttl=255 time=140 ms Reply from 192.168.1.3: bytes=56 Sequence=2 ttl=255 time=50 ms Reply from 192.168.1.3: bytes=56 Sequence=3 ttl=255 time=40 ms Reply from 192.168.1.3: bytes=56 Sequence=4 ttl=255 time=50 ms Reply from 192.168.1.3: bytes=56 Sequence=5 ttl=255 time=60 ms ​ --- 192.168.1.3 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 40/68/140 ms

第四步:配置路由

R1配置

[R1]rip 1 [R1-rip-1]version 2 [R1-rip-1]network 192.168.1.0

R2配置

[R2]rip 1 [R2-rip-1]version 2 [R2-rip-1]network 192.168.1.0 [R2-rip-1]network 192.168.2.0

R3配置

[R3]rip 1 [R3-rip-1]version 2 [R3-rip-1]network 192.168.2.0 [R3-rip-1]network 192.168.3.0

R4配置

[R4]rip 1 [R4-rip-1]version 2 [R4-rip-1]network 192.168.3.0 [R4-rip-1]network 192.168.4.0

R5配置

[R5]rip 1 [R5-rip-1]version 2 [R5-rip-1]network 192.168.4.0 [R5-rip-1]network 192.168.1.0

第五步:查看路由表

R1路由表

[R1]display ip routing-table protocol rip Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Public routing table : RIP Destinations : 3 Routes : 4 ​ RIP routing table status : <Active> Destinations : 3 Routes : 4 ​ Destination/Mask Proto Pre Cost Flags NextHop Interface ​ 192.168.2.0/24 RIP 100 1 D 192.168.1.2 GigabitEthernet 0/0/0 192.168.3.0/24 RIP 100 2 D 192.168.1.2 GigabitEthernet 0/0/0 RIP 100 2 D 192.168.1.3 GigabitEthernet 0/0/0 192.168.4.0/24 RIP 100 1 D 192.168.1.3 GigabitEthernet 0/0/0 ​ RIP routing table status : <Inactive> Destinations : 0 Routes : 0 ​

R2路由表

[R2]display ip routing-table protocol rip Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Public routing table : RIP Destinations : 2 Routes : 2 ​ RIP routing table status : <Active> Destinations : 2 Routes : 2 ​ Destination/Mask Proto Pre Cost Flags NextHop Interface ​ 192.168.3.0/24 RIP 100 1 D 192.168.2.2 GigabitEthernet 0/0/1 192.168.4.0/24 RIP 100 1 D 192.168.1.3 GigabitEthernet 0/0/0 ​ RIP routing table status : <Inactive> Destinations : 0 Routes : 0 ​ ​

R3路由表

[R3]display ip routing-table protocol rip Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Public routing table : RIP Destinations : 2 Routes : 2 ​ RIP routing table status : <Active> Destinations : 2 Routes : 2 ​ Destination/Mask Proto Pre Cost Flags NextHop Interface ​ 192.168.1.0/24 RIP 100 1 D 192.168.2.1 GigabitEthernet 0/0/0 192.168.4.0/24 RIP 100 1 D 192.168.3.2 GigabitEthernet 0/0/1 ​ RIP routing table status : <Inactive> Destinations : 0 Routes : 0 ​

R4路由表

[R4]display ip routing-table protocol rip Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Public routing table : RIP Destinations : 2 Routes : 2 ​ RIP routing table status : <Active> Destinations : 2 Routes : 2 ​ Destination/Mask Proto Pre Cost Flags NextHop Interface ​ 192.168.1.0/24 RIP 100 1 D 192.168.4.2 GigabitEthernet 0/0/1 192.168.2.0/24 RIP 100 1 D 192.168.3.1 GigabitEthernet 0/0/0 ​ RIP routing table status : <Inactive> Destinations : 0 Routes : 0 ​ ​

R5路由表

[R5]display ip routing-table protocol rip Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Public routing table : RIP Destinations : 2 Routes : 2 ​ RIP routing table status : <Active> Destinations : 2 Routes : 2 ​ Destination/Mask Proto Pre Cost Flags NextHop Interface ​ 192.168.2.0/24 RIP 100 1 D 192.168.1.2 GigabitEthernet 0/0/1 192.168.3.0/24 RIP 100 1 D 192.168.4.1 GigabitEthernet 0/0/0 ​ RIP routing table status : <Inactive> Destinations : 0 Routes : 0 ​

第六步:测试连通性

R1和4之间的连通性测试

[R1]ping 192.168.3.2 PING 192.168.3.2: 56 data bytes, press CTRL_C to break Request time out Request time out Request time out Reply from 192.168.3.2: bytes=56 Sequence=4 ttl=254 time=40 ms Reply from 192.168.3.2: bytes=56 Sequence=5 ttl=254 time=40 ms ​ --- 192.168.3.2 ping statistics --- 5 packet(s) transmitted 2 packet(s) received 60.00% packet loss round-trip min/avg/max = 40/40/40 ms

R4缺省

​ [R4]interface LoopBack 0 [R4-LoopBack0]ip address 4.4.4.4 24 [R4-LoopBack0]q [R4]rip 1 [R4-rip-1]vers [R4-rip-1]version 2 [R4-rip-1]default-route originate
在R1、R2、R3、R4、R5上面分别查
R1、R2、R3、R5上面查出结果一致,只查一个R1即可
R1
[R1]display ip routing-table protocol rip Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Public routing table : RIP Destinations : 4 Routes : 5 ​ RIP routing table status : <Active> Destinations : 4 Routes : 5 ​ Destination/Mask Proto Pre Cost Flags NextHop Interface ​ 0.0.0.0/0 RIP 100 2 D 192.168.1.3 GigabitEthernet 0/0/0 192.168.2.0/24 RIP 100 1 D 192.168.1.2 GigabitEthernet 0/0/0 192.168.3.0/24 RIP 100 2 D 192.168.1.2 GigabitEthernet 0/0/0 RIP 100 2 D 192.168.1.3 GigabitEthernet 0/0/0 192.168.4.0/24 RIP 100 1 D 192.168.1.3 GigabitEthernet 0/0/0 ​ RIP routing table status : <Inactive> Destinations : 0 Routes : 0
R4需要手动配置
[R4]ip route-static 0.0.0.0 0 loopback 0
R1认证
[R1]interface g0/0/0 [R1-GigabitEthernet0/0/0]rip authentication-mode simple cipher huawei
R2认证
[R2]interface g0/0/0 [R2-GigabitEthernet0/0/0]rip authentication-mode simple cipher huawei [R2]interface g0/0/1 [R2-GigabitEthernet0/0/1]rip authentication-mode simple cipher huawei
R3认证
[R3]interface g0/0/0 [R3-GigabitEthernet0/0/0]rip authentication-mode simple cipher huawei [R3]interface g0/0/1 [R3-GigabitEthernet0/0/1]rip authentication-mode simple cipher huawei ​
R4认证
[R4]interface g0/0/0 [R4-GigabitEthernet0/0/0]rip authentication-mode simple cipher huawei [R4]interface g0/0/1 [R4-GigabitEthernet0/0/1]rip authentication-mode simple cipher huawei
R5认证
[R5]interface g0/0/0 [R5-GigabitEthernet0/0/0]rip authentication-mode simple cipher huawei [R5]interface g0/0/1 [R5-GigabitEthernet0/0/1]rip authentication-mode simple cipher huawei
R2汇总
[R2]interface LoopBack 0 [R2-LoopBack0]ip address 172.16.1.1 24 [R2]interface LoopBack 1 [R2-LoopBack1]ip address 172.16.2.1 24 [R2]interface LoopBack 2 [R2-LoopBack2]ip address 172.16.3.1 24 [R2]rip 1 [R2-rip-1]version 2 [R2-rip-1]network 172.16.0.0 [R2]interface g0/0/0 [R2-GigabitEthernet0/0/0]rip summary-address 172.16.0.0 255.255.252.0 [R2]interface g0/0/1 [R2-GigabitEthernet0/0/1]rip summary-address 172.16.0.0 255.255.252.0 ​
R3汇总
[R3]interface LoopBack 0 [R3-LoopBack0]ip address 172.16.1.1 24 [R3]interface LoopBack 1 [R3-LoopBack1]ip address 172.168.2.1 24 [R3]interface LoopBack 2 [R3-LoopBack2]ip address 172.16.3.1 24 [R3]rip 1 [R3-rip-1]version 2 [R3-rip-1]network 172.16.0.0 [R3]interface g0/0/0 [R3-GigabitEthernet0/0/0]rip summary-address 172.16.0.0 255.255.252.0 [R3]interface g0/0/1 [R3-GigabitEthernet0/0/1]rip summary-address 172.16.0.0 255.255.252.0
R4汇总
[R4]interface LoopBack 0 [R4-LoopBack0]ip address 172.16.1.1 24 [R4]interface LoopBack 1 [R4-LoopBack1]ip address 172.16.2.1 24 [R4]interface LoopBack 2 [R4-LoopBack2]ip address 172.16.3.1 24 [R4]rip 1 [R4-rip-1]version 2 [R4-rip-1]network 172.16.0.0 [R4]interface g0/0/0 [R4-GigabitEthernet0/0/0]rip summary-address 172.16.0.0 255.255.252.0 [R4]interface g0/0/1 [R4-GigabitEthernet0/0/1]rip summary-address 172.161.0.0 255.255.252.0
R2空接口防环路由
[R2]ip route-static 172.16.0.0 22 NULL 0
R3空接口防环路由
[R3]ip route-static 172.16.0.0 22 NULL 0
R4空接口防环路由
[R4]ip route-static 172.16.0.0 22 NULL 0
R5空接口防环路由
[R5]ip route-static 172.16.0.0 22 NULL 0
R1收敛速度
[R1]rip 1 [R1-rip-1]version 2 [R1-rip-1]timers rip 15 90 60 [R1]display rip Public VPN-instance RIP process : 1 RIP version : 2 Preference : 100 Checkzero : Enabled Default-cost : 0 Summary : Enabled Host-route : Enabled Maximum number of balanced paths : 8 Update time : 15 sec Age time : 90 sec Garbage-collect time : 60 sec Graceful restart : Disabled BFD : Disabled Silent-interfaces : None Default-route : Disabled Verify-source : Enabled Networks : 192.168.1.0 Configured peers : None Number of routes in database : 10 Number of interfaces enabled : 1 Triggered updates sent : 0 Number of route changes : 39 Number of replies to queries : 2
R2收敛速度
[R2]rip 1 [R2-rip-1]version 2 [R2-rip-1]timers rip 15 90 60 [R2]display rip Public VPN-instance RIP process : 1 RIP version : 2 Preference : 100 Checkzero : Enabled Default-cost : 0 Summary : Enabled Host-route : Enabled Maximum number of balanced paths : 8 Update time : 15 sec Age time : 90 sec Garbage-collect time : 60 sec Graceful restart : Disabled BFD : Disabled Silent-interfaces : None Default-route : Disabled Verify-source : Enabled Networks : 172.16.0.0 192.168.2.0 192.168.1.0 Configured peers : None Number of routes in database : 11 Number of interfaces enabled : 5 Triggered updates sent : 9 Number of route changes : 21
R3收敛速度
[R3]rip 1 [R3-rip-1]version 2 [R3-rip-1]timers rip 15 90 60 [R3]display rip Public VPN-instance RIP process : 1 RIP version : 2 Preference : 100 Checkzero : Enabled Default-cost : 0 Summary : Enabled Host-route : Enabled Maximum number of balanced paths : 8 Update time : 15 sec Age time : 90 sec Garbage-collect time : 60 sec Graceful restart : Disabled BFD : Disabled Silent-interfaces : None Default-route : Disabled Verify-source : Enabled Networks : 172.16.0.0 192.168.3.0 192.168.2.0 Configured peers : None Number of routes in database : 9 Number of interfaces enabled : 4 Triggered updates sent : 5 Number of route changes : 23
R4收敛速度
[R4]rip 1 [R4-rip-1]version 2 [R4-rip-1]timers rip 15 90 60 [R4]display rip Public VPN-instance RIP process : 1 RIP version : 2 Preference : 100 Checkzero : Enabled Default-cost : 0 Summary : Enabled Host-route : Enabled Maximum number of balanced paths : 8 Update time : 15 sec Age time : 90 sec Garbage-collect time : 60 sec Graceful restart : Disabled BFD : Disabled Silent-interfaces : None Default-route : Originate Always Default-route Cost : 0 Verify-source : Enabled Networks : 172.16.0.0 192.168.4.0 192.168.3.0 Configured peers : None Number of routes in database : 11 Number of interfaces enabled : 5 Triggered updates sent : 5
R5收敛速度
[R5]rip 1 [R5-rip-1]version 2 [R5-rip-1]timers rip 15 90 60 [R5]display rip Public VPN-instance RIP process : 1 RIP version : 2 Preference : 100 Checkzero : Enabled Default-cost : 0 Summary : Enabled Host-route : Enabled Maximum number of balanced paths : 8 Update time : 15 sec Age time : 90 sec Garbage-collect time : 60 sec Graceful restart : Disabled BFD : Disabled Silent-interfaces : None Default-route : Disabled Verify-source : Enabled Networks : 192.168.1.0 192.168.4.0 Configured peers : None Number of routes in database : 10 Number of interfaces enabled : 2 Triggered updates sent : 6 Number of route changes : 27 Number of replies to queries : 0
http://www.jsqmd.com/news/810873/

相关文章:

  • ClawDrive:基于多模态语义检索的AI智能体文件管理系统
  • 北京理工大学LaTeX论文模板终极指南:三步快速完成完美论文排版
  • 杰理之做两个2T1实现4T1 的功能【篇】
  • 终极指南:如何高效维护awesome-stock-resources开源项目
  • 中国Robotaxi发展解析:技术路线、关键玩家与商业化路径
  • 中兴光猫配置解密工具:5分钟快速上手完整指南,轻松解密加密配置文件
  • 告别裸机开发:在RT-Thread Studio中用CAN设备框架快速实现双机通信
  • 【C++】 —— 笔试刷题day_1
  • WeChatExporter实践指南:微信聊天记录本地化备份与查看的完整工作流
  • bplustree实战教程:如何配置和优化索引文件块大小提升数十亿级数据存储性能
  • 告别SSH频繁掉线:深入剖析连接保持机制与实战配置
  • 网站被黑、浏览器报红!从挂马清理、后门查杀到解除黑名单,一套完整应急修复手册
  • 如何快速提升英雄联盟游戏体验:Seraphine智能辅助工具完整指南
  • 5个核心技术解密:APK Installer如何在Windows上实现安卓应用无缝部署
  • 简单学习 --> Lambda表达式
  • 2025届毕业生推荐的六大降AI率神器实际效果
  • Axure RP中文汉化终极指南:3分钟让英文界面变中文的完整教程
  • 终极指南:Shoelace项目结构与架构深度解析
  • 为什么NanoSVG是嵌入式系统和游戏开发的首选SVG解析器
  • 数据产品设计终极指南:如何用awesome-bigdata实现数据驱动开发
  • Pixelify版本更新日志分析:从Beta到v3.0的功能演进
  • 从手动复制到智能流转:5分钟掌握PT资源一键转载的高效革命
  • 工业DC-DC电源选型性能解析:钡特电源 DRB1-12S05LS 与 IB1205LS-1WR3 封装对照互通
  • ChatGLM3性能优化终极指南:不同硬件配置下的推理速度对比与预测
  • Kotlin扩展函数在Android Sunflower中的终极应用:10个提升代码简洁性的技巧
  • 发那科机器人SRVO-348报警:从DCS原理到接触器卡滞的深度诊断
  • 半导体产业回流:从成本中心到价值中心的战略重构
  • c++如何利用std--bitset高效存取数千个开关标志位到二进制文件【详解】
  • VMware Unlocker 3.0:如何在普通PC上安装macOS虚拟机的完整指南
  • Scrapfly MCP Server:为AI助手注入实时网页抓取能力