資源描述:
《實(shí)驗(yàn)四VLAN間通信》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫(kù)。
1、實(shí)驗(yàn)六VLAN間通信1.實(shí)驗(yàn)冃的:不同VLAN間的通信2.實(shí)驗(yàn)環(huán)境:2臺(tái)S3610三層交換機(jī);2臺(tái)3100二層交換機(jī);4臺(tái)PC3.實(shí)驗(yàn)組網(wǎng)圖:Vlan2192.168.2.X255.255.255.0192.16&2.254Vian3192.168.3.X255.255.255.0192.16&3.254Vian2192.168.2.X255.255.255.0192.168.2.254Vian3192.168.3.X255.255.255.0192.168.3.2541號(hào)桌192.168.2.1-192.168.2.
2、10,192.16&3.1-192.16&3.10,2號(hào)桌192.168.2.11-192.168.2.20,192.168.3.11-192.168.3.20,3號(hào)桌192.168.2.21-192.168.2.30,192.168.3.21-192」68.3.30,4號(hào)桌192.168.2.31-192.168.2.40,192.168.331-192.168.3.40,5號(hào)桌192.16&2.41?192.16&2.50,192.168.3.41-192.16&3.50,4.實(shí)驗(yàn)步驟〃創(chuàng)建vlan2〃創(chuàng)建vlan
3、3步驟1:配置三層交換機(jī)的端口為Trunk端口,并且允許所有VLAN通過[s3610A]vlan2[s36IOA]vlan3[s3610A]interfaceethernet1/0/24[S361OA-Ethemet1/0/24]portlink-typetrunk//設(shè)置24以太網(wǎng)端口工作在Trunk模式[S361OA-Ethernet1/0/24]porttrunkpermitvlanall//允許所有VLAN通過Trunk端口[s3610AJinterfaceethernet1/0/23[S361OA-Ether
4、net1/0/23]portlink-typetrunk//設(shè)置23以太網(wǎng)端口工作在Trunk模式[S361OA-Ethernet1/0/23]porttrunkpermitvlan汕//允許所有VLAN通過Trunk端口步驟2:配置三層交換機(jī)vlan2.vlan3的接口IP地址[s3610A
5、interfacevlan2(s3610B——192」6&2.2)//配置vlan2的ip//進(jìn)入vlan2接口視圖[s3610A-vlan-interface2]ipaddress192.16&2.1255.255.255.0
6、地址[s3610A]intervlan3//進(jìn)入vlan3接口視圖rs3610A-vlan-interface3]ipaddress192.16831255.255.255.0(s3610B——192.168.3.2)〃配置vlan3的ip地址步驟3:配置二層交換機(jī)端口屬于特定VLAN[S3100A]vlan2[S3100A-vlan2]portethernet1/0/1[S3100A-vlan2]displaycurrent-configuration[S3100A-vlan2]vlan3[S3100A-vlan3]
7、portethernet1/0/2[S3100A-vlan3]displaycurrent-configuration步驟4:配置二層交換機(jī)的端口為Trunk端口,并且允許所有VLAN通過[s3100Alinterfaceethernet1/0/24[S31OOA-EthernetO/1]portlink-typetrunk[S3100A-EthernetO/1]porttrunkpermitvlanall結(jié)論:配置完成后,不同VLAN間的PC可以互通。計(jì)算機(jī)會(huì)把不在同一網(wǎng)段的報(bào)文送到三層交換機(jī),三層交換機(jī)會(huì)分析報(bào)文的
8、IP地址,通過查找路由表,將報(bào)文轉(zhuǎn)發(fā)到對(duì)應(yīng)的VLANo也就是說,交換機(jī)啟用了三層路由功能。填空:主機(jī)1的IP地址:主機(jī)1的子網(wǎng)掩碼:主機(jī)1的默認(rèn)網(wǎng)關(guān):主機(jī)2的IP地址:主機(jī)2的子網(wǎng)掩碼:主機(jī)2的默認(rèn)網(wǎng)關(guān):在主機(jī)1上檢查能否與主機(jī)4連通:在主機(jī)2上檢查能否與主機(jī)3連通:實(shí)驗(yàn)結(jié)構(gòu)圖e1/0/1DMC3100-1E0/0G0/1CSONOel/0/2l~l.e1/0/2口e1/0/1pgSOHO中央機(jī)柜3610DMC3100-13100-2(10/1G0/13600-1校園網(wǎng)E0/0機(jī)柜1E4機(jī)柜4E4