计网实验报告.docx

上传人:b****7 文档编号:9456980 上传时间:2023-02-04 格式:DOCX 页数:51 大小:160.15KB
下载 相关 举报
计网实验报告.docx_第1页
第1页 / 共51页
计网实验报告.docx_第2页
第2页 / 共51页
计网实验报告.docx_第3页
第3页 / 共51页
计网实验报告.docx_第4页
第4页 / 共51页
计网实验报告.docx_第5页
第5页 / 共51页
点击查看更多>>
下载资源
资源描述

计网实验报告.docx

《计网实验报告.docx》由会员分享,可在线阅读,更多相关《计网实验报告.docx(51页珍藏版)》请在冰豆网上搜索。

计网实验报告.docx

计网实验报告

实验一

电子科技大学

实验报告

学生姓名:

学号:

指导教师:

实验地点:

计算机学院三楼机房实验时间:

一、实验室名称:

计算机学院机房

2、实验项目名称:

交换机的基本配置

三、实验学时:

4

四、实验原理:

交换机的管理方式基本分为两种:

带内管理和带外管理。

通过交换机的Console口管理交换机属于带外管理,不占用交换机的网络接口,其特点是需要使用配置线缆,近距离配置。

第一次配置交换机时必须利用Console端口进行配置。

交换机的命令行操作模式,主要包括:

用户模式、特权模式、全局配置模式、端口模式等几种。

●用户模式进入交换机后得到的第一个操作模式,该模式下可以简单查看交换机的软、硬件版本信息,并进行简单的测试。

用户模式提示符为switch>

●特权模式由用户模式进入的下一级模式,该模式下可以对交换机的配置文件进行管理,查看交换机的配置信息,进行网络的测试和调试等。

特权模式提示符为switch#

●全局配置模式属于特权模式的下一级模式,该模式下可以配置交换机的全局性参数(如主机名、登录信息等)。

在该模式下可以进入下一级的配置模式,对交换机具体的功能进行配置。

全局模式提示符为switch(config)#

●端口模式属于全局模式的下一级模式,该模式下可以对交换机的端口进行参数配置。

端口模式提示符为switch(config-if)#

交换机的基本操作命令包括:

●Exit命令是退回到上一级操作模式。

●End命令是指用户从特权模式以下级别直接返回到特权模式。

●交换机命令行支持获取帮助信息、命令的简写、命令的自动补齐、快捷键功能。

配置交换机的设备名称和配置交换机的描述信息必须在全局配置模式下执行。

●Hostname配置交换机的设备名称。

●当用户登录交换机时,你可能需要告诉用户一些必要的信息。

你可以通过设置标题来达到这个目的。

你可以创建两种类型的标题:

每日通知和登录标题。

⏹Bannermotd配置交换机每日提示信息motdmessageoftheday。

⏹Bannerlogin配置交换机登录提示信息,位于每日提示信息之后。

●查看交换机的系统和配置信息命令要在特权模式下执行。

a)Showversion查看交换机的版本信息,可以查看到交换机的硬件版本信息和软件版本信息,用于进行交换机操作系统升级时的依据。

b)Showmac-address-table查看交换机当前的MAC地址表信息。

Showrunning-config查看交换机当前生效的配置信息。

5、实验目的:

掌握交换机命令行各种操作模式的区别,能够使用各种帮助信息,以及用命令进行基本的配置。

6、实验内容:

假设是某公司新进的网管,公司要求你熟悉网络产品,公司采用全系列锐捷网络产品,首先要求你登录交换机,了解、掌握交换机的命令行操作技巧,以及如何使用一些基本命令进行配置。

需要在交换机上熟悉各种不同的配置模式以及如何在配置模式间切换,使用命令进行基本的配置,并熟悉命令行界面的操作技巧。

7、实验器材(设备、元器件):

三层交换机1台

8、实验步骤:

第一步:

交换机各个操作模式直接的切换

第二步:

交换机命令行界面基本功能

第三步:

配置交换机的名称和每日提示信息

第四步:

配置接口状态

第五步:

