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

ensp配置静态路由与RIP协议

一、简介

RIP是典型的基于矢量计算路由的动态路由协议

RIP会选择经过路由器少的那条,超过15个路由器之后将不会再进行路由传递

RIP适合小型、中型的网络结构,有两个版本,一种不会对ip地址的网段进行特殊的子网掩码设置,只能理解正常的abc三类网络,所以不需要设置子网掩码,abc三类网络固定的子网掩码是多少就是多少

另一种是可以实现子网划分,会自动识别端口对应的ip地址属于哪个子网,我设置子网掩码是多少就是多少

二、实验目的

1、熟练掌握交换机的基本配置命令

2、熟练掌握怎么使用静态路由与RIP协议

3. 熟练掌握交换机端口模式

三、实验内容

需求:

PC端互通

实验设备:

1.交换机S3700×4台;

2.PC×4台;

3.路由器×5台

使用ensp搭建实验环境,如图所示

四、实验步骤

实验步骤:

1.pc端配置

pc1

pc2

pc3

pc4

2.交换机配置

s1

s2

s3

s4

3.路由器配置

R1

R2

R3

R4

R5

4.方法一:静态路由配置

R1

ip route-static 192.168.3.0 30 192.168.2.2

ip route-static 192.168.4.0 24 192.168.2.2

ip route-static 192.168.6.0 30 192.168.2.2

ip route-static 192.168.8.0 24 192.168.2.2

ip route-static 192.168.7.0 24 192.168.5.1

R2

ip route-static 192.168.4.0 24 192.168.3.2

ip route-static 192.168.6.0 30 192.168.3.2

ip route-static 192.168.8.0 24 192.168.3.2

ip route-static 192.168.1.0 24 192.168.2.1

ip route-static 192.168.5.0 30 192.168.2.1

ip route-static 192.168.7.0 24 192.168.2.1

R3

ip route-static 192.168.8.0 24 192.168.6.2

ip route-static 192.168.1.0 24 192.168.3.1

ip route-static 192.168.2.0 30 192.168.3.1

ip route-static 192.168.5.0 30 192.168.3.1

ip route-static 192.168.7.0 24 192.168.3.1

R4

ip route-static 192.168.1.0 24 192.168.5.2

ip route-static 192.168.2.0 30 192.168.5.2

ip route-static 192.168.3.0 30 192.168.5.2

ip route-static 192.168.4.0 24 192.168.5.2

ip route-static 192.168.6.0 30 192.168.5.2

ip route-static 192.168.8.0 24 192.168.5.2

R5

ip route-static 192.168.1.0 24 192.168.6.1

ip route-static 192.168.2.0 30 192.168.6.1

ip route-static 192.168.3.0 30 192.168.6.1

ip route-static 192.168.4.0 24 192.168.6.1

ip route-static 192.168.5.0 30 192.168.6.1

ip route-static 192.168.7.0 24 192.168.6.1

5.方法二:RIP配置

R1

R2

R3

R4

R5

五、实验结果

pc端可以互相ping通


http://www.kler.cn/a/413611.html

相关文章:

  • Harbor安装、HTTPS配置、修改端口后不可访问?
  • 【Java 解释器模式】实现高扩展性的医学专家诊断规则引擎
  • Js-对象-04-JSON
  • 林业产品推荐系统:Spring Boot开发手册
  • 九、Ubuntu Linux操作系统
  • 【自动化Selenium】Python 网页自动化测试脚本(下)
  • 矩阵重新排列——sort函数
  • mysql sql语句 between and 是否边界值
  • 短效IP池如何帮助我们进行原创保护?
  • 【MySQL篇】持久化和非持久化统计信息的深度剖析(第一篇,总共六篇)
  • Oracle SYSTEM 和 SYSAUX 表空间的清理和回收
  • HTML5好看的音乐播放器多种风格(附源码)
  • 使用ENSP实现NAT
  • MySQL 8.0与PostgreSQL 15.8的性能对比
  • 新潮传媒集团创始人张继学将出席创客匠人创始人IP领袖高峰论坛
  • 重构代码之将值类型改为引用类型
  • 03系统设计之商业业务平台(D1_学习前言)
  • C04S06-Shell编程之正则表达式
  • shell脚本基础学习_总结篇(完结)
  • 专属主机服务器和ECS服务器有什么区别?