实验8-交换机VLAN-划分路由器配置-写实验报告

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

实验8交换机VLAN划分实验目的:了解VLAN原理、掌握VLAN划分方法实验拓扑:实验步骤:一、给交换机配置IP地址SwitchenableSwitch#configConfiguringfromterminal,memory,ornetwork[terminal]?Enterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#interfacevlan1Switch(config-if)#ipaddress192.168.1.11255.255.255.0Switch(config-if)#noshutdownSwitch(config-if)#%LINK-5-CHANGED:InterfaceVlan1,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan1,changedstatetoupSwitch(config-if)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleSwitch#二、创建VLAN100和VLAN200Switch#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#Switch(config)#vlan100Switch(config-vlan)#exitSwitch(config)#vlan200Switch(config-vlan)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleSwitch#showvlanVLANNameStatusPorts----------------------------------------------------------------------------1defaultactiveFa0/1,Fa0/2,Fa0/3,Fa0/4Fa0/5,Fa0/6,Fa0/7,Fa0/8Fa0/9,Fa0/10,Fa0/11,Fa0/12Fa0/13,Fa0/14,Fa0/15,Fa0/16Fa0/17,Fa0/18,Fa0/19,Fa0/20Fa0/21,Fa0/22,Fa0/23,Fa0/24100VLAN0100active200VLAN0200active1002fddi-defaultact/unsup1003token-ring-defaultact/unsup1004fddinet-defaultact/unsup1005trnet-defaultact/unsupVLANTypeSAIDMTUParentRingNoBridgeNoStpBrdgModeTrans1Trans2--------------------------------------------------------------------1enet1000011500-----00100enet1001001500-----00200enet1002001500-----001002fddi1010021500-----001003tr1010031500-----001004fdnet1010041500---ieee-001005trnet1010051500---ibm-00RemoteSPANVLANs------------------------------------------------------------------------------PrimarySecondaryTypePorts---------------------------------------------------------------------------Switch#三、给VLAN100和VLAN200添加端口1、将1至8号端口添加至VLAN100Switch#Switch#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#Switch(config)#interfacerangefastethernet0/1-8Switch(config-if-range)#switchportaccessvlan100Switch(config-if-range)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleSwitch#showvlanVLANNameStatusPorts----------------------------------------------------------------------------1defaultactiveFa0/9,Fa0/10,Fa0/11,Fa0/12Fa0/13,Fa0/14,Fa0/15,Fa0/16Fa0/17,Fa0/18,Fa0/19,Fa0/20Fa0/21,Fa0/22,Fa0/23,Fa0/24100VLAN0100activeFa0/1,Fa0/2,Fa0/3,Fa0/4Fa0/5,Fa0/6,Fa0/7,Fa0/8200VLAN0200active………………………………………………………………………………Switch#2、将9至16号端口添加至VLAN200Switch#configtEnterconfigurationcommands,oneperline.EndwithCNTL/Z.Switch(config)#interfacerangefastethernet0/9-16Switch(config-if-range)#switchportaccessvlan200Switch(config-if-range)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIG_I:ConfiguredfromconsolebyconsoleSwitch#showvlanVLANNameStatusPorts----------------------------------------------------------------------------1defaultactiveFa0/17,Fa0/18,Fa0/19,Fa0/20Fa0/21,Fa0/22,Fa0/23,Fa0/24100VLAN0100activeFa0/1,Fa0/2,Fa0/3,Fa0/4Fa0/5,Fa0/6,Fa0/7,Fa0/8200VLAN0200activeFa0/9,Fa0/10,Fa0/11,Fa0/12Fa0/13,Fa0/14,Fa0/15,Fa0/16---------------------------------------------------------------------------Switch#Switch#四、给计算机配置IP地址PC0:192.168.1.12255.255.255.0PC1:192.168.1.13255.255.255.0PC2:192.168.1.14255.255.255.0PC3:192.168.1.15255.255.255.0五、验证配置各计算机之间使用PING命令查看是否能够通,并记录结果,分析原因。

1 / 4
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功