网络设计实践报告

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

网络设计实践报告单位:**

班级:**

学号:08

姓名:

任课教师:

湘潭大学

2013年11月

项目名称:配置VLAN(实验四)

一、项目概述

1.将同一交换机上连接的PC机划分为两个VLAN。通过Ping命令检查其正确性。

2.在多个交换机上部署VLAN,并通过干道(trunk)建立交换机间链路。

3.检查同一网段中的主机能否互相拼通,不同网段中的主机相互不能拼通。

二、项目方案

设计原理

系统结构图

设备使用与配置规划

两个交换机通过trunk连接起来。

三、项目实施工艺

1.如上述拓扑图连接主机交换机

2.进行交换机配置,先配置第一个交换机,配置清单如下:

switchA>enable //进入特权模式

switchA#conf t //进入配置子模式 //创建VLAN,2个

Enter configuration commands, one per line. End with CNTL/Z.

switchA(config)#vlan 60 //创建一个vlan 60

2013-11-18 17:11:49 @5-CONFIG:Configured from outband

switchA(config-vlan)#exit

2013-11-18 17:11:57 @5-CONFIG:Configured from outband

switchA(config)#vlan 80 //创建一个vlan 80

2013-11-18 17:12:12 @5-CONFIG:Configured from outband

switchA(config-vlan)#exit

2013-11-18 17:12:17 @5-CONFIG:Configured from outband

switchA(config)#int f0/1 //进入端口1的配置模式

2013-11-18 17:13:20 @5-CONFIG:Configured from outband

switchA(config-if)#sw mode access //设置端口为静态VLAN访问模式

2013-11-18 17:13:30 @5-CONFIG:Configured from outband

switchA(config-if)#sw access vlan 60 //将端口1分配给vlan 60

2013-11-18 17:13:44 @5-CONFIG:Configured from outband

switchA(config-if)#exit

2013-11-18 17:13:49 @5-CONFIG:Configured from outband

switchA(config)#int f0/2

2013-11-18 17:13:58 @5-CONFIG:Configured from outband

switchA(config-if)#sw mode access

2013-11-18 17:14:09 @5-CONFIG:Configured from outband

switchA(config-if)#sw access vlan 80

2013-11-18 17:14:19 @5-CONFIG:Configured from outband

switchA(config-if)#exit

2013-11-18 17:14:24 @5-CONFIG:Configured from outband

switchA(config)#exit

2013-11-18 17:14:34 @5-CONFIG:Configured from outband

switchA#conf //配置VLAN Trunk端口

Enter configuration commands, one per line. End with CNTL/Z.

switchA(config)#int f0/4 //进入端口4的配置模式

2013-11-18 17:15:01 @5-CONFIG:Configured from outband

switchA(config-if)#sw mode trunk //设置当前端口为Trunk模式

2013-11-18 17:15:11 @5-CONFIG:Configured from outband

switchA(config-if)#sw trunk allowed vlan all //设置允许从该端口交换数据的VLAN

2013-11-18 17:15:29 @5-CONFIG:Configured from outband

switchA(config-if)#exit

2013-11-18 17:15:33 @5-CONFIG:Configured from outband

switchA(config)#exit

2013-11-18 17:15:37 @5-CONFIG:Configured from outband

3.配置第二个交换机,配置清单如下:

lin>

lin>enable

Password:

lin#conf t

Enter configuration commands, one per line. End with CNTL/Z.

lin(config)#hostname switchB //修改主机名为switchB

2013-11-18 17:20:43 @5-CONFIG:Configured from outband

switchB(config)#end

2013-11-18 17:20:48 @5-CONFIG:Configured from outband

switchB#conf t

Enter configuration commands, one per line. End with CNTL/Z.

switchB(config)#vlan 60

2013-11-18 17:22:38 @5-CONFIG:Configured from outband

switchB(config-vlan)#exit

2013-11-18 17:22:41 @5-CONFIG:Configured from outband

switchB(config)#vlan 80

2013-11-18 17:22:50 @5-CONFIG:Configured from outband

switchB(config-vlan)#exit

2013-11-18 17:22:52 @5-CONFIG:Configured from outband

switchB(config)#int f0/1

2013-11-18 17:23:14 @5-CONFIG:Configured from outband

switchB(config-if)#sw mode access

2013-11-18 17:23:26 @5-CONFIG:Configured from outband

switchB(config-if)#sw access vlan 80

2013-11-18 17:23:43 @5-CONFIG:Configured from outband

switchB(config-if)#exit

2013-11-18 17:23:47 @5-CONFIG:Configured from outband

switchB(config)#int f0/2

2013-11-18 17:24:03 @5-CONFIG:Configured from outband

switchB(config-if)#sw mode access

2013-11-18 17:24:10 @5-CONFIG:Configured from outband

switchB(config-if)#sw access vlan 60

2013-11-18 17:24:24 @5-CONFIG:Configured from outband

switchB(config-if)#exit

2013-11-18 17:24:31 @5-CONFIG:Configured from outband

switchB(config)#int f0/4

2013-11-18 17:24:59 @5-CONFIG:Configured from outband

switchB(config-if)#sw mode trunk

2013-11-18 17:25:22 @5-CONFIG:Configured from outband

switchB(config-if)#sw trunk allowed vlan all

2013-11-18 17:25:38 @5-CONFIG:Configured from outband

switchB(config-if)#exit

2013-11-18 17:25:40 @5-CONFIG:Configured from outband

四、测试结果分析

1、测试用例与测试工具

运行-->cmd-->ipconfig-->ping 同一网段的IP地址,如:

在IP为,能拼通;

在IP为,能拼通;

在IP为,拼不通;

在IP为,拼不通;

2、测试结果分析

利用干道trunk配置交换机后,相同VLAN的主机能互相通信,不同VLAN的主

机不能相互通信。

五、实验体会

这次实验主要学习了VLAN的基本配置,熟悉了交换机的配置,怎么样把相应端口添加到VLAN中,实现端口之间相互通信。虽然实验中出现了VLAN80中主机可相互通信,但VLAN60不可以相互通信,经检查是因为缺少一个端口配置,最终成功通信。

相关文档
最新文档