查看交换机的系统和配置信息

第六步:

保存配置

9、实验数据及结果分析:

SW-1#showrunning-config

Buildingconfiguration...

Currentconfiguration:

984bytes

!

version12.1

noservicetimestampslogdatetimemsec

noservicetimestampsdebugdatetimemsec

noservicepassword-encryption

!

hostnameSW-1

!

!

!

interfaceFastEthernet0/1

duplexhalf

speed10

!

interfaceFastEthernet0/2

!

interfaceFastEthernet0/3

!

interfaceFastEthernet0/4

!

interfaceFastEthernet0/5

!

interfaceFastEthernet0/6

!

interfaceFastEthernet0/7

!

interfaceFastEthernet0/8

!

interfaceFastEthernet0/9

!

interfaceFastEthernet0/10

!

interfaceFastEthernet0/11

!

interfaceFastEthernet0/12

!

interfaceFastEthernet0/13

!

interfaceFastEthernet0/14

!

interfaceFastEthernet0/15

!

interfaceFastEthernet0/16

!

interfaceFastEthernet0/17

!

interfaceFastEthernet0/18

!

interfaceFastEthernet0/19

!

interfaceFastEthernet0/20

!

interfaceFastEthernet0/21

!

interfaceFastEthernet0/22

!

interfaceFastEthernet0/23

!

interfaceFastEthernet0/24

!

interfaceVlan1

noipaddress

shutdown

!

bannermotd^C

^C

!

linecon0

!

linevty04

login

linevty515

login

!

!

end

结果分析:

交换机的基本配置成功。

10、实验结论:

交换机存在不同的配置模式,且各模式之间可以相互转换。

11、总结及心得体会:

本次实验中对交换机的基本配置的学习研究有了新的体会,掌握了计算机上配置交换机的基本配置步骤,交换机命令行各种模式的区别,以及模式之间的切换。

12、对本实验过程及方法、手段的改进建议:

应该给学生看一下真正的交换机,让学生对交换机有基本的了解。

 

报告评分:

指导教师签字:

 

实验二

电子科技大学

实验报告

学生姓名:

学号:

指导教师:

实验地点:

计算机学院三楼机房实验时间:

一、实验室名称:

计算机学院机房

二、实验项目名称:

跨交换机实现VLAN

三、实验学时:

4

四、实验原理:

VLAN(VirtualLocalAreaNetwork,虚拟局域网)是指在一个物理网段内,进行逻辑的划分,划分成若干个虚拟局域网。

VLAN最大的特性是不受物理位置的限制,可以进行灵活的划分。

VLAN具备了一个物理网段所具备的特性。

相同VLAN内的主机可以互相直接访问,不同VLAN间的主机之间互相访问必须经由路由设备进行转发。

广播数据包只可以在本VLAN内进行传播,不能传输到其他VLAN中。

PortVlan是实现VLAN的方式之一,PortVlan是利用交换机的端口进行VLAN的划分,一个端口只能属于一个VLAN。

TagVlan是基于交换机端口的另外一种类型,主要用于实现跨交换机的相同VLAN内主机之间可以直接访问,同时对于不同VLAN的主机进行隔离。

TagVlan遵循了IEEE802.1q协议的标准。

在利用配置了Tagvlan的接口进行数据传输时,需要在数据帧内添加4个字节的802.1q标签信息,用于标识该数据帧属于哪个VLAN,以便于对端交换机接收到数据帧后进行准确的过滤。

五、实验目的:

掌握如何在交换机上划分基于端口的VLAN、如何给VLAN内添加端口,理解跨交换机之间VLAN的特点。

六、实验内容:

假设某企业有两个主要部门:

销售部和技术部,其中销售部门的个人计算机系统连接在不同的交换机上,他们之间需要相互进行通信,但为了数据安全起见,销售部和技术部需要进行相互隔离,现要在交换机上做适当配置来实现这一目标。

通过划分PortVLAN实现交换机的端口隔离,然后使在同一VLAN里的计算机系统能跨交换机进行相互通信,而在不同VLAN里的计算机系统不能进行相互通信。

