欢迎来到天天文库
浏览记录
ID:62120472
大小:741.00 KB
页数:16页
时间:2021-04-17
《实验三Packet-Tracer基本命令.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、课程名称计算机网络实验成绩实验名称实验六PacketTracer基本命令学号14191129姓名黄超班级141日期2015-5-25实验目的:1.了解PacketTracer的基本知识,掌握其常用的网络配置命令。2.能够利用PacketTracer实现简单网络的配置模拟。实验平台:PacketTracer6.0一、实验任务在一台交换机上划分多个VLAN。二、网络规划功能计算机IP地址子网掩码网关VLAN编号办公PC1192.168.1.10255.255.255.0192.168.1.110办公PC2192.168.1.11255.255.255.019
2、2.168.1.110教务PC3192.168.1.141255.255.255.0192.168.1.120教务PC4192.168.1.142255.255.255.0192.168.1.120 三、网络结构图四、交换机VLAN分配表端口号VLAN号说明01 0210 0310 0420 0520 06无 五、实验步骤1、连接线路。图一2、为每台计算机配置IP地址。图二图三图四图五用ping命令测试连接。(抓图如下)(1)pc-ptPc1与pc-ptpc2的联通情况:图六图七(2)pc-ptPc3与pc-ptpc4的联通情况:3、创建VL
3、ANSwitch#Switch#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#vlan10创建编号为10的VLANSwitch(config-vlan)#namebangong将VLAN10命名为bangongSwitch(config-vlan)#exit返回上一层Switch(config)#vlan20Switch(config-vlan)#namejiaowuSwitch(config-vlan)#EXITSwitch(config)#end进入特权
4、模式Switch#showvlan(把显示的内容抓图)图八4、将交换机端口和VLAN绑定Switch#CONFTEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#intf0/2进入要配置的端口Switch(config-if)#switchportmodeaccess设置端口状态,可以简化为swmoacSwitch(config-if)#switchportaccessvlan10将端口f0/2绑定VLAN10Switch(config-if)#exitSwitch(co
5、nfig)#intf0/3Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan10Switch(config-if)#exitSwitch(config)#intf0/4Switch(config-if)#switchportmodeaccessSwitch(config-if)#switchportaccessvlan20Switch(config-if)#exitSwitch(config)#intf0/5Switch(config-if)#switc
6、hportmodeaccessSwitch(config-if)#switchportaccessvlan20Switch(config-if)#exitSwitch(config)#^Z^Z作用跟“end”一样%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleSwitch#showvlan(绑定结果显示)图九5、连接情况测试使用ping命令,测试4台计算机相互之间的连通情况,可以看到同一个VLAN的计算机(PC1和PC、PC3和PC4)可以连通。两个VLAN之间的计算机不能连通。(抓图如下)(1)pc-ptPc
7、1与pc-ptpc2的联通情况:图十(2)pc-ptPc3与pc-ptpc4的联通情况:图十一(3)pc-ptPc1与pc-ptpc4的联通情况:图十二注意:对于多余的或者配置错误的VLAN,可以删除Switch#conftEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#novlan10删除已有的VLAN 对于不使用的交换端口,可以将其关闭Switch(config)#intf0/6Switch(config-if)#shutshutdown实验总结(结论或问题分析):
8、(1)通过这次实验,了解PacketTracer的基本知识,掌握其常用的网络配置
此文档下载收益归作者所有