實(shí)驗(yàn)一 基于端口劃分VLAN_第1頁
實(shí)驗(yàn)一 基于端口劃分VLAN_第2頁
實(shí)驗(yàn)一 基于端口劃分VLAN_第3頁
實(shí)驗(yàn)一 基于端口劃分VLAN_第4頁
全文預(yù)覽已結(jié)束

下載本文檔

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

文檔簡介

1、實(shí)驗(yàn)一 基于端口劃分VLAN一、實(shí)驗(yàn)?zāi)康模?、理解VLAN的基本原理; 2、掌握按端口劃分VLAN的方法;3、理解VLAN間通信的基本原理。二、實(shí)驗(yàn)內(nèi)容:根據(jù)以下網(wǎng)絡(luò)拓?fù)浣Y(jié)構(gòu)圖,按端口劃分VLAN,使兩個(gè)VLAN之間能夠相互通信。VLAN2:PC0,PC1,PC3主機(jī)IP:192.168.2.1192.168.2.3,VLAN2接口IP:192.168.2.4,子網(wǎng)掩碼:255.255.255.0; VLAN3:PC2,PC4,PC5 主機(jī)IP:192.168.3.1192.168.3.3,VLAN3接口IP:192.168.3.4子網(wǎng)掩碼:255.255.255.0。三、實(shí)驗(yàn)環(huán)境:Cisco

2、 Packet Tracer 5.2。四、實(shí)驗(yàn)過程:扼要地寫出實(shí)驗(yàn)的過程。五、實(shí)驗(yàn)結(jié)果及分析:總結(jié)實(shí)驗(yàn)的結(jié)果,并作簡要的分析;簡單附上本次實(shí)驗(yàn)的體會(huì)與收獲。說明:把本次實(shí)驗(yàn)寫成實(shí)驗(yàn)報(bào)告,下周三交。后附:Cisco3560、Cisco2960的配置附:Cisco交換機(jī)的配置過程(1)設(shè)置VTP管理域Switch> enable /進(jìn)入特權(quán)配置模式Switch# config terminal /進(jìn)入全局配置模式Switch(config)# hostname VtpServer /交換機(jī)命名VtpServer(config)# exit /退出全局配置模式VtpServer# vlan d

3、atabase /進(jìn)入VLAN配置模式VtpServer(vlan)# vtp domain MathsGroup /創(chuàng)建VTP管理域,域名命名為MathsGroupVtpServer(vlan)#vtp server /將三層交換機(jī)配置成VTP管理域的服務(wù)器Switch> enableSwitch# config terminalSwitch(config)# hostname VtpInformationVtpInformation(config)# exitVtpInformation# vlan databaseVtpInformation(vlan)# vtp domain M

4、athsGroup /將交換機(jī)加入VTP管理域VtpInformation(vlan)# vtp client /將交換機(jī)配置成VTP管理域的客戶機(jī)Switch> enableSwitch# config terminalSwitch(config)# hostname VtpMathsVtpMaths(config)# exitVtpMaths# vlan databaseVtpMaths(vlan)# vtp domain MathsGroup /將交換機(jī)加入VTP管理域VtpMaths(vlan)# vtp client /將交換機(jī)配置成VTP管理域的客戶機(jī)(2)為交換機(jī)配置連接V

5、LAN主干(trunk)鏈路的端口VtpServer(vlan)# exit /退出VLAN配置模式VtpServer# config terminal /進(jìn)入全局配置模式VtpServer(config)# interface f0/1 /進(jìn)入接口配置模式,對(duì)端口f0/1進(jìn)行配置VtpServer(config-if)# switchport mode trunk /將端口f0/1配置成trunk模式VtpServer(config-if)# exitVtpServer(config)# interface f0/2VtpServer(config-if)# switchport mode

6、trunkVtpInformation(vlan)# exitVtpInformation# config terminalVtpInformation(config)# interface f0/1VtpInformation(config-if)# switchport mode trunkVtpMaths(vlan)# exitVtpMaths# config terminalVtpMaths(config)# interface f0/1VtpMaths(config-if)# switchport mode trunk(3)在VTP管理域的服務(wù)器(核心交換機(jī))上創(chuàng)建VLAN,并為各個(gè)

7、VLAN分配接口IP地址VtpServer(config-if)# exit /退出接口配置模式VtpServer(config)# exit /退出全局配置模式VtpServer# vlan database /進(jìn)入VLAN配置模式VtpServer(vlan)# vlan 2 name Group1 /創(chuàng)建VLAN2,將VLAN2命名為Group1VtpServer(vlan)# vlan 3 name Group2 /創(chuàng)建VLAN3,將VLAN3命名為Group2VtpServer(vlan)# exitVtpServer# config terminalVtpServer(config

8、)# interface vlan 2 /進(jìn)入VLAN2接口配置模式VtpServer(config-if)# ip address 192.168.2.4 255.255.255.0 /給VLAN2分配接口IP地址VtpServer(config-if)# exitVtpServer(config)# interface vlan 3VtpServer(config-if)# ip address 192.168.3.4 255.255.255.0(4)將交換機(jī)的接入端口配置成訪問(access)模式,并將接入端口劃分到相應(yīng)的VLANVtpInformation(config)# inter

9、face f0/2VtpInformation(config-if)# switchport mode access /將f0/2端口配置成access模式VtpInformation(config-if)# switchport access vlan 2 /將f0/2端口劃分到VLAN2VtpInformation(config-if)# exitVtpInformation(config)# interface f0/3VtpInformation(config-if)# switchport mode accessVtpInformation(config-if)# switchpor

10、t access vlan 2VtpInformation(config-if)# exitVtpInformation(config)# interface f0/4VtpInformation(config-if)# switchport mode access /將f0/4端口配置成access模式VtpInformation(config-if)# switchport access vlan 3 /將f0/4端口劃分到VLAN3VtpInformation(config-if)# exitVtpMaths(config)#interface f0/2VtpMaths(config-i

11、f)#switchport mode accessVtpMaths(config-if)#switchport access vlan 2VtpMaths(config-if)#exitVtpMaths(config)#interface f0/3VtpMaths(config-if)#switchport mode accessVtpMaths(config-if)#switchport access vlan 3VtpMaths(config-if)#exitVtpMaths(config)#interface f0/4VtpMaths(config-if)#switchport mode

12、 access VtpMaths(config-if)#switchport access vlan 3VtpMaths(config-if)#exit測試并回答問題:(一) 將PC0、PC1、PC3的IP分別設(shè)為:192.168.2.1,192.168.2.2,192.168.2.3,子網(wǎng)掩碼設(shè)為:255.255.255.0; 將PC2、PC4、PC5的IP分別設(shè)為:192.168.3.1,192.168.3.2,192.168.3.3,子網(wǎng)掩碼設(shè)為:255.255.255.0。(1)在PC0上ping PC1、PC3,網(wǎng)絡(luò)通嗎?為什么?PC> ping 192.168.2.2PC> ping 192.168.2.3

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(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ǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論