嚴(yán)斌web實(shí)驗(yàn)報(bào)告五_第1頁(yè)
嚴(yán)斌web實(shí)驗(yàn)報(bào)告五_第2頁(yè)
嚴(yán)斌web實(shí)驗(yàn)報(bào)告五_第3頁(yè)
嚴(yán)斌web實(shí)驗(yàn)報(bào)告五_第4頁(yè)
嚴(yán)斌web實(shí)驗(yàn)報(bào)告五_第5頁(yè)
已閱讀5頁(yè),還剩4頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、南昌航空大學(xué)實(shí)驗(yàn)報(bào)告課程名稱:計(jì)算機(jī)網(wǎng)絡(luò) 實(shí)驗(yàn)名稱: 實(shí)驗(yàn)五 配置VLAN 班 級(jí): 070613 學(xué)生姓名: 嚴(yán)斌 學(xué)號(hào): 07061324 指導(dǎo)教師評(píng)定: 簽 名: 一、 實(shí)驗(yàn)?zāi)康?. 配置VLAN2. 通過VLAN Trunk配置跨交換機(jī)的VLAN3. 配置VTP4. 查看上述配置項(xiàng)目的有關(guān)信息二、 設(shè)備需求 本實(shí)驗(yàn)需要以下設(shè)備:1. Cisco Catalyst 2950 系列交換機(jī)2臺(tái),型號(hào)不限;2. 交叉線序網(wǎng)線1條;3. 1臺(tái)帶有超級(jí)終端程序的PC機(jī),以及Console電纜及轉(zhuǎn)換器。三、 拓?fù)浣Y(jié)構(gòu)及配置說明圖 8-1 網(wǎng)絡(luò)拓?fù)鋱D如圖所示用交叉網(wǎng)線把C2950A的FastEther

2、net0/24端和C2950B的FastEthernet0/24端口連接起來(lái)。四、 實(shí)驗(yàn)步驟及要求1. 在2950系列交換機(jī)上配置VTP和VLAN的方法有兩種,本實(shí)驗(yàn)演示的是使用vlandatabase命令的一種;另一種是在全局配置模式下發(fā)出配置命令,格式與vlan database方式相似。方法如下:1) vlan vlan-id 輸入一個(gè)VLAN號(hào), 然后進(jìn)入vlan配置狀態(tài),可以輸入一個(gè)新的VLAN號(hào)或舊的來(lái)進(jìn)行修改。2) name vlan-name (可選)輸入一個(gè)VLAN名,如果沒有配置VLAN名,缺省的名字是VLAN號(hào)前面用0填滿的4位數(shù),如VLAN0004是VLAN4的缺省名字

3、.2. 首先使用vlan database命令進(jìn)入VLAN配置模式。在VLAN配置模式下,可以設(shè)置VTP的一系列屬性,如vtp?命令所示,也可以對(duì)VLAN進(jìn)行定義。3. 把C2950A交換機(jī)設(shè)置成VTP Server模式(缺省配置),VTP域名為Test。4. 定義V10、V11、V12和V13等4個(gè)VLAN。5. show vtp status命令顯示了VTP相關(guān)的配置和狀態(tài)信息,我們應(yīng)主要關(guān)注VTP模式、域名,VLAN數(shù)量等信息。6. show vtp counters命令列出了VTP的統(tǒng)計(jì)信息,表明各種VTP相關(guān)包的收發(fā)情況,因?yàn)镃2950A交換機(jī)與C2950B交換機(jī)沒有進(jìn)行VTP信息的

4、傳輸,所以各項(xiàng)數(shù)值均為0。7. 在接口配置模式下的switchport mode access命令設(shè)置對(duì)應(yīng)端口為靜態(tài)VLAN訪問模式。8. 在接口配置模式下的switchport access vlan命令把端口分配給相應(yīng)的VLAN。9. 在第2段中,配置了C2950B交換機(jī)的VTP屬性,域名設(shè)為Test,模式為Client。10. 第3段設(shè)置了C2950A和C2950B之間的VLAN Trunk。所使用的命令是在接口配置模式下發(fā)出switchport mode trunk。當(dāng)然這是命令的一種形式,設(shè)置Trunk還有其他可選的命令形式。11. show interface fa0/24 swi

5、tchport查看了Fa0/24端口上的交換端口屬性,我們關(guān)心的是幾個(gè)與Trunk相關(guān)的信息。它們是:運(yùn)行方式為Trunk、Trunk,封裝格式為802.1Q、Trunk中允許所有VLAN傳輸?shù)取?2. 完成兩臺(tái)交換機(jī)之間的Trunk配置后,可以看到C2950B交換機(jī)上的VTP和VLAN屬性已經(jīng)可以從C2950A交換機(jī)自動(dòng)獲得。13. 最后發(fā)出的ping指令表明C2950A和C2950B之間在IP層是連通的,并且再次驗(yàn)證了Trunk的工作是正常的。五、 實(shí)驗(yàn)結(jié)果第一段 配置2950A交換機(jī)的VTP CLI session with the switch is open. To end the

6、CLI session, enter Exit.Switch%LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/2, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthe

7、rnet0/2, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/4, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthe

8、rnet0/4, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/6, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthe

9、rnet0/6, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/7, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/8, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthe

10、rnet0/8, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/9, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/9, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/10, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEth

11、ernet0/10, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/11, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/12, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface Fas

