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通

相关推荐
CYRUS_STUDIO16 小时前
用 Frida 控制 Android 线程:kill 命令、挂起与恢复全解析
android·linux·逆向
熊猫李18 小时前
rootfs-根文件系统详解
linux
dessler20 小时前
Hadoop HDFS-高可用集群部署
linux·运维·hdfs
泽泽爱旅行20 小时前
awk 语法解析-前端学习
linux·前端
轻松Ai享生活2 天前
5 节课深入学习Linux Cgroups
linux
白帽黑客沐瑶2 天前
【网络安全就业】信息安全专业的就业前景(非常详细)零基础入门到精通,收藏这篇就够了
网络·安全·web安全·计算机·程序员·编程·网络安全就业
christine-rr2 天前
linux常用命令(4)——压缩命令
linux·服务器·redis
三坛海会大神5552 天前
LVS与Keepalived详解(二)LVS负载均衡实现实操
linux·负载均衡·lvs
東雪蓮☆2 天前
深入理解 LVS-DR 模式与 Keepalived 高可用集群
linux·运维·服务器·lvs
树码小子2 天前
Java网络编程:(socket API编程:TCP协议的 socket API -- 回显程序的服务器端程序的编写)
java·网络·tcp/ip