七、实验器材(设备、元器件):

三层交换机1台

二层交换机1台

8、实验步骤:

第一步:

配置两台交换机的主机名

第二步:

在三层交换机上划分VLAN添加端口

第三步:

在二层交换机上划分VLAN添加端口

第四步:

设置交换机之间的链路为Trunk

第五步:

查看VLAN和Trunk的配置

第六步:

验证配置

9、实验数据及结果分析:

实验数据:

(1)每个交换机的配置文件内容:

L2-SW:

L2-SW#showrunning-config

Buildingconfiguration...

Currentconfiguration:

1224bytes

!

version12.1

noservicetimestampslogdatetimemsec

noservicetimestampsdebugdatetimemsec

noservicepassword-encryption

!

hostnameL2-SW

!

!

!

interfaceFastEthernet0/1

switchportmodetrunk

!

interfaceFastEthernet0/2

!

interfaceFastEthernet0/3

!

interfaceFastEthernet0/4

!

interfaceFastEthernet0/5

!

interfaceFastEthernet0/6

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/7

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/8

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/9

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/10

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/11

!

interfaceFastEthernet0/12

!

interfaceFastEthernet0/13

!

interfaceFastEthernet0/14

!

interfaceFastEthernet0/15

!

interfaceFastEthernet0/16

!

interfaceFastEthernet0/17

!

interfaceFastEthernet0/18

!

interfaceFastEthernet0/19

!

interfaceFastEthernet0/20

!

interfaceFastEthernet0/21

!

interfaceFastEthernet0/22

!

interfaceFastEthernet0/23

!

interfaceFastEthernet0/24

!

interfaceVlan1

noipaddress

shutdown

!

!

linecon0

!

linevty04

login

linevty515

login

!

!

end

L3-SW:

L3-SW#showrunning-config

Buildingconfiguration...

Currentconfiguration:

1613bytes

!

version12.2

noservicetimestampslogdatetimemsec

noservicetimestampsdebugdatetimemsec

noservicepassword-encryption

!

hostnameL3-SW

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interfaceFastEthernet0/1

switchporttrunkencapsulationdot1q

switchportmodetrunk

!

interfaceFastEthernet0/2

!

interfaceFastEthernet0/3

!

interfaceFastEthernet0/4

!

interfaceFastEthernet0/5

!

interfaceFastEthernet0/6

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/7

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/8

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/9

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/10

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/11

switchportaccessvlan20

switchportmodeaccess

!

interfaceFastEthernet0/12

switchportaccessvlan20

switchportmodeaccess

!

interfaceFastEthernet0/13

switchportaccessvlan20

switchportmodeaccess

!

interfaceFastEthernet0/14

switchportaccessvlan20

switchportmodeaccess

!

interfaceFastEthernet0/15

switchportaccessvlan20

switchportmodeaccess

!

interfaceFastEthernet0/16

!

interfaceFastEthernet0/17

!

interfaceFastEthernet0/18

!

interfaceFastEthernet0/19

!

interfaceFastEthernet0/20

!

interfaceFastEthernet0/21

!

interfaceFastEthernet0/22

!

interfaceFastEthernet0/23

!

interfaceFastEthernet0/24

!

interfaceGigabitEthernet0/1

!

interfaceGigabitEthernet0/2

!

interfaceVlan1

noipaddress

shutdown

!

ipclassless

!

!

!

!

!

!

!

linecon0

linevty04

login

!

!

!

end

(2)各个ping的测试结果截图:

从PC3可以ping通PC1

从PC3不能ping通PC2

把PC1移到VLAN20后也不能ping通

结果分析:

VLAN10内的主机可以相互通信,VLAN10和VLAN20内的主机不能相互通信

十、实验结论:

不同虚网之间不能直接通信

11、总结及心得体会:

本次实验让我学会了vlan的配置,机一部了解了vlan这个概念,并熟悉了更多的vlan配置命令,为以后更加复杂vlan配置实验打下了基础

12、对本实验过程及方法、手段的改进建议:

