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通

相关推荐
搬码临时工1 小时前
如何把本地服务器变成公网服务器?内网ip网址转换到外网连接访问
运维·服务器·网络·tcp/ip·智能路由器·远程工作·访问公司内网
vortex51 小时前
探索 Shell:选择适合你的命令行利器 bash, zsh, fish, dash, sh...
linux·开发语言·bash·shell·dash
zzc9211 小时前
MATLAB仿真生成无线通信网络拓扑推理数据集
开发语言·网络·数据库·人工智能·python·深度学习·matlab
GalaxyPokemon1 小时前
LeetCode - 148. 排序链表
linux·算法·leetcode
懒羊羊大王呀2 小时前
Ubuntu20.04中 Redis 的安装和配置
linux·redis
杰哥技术分享2 小时前
在 CentOS 上安装 Docker 和 Docker Compose 并配置使用国内镜像源
linux·docker·centos
知更鸟呆呆2 小时前
【Linux操作系统】基础开发工具(yum、vim、gcc/g++)
linux·运维·vim
xiangyong582 小时前
ubuntu系统文件误删(/lib/x86_64-linux-gnu/libc.so.6)修复方案 [成功解决]
linux·ubuntu·gnu
t198751283 小时前
Linux 上的 Tomcat 端口占用排查
linux·tomcat·firefox
小狗爱吃黄桃罐头3 小时前
正点原子[第三期]Arm(iMX6U)Linux移植学习笔记-12.1 Linux内核启动流程简介
linux·arm开发·学习