12、tEthernet0/12, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/12, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/12, changed state to upSwitchenSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostn C2590AC2590A(c

13、onfig)#Z%SYS-5-CONFIG_I: Configured from console by consoleC2590A#conf tEnter configuration commands, one per line. End with CNTL/Z.C2590A(config)#int vlan1C2590A(config-if)#ip addr 192.1.1.1 255.255.255.0C2590A(config-if)#no shut%LINK-3-UPDOWN: Interface Vlan 1, changed state to upC2590A(config-if)

14、#exitC2590A(config)#exitC2590A#vlan databaseC2590A(vlan)#vtp ?domain Set the name of the VTP administrative domain.client Set the device to client mode.server Set the device to server mode.transparent Set the device to transparent mode.password Set the password for the VTP administrative domain.C259

15、0A(vlan)#vtp server /將C2950A配置成vtp serverC2590A(vlan)#vtp domain Test /將VTP域命名為TestChanging VTP domain from NULL to testC2590A(vlan)#vlan 10 name V10 /定義Vlan 10命名為V10VLAN 10 added: Name:V10C2590A(vlan)#vlan 11 name V11VLAN 11 added: Name:V11C2590A(vlan)#vlan 12 name V12VLAN 12 added: Name:V12C2590A(

16、vlan)#vlan 13 name V13VLAN 13 added: Name:V13C2590A(vlan)#exitAPPLY completed.Exiting.C2590A#sh vtp statusVTP Version : 2Configuration Revision : 2Maximum VLANs supported locally : 64Number of existing VLANs : 9VTP Operating Mode : ServerVTP Domain Name : testVTP Pruning Mode : DisabledVTP V2 Mode :

17、 DisabledVTP Traps Generation : DisabledMD5 digest : 0xEE 0xB3 0xDC 0x9F 0xE2 0xE0 0x25 0xDFConfiguration last modified by 0.0.0.0 at 3-1-93 04:55:57Local updater ID is 0.0.0.0 (no valid interface found)C2590A#sh vtp counters % Invalid input detected at marker.C2590A#conf tEnter configuration comman

18、ds, one per line. End with CNTL/Z./將Fa0/1接口加入到Vlan 10中C2590A(config)#int fa0/1C2590A(config-if)#switchport mode accessC2590A(config-if)#switchport access vlan 10C2590A(config-if)#exitC2590A(config)#int fa0/2C2590A(config-if)#switchport mode accessC2590A(config-if)#switchport access vlan 11C2590A(con

19、fig-if)#exitC2590A(config)#int fa0/3C2590A(config-if)#switchport mode accessC2590A(config-if)#switchport access vlan 12C2590A(config-if)#int fa0/4C2590A(config-if)#switchport mode accessC2590A(config-if)#switchport access vlan 13C2590A(config-if)#Z%SYS-5-CONFIG_I: Configured from console by consoleC

20、2590A#sh vlan briefVLAN Name Status Ports- - - -1 default active Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/1210 V10 active Fa0/111 V11 active Fa0/212 V12 active Fa0/313 V13 active Fa0/41002 fddi-default active1003 token-ring-default active1004 fddinet-default active1005 trnet-default act

21、ive第二段 配置2950B交換機(jī)的VTP CLI session with the switch is open. To end the CLI session, enter Exit.%LINK-3-UPDOWN: Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/2, changed state

22、 to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/3, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/4, changed state

23、 to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/4, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/5, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/6, changed state

24、 to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/6, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/7, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/7, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/8, changed state

25、 to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/8, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/9, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/9, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/10, changed stat

26、e to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/10, changed state to down%LINK-3-UPDOWN: Interface FastEthernet0/11, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/11, changed state to downSwitchSwitchenSwitch#conf tEnter configuration comma

27、nds, one per line. End with CNTL/Z.Switch(config)#hostn C2590B /配置Vlan 1的IPC2590B(config)#int vlan1C2590B(config-if)#ip addr 192.1.1.2 255.255.255.0C2590B(config-if)#no shut%LINK-3-UPDOWN: Interface Vlan 1, changed state to upC2590B(config-if)#exitC2590B(config)#exit /將C2950B上配置成Vtp clientC2590B#vla

28、n databaseC2590B(vlan)#vtp domain TestChanging VTP domain from NULL to testC2590B(vlan)#vtp clientC2590B(vlan)#exitAPPLY completed.Exiting.配置和監(jiān)測(cè)C2950A和C2950B交換機(jī)之間VLAN TrunkC2590A#conf tEnter configuration commands, one per line. End with CNTL/Z.C2590A(config)#int fa0/12C2590A(config-if)#switchport m

29、ode trunkC2590A(config-if)#Z%SYS-5-CONFIG_I: Configured from console by consoleC2590B#conf tEnter configuration commands, one per line. End with CNTL/Z.C2590B(config)#int fa0/12C2590B(config-if)#switchport mode trunkC2590B(config-if)#Z%SYS-5-CONFIG_I: Configured from console by consoleC2590B#sh int

30、fa0/12 switchportName: Fa0/12Switchport: EnabledAdministrative mode: trunkOperational mode: trunkAdministrative Trunking Encapsulation: dot1qNegotiation of Trunking: OnAccess Mode VLAN: 1 (default)Trunking Native Mode VLAN: 1 (default)Trunking VLANs Enabled: ALLPruning VLANs Enabled: 2-1001Protected: falseVoice vlan: none (Inactive)Appliance trust: noneC2590B#sh vtp statusVTP V

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(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)論