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通

相关推荐
running thunderbolt12 分钟前
Linux:基础IO && 文件系统
linux·运维·性能优化
yangshuo128114 分钟前
风车邮箱系统详细使用指南:Windows与Ubuntu双平台解析
linux·windows·ubuntu
GOATLong19 分钟前
网络基础概念
linux·运维·服务器·网络·arm开发·c++
技术liul1 小时前
如何在iStoreOS DHCP中排除特定IP地址
网络·windows·tcp/ip
谢平康1 小时前
ubuntu扩展逻辑卷并调整文件系统大小步骤
linux·运维·ubuntu
PWRJOY1 小时前
在 Ubuntu 24.04 系统上安装和管理 Nginx
linux·nginx·ubuntu
桃花岛主701 小时前
NAT穿透
服务器·网络·智能路由器
sky.fly2 小时前
路由器重分发(OSPF+RIP),RIP充当翻译官,OSPF充当翻译官
网络·智能路由器
sky.fly2 小时前
思科路由器重分发(静态路由+OSPF动态路由+RIP动态路由)
大数据·网络·智能路由器
网工养成记_121382 小时前
路由协议基础
网络·网络协议·智能路由器