如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
实验报告课程名称计算机网络实验项目跨交换机实现VLAN专业班级姓名学号指导教师成绩日期一、实验目的理解VLAN的概念,熟悉交换机配置命令,学会跨交换机实现VLAN的配置方法。二、实验设备和环境Windows操作系统,Netsim仿真器或者PacketTracer5.0仿真器(两台交换机、三台主机、四条直连线)。三、实验内容1、画出实验拓扑图;2、配置主机IP,测试各主机之间是否ping通;3、配置交换机,划分VLAN,测试各主机之间是否ping通。四、实现功能使在同一VLAN里的计算机系统能跨交换机进行相互通信,而在不同VLAN里的计算机系统不能进行相互通信。五、实验过程(一)实验拓扑:(二)实验步骤1)在交换机Switch0上创建Vlan10,并将0/1端口划分到Vlan10Switch#vlandatabase!进入创建VlanSwitchA(vlan)#vlan10!创建Vlan10SwitchA(vlan)#vlan20!创建Vlan20SwitchA(vlan)#exitSwitchA#conft!进入全局配置模式SwitchA(config)#interfacefastethernet0/1!进入接口配置模式SwitchA(config-if)#switchportaccessvlan10!将0/1端口划分到vlan10(2)在交换机Switch0上,将0/2端口划分到Vlan20SwitchA#conft!进入全局配置模式SwitchA(config)#interfacefastethernet0/2!进入接口配置模式SwitchA(config-if)#switchportaccessvlan20!将0/2端口划分到vlan20(3)在Switch0上将与Switch1相连的端口定义为tagvlan模式SwitchA(config)#interfacefastethernet0/3!进入接口配置模式SwitchA(config-if)#switchportmodetrunk!将fastethernet0/3端口设置为modetrunk模式(4)在交换机Switch1上创建Vlan10,并将0/2端口划分到Vlan10SwitchB#vlandatabase!进入创建VlanSwitchB(vlan)#vlan10!创建Vlan10SwitchB(vlan)#exitSwitchB#conft!进入全局配置模式SwitchB(config)#interfacefastethernet0/2!进入接口配置模式SwitchA(config-if)#switchportaccessvlan10!将0/2端口划分到vlan10(5)在Switch1上将与Switch0相连的端口定义为tagvlan模式SwitchA(config)#interfacefastethernet0/1!进入接口配置模式SwitchA(config-if)#switchportmodetrunk!将fastethernet0/1端口设置为modetrunk模式(6)验证PC0与PC2能相互通信,但PC1与PC2不能相互通信C:\>ping192.168.0.5!在PC0的命令行方式下验证能ping通PC2C:\>ping192.168.0.5!在PC1的命令行方式下验证能ping通PC2(三)测试结果PC>ping192.168.0.5Pinging192.168.0.5with32bytesofdata:Replyfrom192.168.0.5:bytes=32time=174msTTL=128Replyfrom192.168.0.5:bytes=32time=93msTTL=128Replyfrom192.168.0.5:bytes=32time=94msTTL=128Replyfrom192.168.0.5:bytes=32time=94msTTL=128Pingstatisticsfor192.168.0.5:Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:Minimum=93ms,Maximum=174ms,Average=113msPC>ping192.168.0.5Pinging192.168.0.5with32bytesofdata:Requesttimedout.Requesttimedout.Requ