我觉着如果多增加两条虚网,学生的理解应该会跟深刻。

报告评分:

指导教师签字:

 

实验三

电子科技大学

实验报告

学生姓名:

学号:

指导教师:

实验地点:

计算机学院三楼机房实验时间:

一.实验室名称:

计算机学院机房

二、实验项目名称:

利用三层交换机实现VLAN间路由

三、实验学时:

4

四、实验原理:

在交换网络中,通过VLAN对一个物理网络进行了逻辑划分,不同的VLAN之间是无法直接访问的,必须通过三层的路由设备进行连接。

一般利用路由器或三层交换机来实现不同VLAN之间的互相访问。

三层交换机和路由器具备网络层的功能,能够根据数据的IP包头信息,进行选路和转发,从而实现不同网段之间的访问。

直连路由是指:

为三层设备的接口配置IP地址,并且激活该端口,三层设备会自动产生该接口IP所在网段的直连路由信息。

三层交换机实现VLAN互访的原理是,利用三层交换机的路由功能,通过识别数据包的IP地址,查找路由表进行选路转发。

三层交换机利用直连路由可以实现不同VLAN之间的互相访问。

三层交换机给接口配置IP地址,采用SVI(交换虚拟接口)的方式实现VLAN间互连。

SVI是指为交换机中的VLAN创建虚拟接口,并且配置IP地址。

五、实验目的:

掌握如何在三层交换机上配置SVI端口,实现VLAN间的路由。

6、实验内容:

某企业有两个主要部门:

销售部和技术部,其中销售部门的个人计算机系统分散连接在两台交换机上,他们之间需要相互进行通信,销售部和技术部也需要进行相互通信,现要在交换机上做适当配置来实现这一目标。

需要在网络内所有的交换机上配置VLAN,然后在三层交换机上给相应的VLAN设置IP地址,以实现VLAN间的路由。

七、实验器材(设备、元器件):

三层交换机1台

二层交换机1台

八.【实验步骤】

第一步:

配置两台交换机的主机名

第二步:

在三层交换机上划分VLAN添加端口,并设置Trunk

第三步:

在二层交换机上划分VLAN添加端口,并设置Trunk

第四步:

查看VLAN和Trunk的配置

第五步:

验证配置

第六步:

在三层交换机上配置SVI端口

第七步:

启动三层交换机路由转发

第八步:

查看SVI端口的配置

第九步:

验证配置

九、实验数据及结果分析:

(1)交换机的配置文件内容:

L3-SW:

L3-SW#showrunning-config

Buildingconfiguration...

Currentconfiguration:

1681bytes

!

version12.2

noservicetimestampslogdatetimemsec

noservicetimestampsdebugdatetimemsec

noservicepassword-encryption

!

hostnameL3-SW

!

!

!

!

!

iprouting

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interfaceFastEthernet0/1

!

interfaceFastEthernet0/2

!

interfaceFastEthernet0/3

!

interfaceFastEthernet0/4

!

interfaceFastEthernet0/5

!

interfaceFastEthernet0/6

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/7

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/8

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/9

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/10

switchportaccessvlan10

switchportmodeaccess

!

interfaceFastEthernet0/11

switchportaccessvlan20

switchportmodeaccess

!

interfaceFastEthernet0/12

switchportaccessvlan20

switchportmodeaccess

!

interfaceFastEthernet0/13

switchportaccessvlan20

switchportmodeaccess

!

interfaceFastEthernet0/14

switchportaccessvlan20

switchportmodeaccess

!

interfaceFastEthernet0/15

switchportaccessvlan20

switchportmodeaccess

!

interfaceFastEthernet0/16

!

interfaceFastEthernet0/17

!

interfaceFastEthernet0/18

!

interfaceFastEthernet0/19

!

interfaceFastEthernet0/20

!

interfaceFastEthernet0/21

!

interfaceFastEthernet0/22

!

interfaceFastEthernet0/23

!

interfaceFastEthernet0/24

!

interfaceGigabitEthernet0/1

!

in

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 党团工作 > 入党转正申请

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1