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

ENSP的简单动态路由rip协议配置

一:网络实验拓扑图绘制

        二:详细动态路由配置过程

        2.1 PC1配置

2.2 PC2配置

2.3 AR1配置

The device is running!
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]return
<R1>saveThe current configuration will be written to the device. Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait..........Configuration file had been saved successfullyNote: The configuration file will take effect after being activated
<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]ip address 12.0.0.1 255.255.255.0
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]quit
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.10.254 255.255.255.0
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]
[R1-GigabitEthernet0/0/0]quit
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]
[R1-GigabitEthernet0/0/1]ip address 12.0.0.1 255.255.255.0
[R1-GigabitEthernet0/0/1]
[R1-GigabitEthernet0/0/1]quit
[R1]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 0Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.10.254/24    up         up        
GigabitEthernet0/0/1              12.0.0.1/24          up         up        
NULL0                             unassigned           up         up(s)     Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log on<R1>saveThe current configuration will be written to the device. Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait........Configuration file had been saved successfullyNote: The configuration file will take effect after being activated
<R1>
[R1]rip
[R1-rip-1]network 192.168.10.0
[R1-rip-1]network 12.0.0.0
[R1-rip-1]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: PublicDestinations : 11       Routes : 11       Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface12.0.0.0/24  Direct  0    0           D   12.0.0.1        GigabitEthernet
0/0/112.0.0.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/112.0.0.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/123.0.0.0/8   RIP     100  1           D   12.0.0.2        GigabitEthernet
0/0/1127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0192.168.10.0/24  Direct  0    0           D   192.168.10.254  GigabitEthernet
0/0/0192.168.10.254/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0192.168.10.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0[R1-rip-1]
[R1-rip-1]display ip routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: PublicDestinations : 12       Routes : 12       Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface12.0.0.0/24  Direct  0    0           D   12.0.0.1        GigabitEthernet
0/0/112.0.0.1/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/112.0.0.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/123.0.0.0/8   RIP     100  1           D   12.0.0.2        GigabitEthernet
0/0/1127.0.0.0/8   Direct  0    0           D   127.0.0.1       InLoopBack0127.0.0.1/32  Direct  0    0           D   127.0.0.1       InLoopBack0
127.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0192.168.10.0/24  Direct  0    0           D   192.168.10.254  GigabitEthernet
0/0/0192.168.10.254/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0192.168.10.255/32  Direct  0    0           D   127.0.0.1       GigabitEthernet
0/0/0192.168.20.0/24  RIP     100  2           D   12.0.0.2        GigabitEthernet
0/0/1
255.255.255.255/32  Direct  0    0           D   127.0.0.1       InLoopBack0

2.4 AR2 配置

AR2:
The device is running!<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sysname R2
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]ip address 12.0.0.2 255.255.255.0
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]
[R2-GigabitEthernet0/0/0]quit
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]
[R2-GigabitEthernet0/0/1]ip address 23.0.0.1 255.255.255.0
[R2-GigabitEthernet0/0/1]
[R2-GigabitEthernet0/0/1]quit
[R2]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 0
Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.0.0.2/24          up         up        
GigabitEthernet0/0/1              23.0.0.1/24          up         up        
NULL0                             unassigned           up         up(s)     Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log on<R2>
<R2>saveThe current configuration will be written to the device. Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait.......
..Configuration file had been saved successfullyNote: The configuration file will take effect after being activated
<R2>[R2]rip
[R2-rip-1]network 12.0.0.0
[R2-rip-1]network 23.0.0.0

2.5 AR3配置

AR3
The device is running!
<Huawei>undo terminal monitor
Info: Current terminal monitor is off.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]
[Huawei]
[Huawei]sysname R3
[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]ip adddress 23.0.0.2 255.255.255.0^
Error: Unrecognized command found at '^' position.
[R3-GigabitEthernet0/0/0]
[R3-GigabitEthernet0/0/0]
[R3-GigabitEthernet0/0/0]
[R3-GigabitEthernet0/0/0]ip address 23.0.0.2 255.255.255.0
[R3-GigabitEthernet0/0/0]
[R3-GigabitEthernet0/0/0]quit
[R3]interfae g0/0/1^
Error: Unrecognized command found at '^' position.
[R3]interface g0/0/1
[R3-GigabitEthernet0/0/1]ip address 192.168.20.254 255.255.255.0
[R3-GigabitEthernet0/0/1]
[R3-GigabitEthernet0/0/1]quit
[R3]return
<R3>saveThe current configuration will be written to the device. Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait.........Configuration file had been saved successfullyNote: The configuration file will take effect after being activated
<R3>
[R3]rip
[R3-rip-1]network 23.0.0.00
[R3-rip-1]network 192.168.20.0

2.6 网络互通结果检查

三:动态路由配置的简单优缺点

        优点:可以简化网络管理的难度(大型网络结构)

        缺点:网络发生变更后,恢复网络时间比较长

http://www.lryc.cn/news/622857.html

相关文章:

  • 广东省省考备考(第七十八天8.16)——资料分析、判断推理(强化训练)
  • Docker目录的迁移
  • GaussDB 数据库架构师修炼(十三)安全管理(3)-行级访问控制
  • 6JSON格式转python并实现数据可视化
  • 在ubuntu系统上离线安装jenkins的做法
  • 零基础学习人工智能的完整路线规划
  • Flink Stream API 源码走读 - window 和 sum
  • (第十七期)HTML图像标签详解:从入门到精通
  • 【完整源码+数据集+部署教程】高尔夫球追踪与识别系统源码和数据集:改进yolo11-LAWDS
  • 【基础-判断】可以通过ohpm uninstall 指令下载指定的三方库
  • 力扣(接雨水)——基于最高柱分割的双指针
  • 【开发技巧】VS2022+QT5+OpenCV4.10开发环境搭建QT Creator
  • 肖臻《区块链技术与应用》第23-26讲 - The DAO事件、BEC事件、反思和总结
  • Qt 关于QString和std::string数据截断的问题- 遇到\0或者0x00如何处理?
  • ★CentOS:MySQL数据备份
  • 三天速通 Vue+Flask+SQLite 项目+阿里云轻量应用级服务器【宝塔面板】②
  • 数学建模Topsis法笔记
  • TOGAF八步一法笔记2
  • 【DL学习笔记】常用数据集总结
  • OpenShift 4.19安装中的变化
  • 民法学学习笔记(个人向) Part.5
  • Protues使用说明及Protues与Keil联合仿真实现点亮小灯和流水灯
  • 【运维心得】三步更换HP笔记本电脑外壳
  • C++基础——内存管理
  • C++实战
  • 《深度解构:构建浏览器端Redis控制台的WebSocket协议核心技术》
  • Linux -- 文件【下】
  • 基于Uni-app+vue3实现微信小程序地图固定中心点范围内拖拽选择位置功能(分步骤详解)
  • 谷歌手机刷机和面具ROOT保姆级别教程
  • ubuntu远程桌面很卡怎么解决?