多交換機(jī)之間VLAN的設(shè)置和應(yīng)用_第1頁
多交換機(jī)之間VLAN的設(shè)置和應(yīng)用_第2頁
多交換機(jī)之間VLAN的設(shè)置和應(yīng)用_第3頁
多交換機(jī)之間VLAN的設(shè)置和應(yīng)用_第4頁
多交換機(jī)之間VLAN的設(shè)置和應(yīng)用_第5頁
已閱讀5頁,還剩3頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、DONGFANG COLLEGE,F(xiàn)UJIAN AGRICULTURE AND FORESTRY UNIVERSITY東方學(xué)院實(shí)驗(yàn)報(bào)告專 業(yè): 電子信息工程 (1)班 學(xué) 號(hào): 081918031 姓 名: 伍家棚 指導(dǎo)教師:陳潛 制定時(shí)間:2011/12/08 多交換機(jī)之間VLAN的設(shè)置和應(yīng)用1. 實(shí)驗(yàn)?zāi)康模涸谡莆樟硕丝赩LAN(Port VLAN)的功能和配置方法的基礎(chǔ)上。繼續(xù)學(xué)習(xí)多交換機(jī)之間VLAN的實(shí)現(xiàn)方法。2. 實(shí)驗(yàn)原理:多交換機(jī)之間VLAN的實(shí)現(xiàn)主要是解決不同交換機(jī)級聯(lián)端口之間的通信問題。當(dāng)多臺(tái)交換機(jī)進(jìn)行級聯(lián)時(shí),應(yīng)該把級聯(lián)端口設(shè)置為標(biāo)記(tag)端口,而將其他端口均設(shè)置為未標(biāo)記(u

2、ntag)端口。Tag端口的功能相當(dāng)于一個(gè)公共通道,它允許不同VLAN的數(shù)據(jù)都可以通過tag端口進(jìn)行傳輸3. 實(shí)驗(yàn)設(shè)備:(1) 交換機(jī)(2臺(tái)以上)(2) 實(shí)驗(yàn)用PC(4臺(tái)以上)(3) Console電纜 (2根)(4) 直連雙絞線(2根)(5) 交叉雙絞線(1根)4. 實(shí)驗(yàn)拓?fù)洌?. 實(shí)驗(yàn)步驟:(1)。配置好拓?fù)浣Y(jié)構(gòu)Switch1 F0/1 <-> Switch2 F0/1 Switch1 F0/2 <-> VPCS V0/1 Switch1 F0/7 <-> VPCS V0/2 Switch2 F0/2 <-> VPCS V0/3 Switch

3、2 F0/7 <-> VPCS V0/4在Switch1接口F0/2F0/6分配給 vlan10,接口F0/7F0/12分配給 vlan20對Switch1配置命令如下:EnConfig tNo ip routingHostname Switch-AExitVlan databaseVlan 10 name 10Vlan 20 name 20ExitConfig tInterface f0/2Switchport mode accessSwitchport access vlan 10No shutdownExitInterface f0/3Switchport mode acce

4、ssSwitchport access vlan 10No shutdownExitInterface f0/4Switchport mode accessSwitchport access vlan 10No shutdownExitInterface f0/5Switchport mode accessSwitchport access vlan 10No shutdownExitInterface f0/6Switchport mode accessSwitchport access vlan 10No shutdownExitInterface f0/7Switchport mode

5、accessSwitchport access vlan 20No shutdownExitInterface f0/8Switchport mode accessSwitchport access vlan 20No shutdownExitInterface f0/9Switchport mode accessSwitchport access vlan 20No shutdownExitInterface f0/10Switchport mode accessSwitchport access vlan 20No shutdownExitInterface f0/11Switchport

6、 mode accessSwitchport access vlan 20No shutdownExitInterface f0/12Switchport mode accessSwitchport access vlan 20No shutdownExitInterface f0/1Switchport mode trunkNo shutdownExitShow vlan-switch在Switch2接口F0/2F0/6分配給 vlan10,接口F0/7F0/12分配給 vlan20EnConfig tNo ip routingHostname Switch-BExitVlan databa

7、seVlan 10 name 10Vlan 20 name 20ExitConfig tInterface f0/2Switchport mode accessSwitchport access vlan 10No shutdownExitInterface f0/3Switchport mode accessSwitchport access vlan 10No shutdownExitInterface f0/4Switchport mode accessSwitchport access vlan 10No shutdownExitInterface f0/5Switchport mod

8、e accessSwitchport access vlan 10No shutdownExitInterface f0/6Switchport mode accessSwitchport access vlan 10No shutdownExitInterface f0/7Switchport mode accessSwitchport access vlan 20No shutdownExitInterface f0/8Switchport mode accessSwitchport access vlan 20No shutdownExitInterface f0/9Switchport

9、 mode accessSwitchport access vlan 20No shutdownExitInterface f0/10Switchport mode accessSwitchport access vlan 20No shutdownExitInterface f0/11Switchport mode accessSwitchport access vlan 20No shutdownExitInterface f0/12Switchport mode accessSwitchport access vlan 20No shutdownExitInterface f0/1Swi

10、tchport mode trunkNo shutdownExitWr (保存配置)給四臺(tái)虛擬pc機(jī)分配ip地址Pc1 192.168.1.1 網(wǎng)關(guān) 192.168.1.5Pc2 192.168.1.2網(wǎng)關(guān) 192.168.1.6Pc3 192.168.1.3 網(wǎng)關(guān) 192.168.1.5Pc4 192.168.1.4 網(wǎng)關(guān) 192.168.1.66. 結(jié)果驗(yàn)證(1) 將PC1連接到Switch-A上VLAN 10的端口上,同時(shí)將PC3連接Switch-B上的任何一個(gè)位于VLAN 10的端口上,將PC1和PC4的IP地址設(shè)置在同一網(wǎng)段為(如分別為192.168.1.1192.168.1.4,子網(wǎng)掩碼為255.255.255.0),再利用Ping命令進(jìn)行測試,發(fā)現(xiàn)PC1和PC3之間是可以通信的。說明,雖然PC1和PC3分別連接在不同的交換機(jī)上,但由于屬于同一個(gè)VLAN,所以PC1和PC2之間是可以進(jìn)行通信的。(2) 同樣,將PC2和PC4分別連接到Switch-A和Switch-B的VLAN 20的任何一個(gè)端口上,再使用Ping命令進(jìn)行測試,PC1和PC2之間也是可以進(jìn)行

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論