資源描述:
《實(shí)驗(yàn)六 虛擬局域網(wǎng)VLAN.doc》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在應(yīng)用文檔-天天文庫(kù)。
1、實(shí)驗(yàn)六虛擬局域網(wǎng)VLAN(一)實(shí)驗(yàn)1交換機(jī)端口隔離1.實(shí)驗(yàn)名稱交換機(jī)端口隔離。2.實(shí)驗(yàn)?zāi)康睦斫釶ortVlan的配置。3.背景描述假設(shè)此交換機(jī)是寬帶小區(qū)城域網(wǎng)中的一臺(tái)樓道交換機(jī),住戶PCI連接在交換機(jī)的0/5口;住戶PC2連接在交換機(jī)的0/5口,現(xiàn)要實(shí)現(xiàn)各家各戶的端口隔離。4.實(shí)現(xiàn)功能通過劃分PORTVLAN實(shí)現(xiàn)本交換端口隔離。5.實(shí)驗(yàn)步驟步驟1.在未劃VLAN前兩臺(tái)PC互相PING可以通。創(chuàng)建VLAN。SwitchA>enable14Password:SwitchA#configureterminal!進(jìn)入交換機(jī)全局配置模式SwitchA(confi
2、g)#vlan10!創(chuàng)建vlan10SwitchA(config-vlan)#nametest10!將vlan10命名為test10SwitchA(config)#vlan20!創(chuàng)建vlan20SwitchA(config-vlan)#nametest20!將vlan20命名為test20驗(yàn)證測(cè)試:SwitchA#showvlanVLANNameStatusPorts----------------------------------------------------------------------------1defaultactiveFa0/
3、1,Fa0/2,Fa0/3,Fa0/4Fa0/6,Fa0/7,Fa0/8,Fa0/9Fa0/10,Fa0/11,Fa0/12,Fa0/13Fa0/14,Fa0/16,Fa0/17,Fa0/18Fa0/19,Fa0/20,Fa0/21,Fa0/22Fa0/23,Fa0/2410test10activeFa0/520test20activeFa0/15步驟2.將接口分配到vlan。SwitchA#configureterminalSwitchA(config)#interfacefastethernet0/5!進(jìn)入fastethernet0/5的接口配置模
4、式SwitchA(config-if)#switchaccessvlan10!進(jìn)入fastethernet0/5端口加入vlan10中SwitchA(config-if)#interfacefastethernet0/15!進(jìn)入fastethernet0/15的接口配置模式SwitchA(config-if)#switchaccessvlan20!將fastethernet0/15端口加入vlan20中步驟3.兩臺(tái)PC互相PING不通。驗(yàn)證測(cè)試:SwitchA#showvlanVLANNameStatusPorts-------------------
5、---------------------------------------------------------1defaultactiveFa0/1,Fa0/2,Fa0/3,Fa0/4Fa0/6,Fa0/7,Fa0/8,Fa0/9Fa0/10,Fa0/11,Fa0/12,Fa0/13Fa0/14,Fa0/16,Fa0/17,Fa0/18Fa0/19,Fa0/20,Fa0/21,Fa0/22Fa0/23,Fa0/2410test10activeFa0/520test20activeFa0/156.注意事項(xiàng)清空交換機(jī)原有VLAN配置。Deletefla
6、sh:config.Text.Deleteflash:vlan.dat7.參考配置SwitchA#showrunning-configSystemsoftwareversion:2.41(1)BuildAug312005ReleaseBuildingconfiguration...Currentconfiguration:468bytes!version1.0!hostnameSwitchAvlan1!vlan10nametest10!vlan20nametest20!enablesecretlevel15'T,1u_;C3U-8U07、G54/7R:>Henablesecretlevel145'T,1u_;C3U-8U0Henablesecretlevel155([^.Y*T7[^,tZ[V/[^+S(W&[^1X)sv'!interfaceFastEthernet0/5switchportaccessvlan10!interfaceFastEthernet0/15switchportaccessvlan20!interfaceVlan1ipaddress192.168.6.254255.255.255.0!End實(shí)驗(yàn)2跨交換機(jī)實(shí)現(xiàn)VLAN1.實(shí)驗(yàn)
8、名稱跨交換機(jī)實(shí)現(xiàn)VLAN。2.實(shí)驗(yàn)?zāi)康睦斫鈜lan如何跨交換機(jī)實(shí)現(xiàn)。3.背景描述假設(shè)某企業(yè)2個(gè)