ensp配置静态路由与RIP协议

一、简介

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

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

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

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

二、实验目的

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

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

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

三、实验内容

需求:

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通

相关推荐
国科安芯31 分钟前
多输出电压条件下同步整流效率测试与优化
网络·单片机·嵌入式硬件·安全
想唱rap1 小时前
Linux开发工具(4)
linux·运维·服务器·开发语言·算法
东方隐侠安全团队-千里1 小时前
第3节 RSA算法开启公钥加密时代
网络·人工智能·算法
robin59112 小时前
Linux-通过端口转发访问数据库
linux·数据库·adb
视觉AI2 小时前
如何查看 Linux 下正在运行的 Python 程序是哪一个
linux·人工智能·python
扣脚大汉在网络2 小时前
如何在centos 中运行arm64程序
linux·运维·centos
lang201509282 小时前
Linux命令行:cat、more、less终极指南
linux·chrome·less
njnu@liyong2 小时前
HTTP-http是什么?
网络·网络协议·http
李宥小哥3 小时前
结构型设计模式2
网络·数据库·设计模式
xian_wwq3 小时前
【学习笔记】《孙子兵法》与网络安全
网络·笔记·学习