网络设计实践报告单位:**班级:**学号:2010551008 姓名:任课教师:湘潭大学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 602013-11-18 17:11:49 @5-CONFIG:Configured from outbandswitchA(config-vlan)#exit2013-11-18 17:11:57 @5-CONFIG:Configured from outbandswitchA(config)#vlan 80 //创建一个vlan 802013-11-18 17:12:12 @5-CONFIG:Configured from outbandswitchA(config-vlan)#exit2013-11-18 17:12:17 @5-CONFIG:Configured from outbandswitchA(config)#int f0/1 //进入端口1的配置模式2013-11-18 17:13:20 @5-CONFIG:Configured from outbandswitchA(config-if)#sw mode access //设置端口为静态VLAN访问模式2013-11-18 17:13:30 @5-CONFIG:Configured from outbandswitchA(config-if)#sw access vlan 60 //将端口1分配给vlan 602013-11-18 17:13:44 @5-CONFIG:Configured from outbandswitchA(config-if)#exit2013-11-18 17:13:49 @5-CONFIG:Configured from outbandswitchA(config)#int f0/22013-11-18 17:13:58 @5-CONFIG:Configured from outbandswitchA(config-if)#sw mode access2013-11-18 17:14:09 @5-CONFIG:Configured from outbandswitchA(config-if)#sw access vlan 802013-11-18 17:14:19 @5-CONFIG:Configured from outbandswitchA(config-if)#exit2013-11-18 17:14:24 @5-CONFIG:Configured from outbandswitchA(config)#exit2013-11-18 17:14:34 @5-CONFIG:Configured from outbandswitchA#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 outbandswitchA(config-if)#sw mode trunk //设置当前端口为Trunk模式2013-11-18 17:15:11 @5-CONFIG:Configured from outbandswitchA(config-if)#sw trunk allowed vlan all //设置允许从该端口交换数据的VLAN2013-11-18 17:15:29 @5-CONFIG:Configured from outbandswitchA(config-if)#exit2013-11-18 17:15:33 @5-CONFIG:Configured from outbandswitchA(config)#exit2013-11-18 17:15:37 @5-CONFIG:Configured from outband3.配置第二个交换机,配置清单如下:lin>lin>enablePassword:lin#conf tEnter configuration commands, one per line. End with CNTL/Z.lin(config)#hostname switchB //修改主机名为switchB2013-11-18 17:20:43 @5-CONFIG:Configured from outbandswitchB(config)#end2013-11-18 17:20:48 @5-CONFIG:Configured from outbandswitchB#conf tEnter configuration commands, one per line. End with CNTL/Z.switchB(config)#vlan 602013-11-18 17:22:38 @5-CONFIG:Configured from outbandswitchB(config-vlan)#exit2013-11-18 17:22:41 @5-CONFIG:Configured from outbandswitchB(config)#vlan 802013-11-18 17:22:50 @5-CONFIG:Configured from outbandswitchB(config-vlan)#exit2013-11-18 17:22:52 @5-CONFIG:Configured from outbandswitchB(config)#int f0/12013-11-18 17:23:14 @5-CONFIG:Configured from outbandswitchB(config-if)#sw mode access2013-11-18 17:23:26 @5-CONFIG:Configured from outbandswitchB(config-if)#sw access vlan 802013-11-18 17:23:43 @5-CONFIG:Configured from outbandswitchB(config-if)#exit2013-11-18 17:23:47 @5-CONFIG:Configured from outbandswitchB(config)#int f0/22013-11-18 17:24:03 @5-CONFIG:Configured from outbandswitchB(config-if)#sw mode access2013-11-18 17:24:10 @5-CONFIG:Configured from outbandswitchB(config-if)#sw access vlan 602013-11-18 17:24:24 @5-CONFIG:Configured from outbandswitchB(config-if)#exit2013-11-18 17:24:31 @5-CONFIG:Configured from outbandswitchB(config)#int f0/42013-11-18 17:24:59 @5-CONFIG:Configured from outbandswitchB(config-if)#sw mode trunk2013-11-18 17:25:22 @5-CONFIG:Configured from outbandswitchB(config-if)#sw trunk allowed vlan all2013-11-18 17:25:38 @5-CONFIG:Configured from outbandswitchB(config-if)#exit2013-11-18 17:25:40 @5-CONFIG:Configured from outband四、测试结果分析1、测试用例与测试工具运行-->cmd-->ipconfig-->ping 同一网段的IP地址,如:在IP为172.16.2.4的主机上ping 172.16.2.5,能拼通;在IP为172.16.3.6的主机上ping 172.16.3.7,能拼通;在IP为172.16.2.4的主机上ping 172.16.3.6,拼不通;在IP为172.16.3.7的主机上ping 172.16.2.5,拼不通;2、测试结果分析利用干道trunk配置交换机后,相同VLAN的主机能互相通信,不同VLAN的主机不能相互通信。
五、实验体会这次实验主要学习了VLAN的基本配置,熟悉了交换机的配置,怎么样把相应端口添加到VLAN中,实现端口之间相互通信。
虽然实验中出现了VLAN80中主机可相互通信,但VLAN60不可以相互通信,经检查是因为缺少一个端口配置,最终成功通信。
六、基本信息1.项目小组成员:李秀梅柳晴胡钧邹敏2.各成员分担的实验内容:李秀梅(配置交换机)3.实验时间:2013年11月19号4.报告完成的时间:2013年11月23号项目名称:交换机路由协议配置OSPF配置(实验五)一、项目概述1.将交换机与PC机连接起来,最少使用两个交换机,形成三段VLAN2.在不同VLAN间运行OSPF路由协议,且在骨干区域中。
3.使得交换机连接的主机PC1、PC2可以相互通信。
二、项目方案设计原理系统结构图设备使用与配置规划两个交换机(s3600)之间运行OSPF协议。
二、项目实施工艺1.如上述拓扑图连接主机交换机2.进行路由配置,先配置第一个交换机,再配置第二个。