資源描述:
《基于虛擬交換機(jī)端口的虛擬局域網(wǎng)的劃分》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在行業(yè)資料-天天文庫(kù)。
1、實(shí)驗(yàn)名稱基于虛擬交換機(jī)端口的虛擬局域網(wǎng)的劃分實(shí)驗(yàn)類型交換機(jī)實(shí)驗(yàn)實(shí)驗(yàn)?zāi)康睦枚咏粨Q機(jī)實(shí)現(xiàn)虛擬局域網(wǎng)的互聯(lián)實(shí)驗(yàn)設(shè)備及環(huán)境硬件:二層交換機(jī)、PC、網(wǎng)線軟件:WindowsXP實(shí)驗(yàn)過(guò)程1.畫(huà)拓?fù)浣Y(jié)構(gòu)圖2.配置端口和IP地址3.設(shè)置子網(wǎng)掩碼4.按拓?fù)浣Y(jié)構(gòu)圖將PC機(jī)和2層交換機(jī)連接5.禁用本地連接1,啟用本地連接2。在IP協(xié)議里配置該機(jī)的IP地址、子網(wǎng)掩碼、網(wǎng)關(guān)6.測(cè)通7.將E3的本地連接1打開(kāi),進(jìn)入設(shè)備管理界面,點(diǎn)擊使用的二層交換機(jī)。8.輸入命令,將PC1和PC2分入一個(gè)虛擬局域網(wǎng)內(nèi)命名為VLAN10,將PC3和PC4分入另一
2、個(gè)虛擬局域網(wǎng)命名為VLAN20。9.測(cè)試PC1和PC2之間可以相通、PC3和PC4之間可以相通,PC1和PC3、PC4不通。PC2和PC3、PC4不通。10.清除VLAN10和VLAN20中的測(cè)試機(jī)。11.清除建立好的兩個(gè)虛擬局域網(wǎng)VLAN10和VLAN20。實(shí)驗(yàn)原理二層交換機(jī)設(shè)備可以實(shí)現(xiàn)資源共享實(shí)驗(yàn)拓?fù)浣Y(jié)構(gòu)主要代碼及結(jié)果一、劃分虛擬局域網(wǎng)的結(jié)果VLANNameStatusPorts---------------------------------------------------------------------
3、-------1defaultactiveFa0/1,Fa0/2,Fa0/3Fa0/4,Fa0/5,Fa0/6Fa0/7,Fa0/8,Fa0/9Fa0/10,Fa0/11,Fa0/12Fa0/13,Fa0/14,Fa0/15Fa0/16,Fa0/17,Fa0/18Fa0/19,Fa0/20,Fa0/21Fa0/22,Fa0/23,Fa0/2410test10activeFa0/120test20activeFa0/1二、VLAN10(PC1、PC2)結(jié)果C:DocumentsandSettingsddd>ping1
4、92.168.10.2Pinging192.168.10.2with32bytesofdata:Replyfrom192.168.10.2:bytes=32time<1msTTL=128Replyfrom192.168.10.2:bytes=32time<1msTTL=128Replyfrom192.168.10.2:bytes=32time<1msTTL=128Replyfrom192.168.10.2:bytes=32time<1msTTL=128Pingstatisticsfor192.168.10.2:Pack
5、ets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:Minimum=0ms,Maximum=0ms,Average=0msC:DocumentsandSettingsddd>ping192.168.10.3Pinging192.168.10.3with32bytesofdata:Requesttimedout.Requesttimedout.Requesttimedout.Requesttimedout.Ping
6、statisticsfor192.168.10.3:Packets:Sent=4,Received=0,Lost=4(100%loss),三.VLAN20(PC3、PC4)結(jié)果C:DocumentsandSettingsddd>ping192.168.10.4Pinging192.168.10.4with32bytesofdata:Replyfrom192.168.10.4:bytes=32time<1msTTL=128Replyfrom192.168.10.4:bytes=32time<1msTTL=128Rep
7、lyfrom192.168.10.4:bytes=32time<1msTTL=128Replyfrom192.168.10.4:bytes=32time<1msTTL=128Pingstatisticsfor192.168.10.4:Packets:Sent=4,Received=4,Lost=0(0%loss),Approximateroundtriptimesinmilli-seconds:Minimum=0ms,Maximum=0ms,Average=0msC:DocumentsandSettingsddd>
8、ping192.168.10.1Pinging192.168.10.1with32bytesofdata:Requesttimedout.Requesttimedout.Requesttimedout.Requesttimedout.Pingstatisticsfor192.168.10.1:Packets:Sent=4,Rece