




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、 德州學院計算機系課程設計報告實習名稱 計算機網(wǎng)絡 設計題目 三層交換機Vlan的劃分實習時間 2010.06.27-2010.07.04 專業(yè)班級 網(wǎng)絡工程 指導老師 教學單位(蓋章) 小組分工情況:學號姓名分工二O一O年十二月二十五日課程設計報告正文內容及格式要求:1、正文部分主要包括:選題背景、論點或方案論證、過程(設計或實驗)論述、結果分析、結論或總結。2、標題:題目用小二號黑體字(加黑),居中;副標題用三號黑體字,緊挨正標題下居中,文字前加破折號。英文題目為18磅加粗Times New Roman字,副標題為16磅加粗Times New Roman字。3、課程設計報告格式要求:一級標
2、題用小三號黑體字;二級標題用四號黑體字;三級標題用小四號黑體字;正文用宋體小四號字(英文用12磅Times New Roman字),采用1.5倍行距,標準字符間距:頁碼一律用小5號字標明。4、課程設計報告撰寫要求:(1)文字通順,語言流暢,能將設計過程表述清楚。(2)圖表整潔,布局合理,須按國家規(guī)定的繪圖標準繪制。 (3)報告字數(shù)不少于3千字。三層交換機(7604)Vlan的劃分一、 實驗目的1、了解VLAN原理2、學會使用各種多層交換機設備進行VLAN 的劃分;3理解VLAN 之間路由的原理和實現(xiàn)方法二、實驗內容1、了解可網(wǎng)管交換機的結構;2、掌握VLAN的劃分方法;3、掌握劃分VLAN常用
3、的命令。三、應用環(huán)境軟件實驗室的IP地址段是192.168.10.0/24,多媒體實驗室的IP地址段是192.168.20.0/24,為了保證他們之間的數(shù)據(jù)互不干擾,也不影響各自的通信效率,我們劃分了VLAN,使兩個實驗室屬于不同的VLAN 。兩個實驗室有時候也需要相互通信,此時就需要利用三層交換機劃分VLAN 。四、實驗設備1. DCRS7604(或5526S)交換機1臺2. PC機2臺3. Console線1根4. 直通網(wǎng)線若干五、VLAN的概念:虛擬局域網(wǎng)是以局域網(wǎng)交換機為基礎,通過交換機軟件實現(xiàn)根據(jù)功能、部門、應用等因素將設備或用戶組成虛擬工作組或邏輯網(wǎng)段的技術。v 特點是在組成邏輯網(wǎng)
4、時無須考慮用戶或設備在網(wǎng)絡中的物理位置。VLAN可以在一個交換機或者跨交換機實現(xiàn)。六、VLAN的實現(xiàn)原理v 1986年3月,IEEE 802委員會發(fā)布了IEEE 802.1q VLAN標準。v 1988年,IEEE批準了802.3ac標準,這個標準定義了虛擬局域網(wǎng)的以太網(wǎng)幀格式,在傳統(tǒng)的以太網(wǎng)的幀格式中插入一個4字節(jié)的標識符,稱為VLAN標記,用來指明發(fā)送該幀的工作站屬于哪一個虛擬局域網(wǎng),如圖1所示。v VLAN標記字段的長度是4字節(jié),插在以太網(wǎng)MAC幀的源地址字段和長度類型字段之間。七、實驗拓撲使用一臺交換機和兩臺PC機,還將其中PC2作為控制臺終端,使用Console口配置方式,使用兩根網(wǎng)
5、線分別將PC1和PC2連接到交換機的RJ45 接口上。八、實驗要求在交換機上劃分兩個基于端口的VLAN:VLAN100,VLAN200。VLAN端口成員1001/11/122001/131/24使得VLAN100的成員能夠互相訪問,VLAN200的成員能夠互相訪問,VLAN100和VLAN200成員之間不能互相訪問。PC1和PC2的網(wǎng)絡設置為:設備端口IP1網(wǎng)關1IP2網(wǎng)關2Mask交換機A192.168.1.1無192.168.1.1無255.255.255.0VLAN100無無192.168.10.1無255.255.255.0VLAN200無無192.168.20.1無255.255.2
6、55.0PC11-12192.168.1.101無192.168.10.101192.168.10.1255.255.255.0PC213-24192.168.1.102無192.168.20.101192.168.20.1255.255.255.0各設備的IP 地址首先按照IP1配置,使用pc1 ping pc2,應該不通,再按照IP2配置地址,并在交換機上配置VLAN接口IP地址,使用pc1 ping pc2,則通,該通信屬于VLAN間通信,要經(jīng)過三層設備的路由。若實驗結果和理論相符,則本實驗完成。九、實驗步驟第一步:啟動超級終端:開始程序附件通訊超級終端,輸入名稱,如5526,選擇com
7、1,并設置相關配置,如下圖所示,點擊“確定”按鈕即可。第二步:交換機恢復出廠設置 SWITCH#set defaultAre you sure? Y/N = yDCRS-7604#writebegin writing flash.end writing flash.DCRS-5526S#reload第二步:給交換機設置IP 地址即管理IPSwitch#ConfigswitchA(Config)#interface vlan1switchA(Config-If-Vlan1)#ip address 192.168.1.1 255.255.255.0switchA(Config-If-Vlan1)#
8、no shutdownswitchA(Config-If-Vlan1)#exitswitchA(Config)#exit第三步:創(chuàng)建vlan100和vlan200switchA#configswitchA(Config)#vlan 100switchA(Config-Vlan100)#exitswitchA(Config)#vlan 200switchA(Config-Vlan200)#exitswitchA(Config)#驗證配置:switchA#show vlanVLAN Name Type Media Ports- - - - -1 default Static ENET Ethern
9、et1/1 Ethernet1/2 Ethernet1/3 Ethernet1/4 Ethernet1/5 Ethernet1/6 Ethernet1/7 Ethernet1/8 Ethernet1/9 Ethernet1/10 Ethernet1/11 Ethernet1/12 Ethernet1/13 Ethernet1/14 Ethernet1/15 Ethernet1/16 Ethernet1/17 Ethernet1/18 Ethernet1/19 Ethernet1/20 Ethernet1/21 Ethernet1/22 Ethernet1/23 Ethernet1/24100
10、VLAN0100 Static ENET200 VLAN0200 Static ENET第四步:給vlan100和vlan200添加端switchA(Config)#vlan 100switchA(Config-Vlan100)#name vlan 100 !進入vlan 100switchA(Config-Vlan100)#switchport interface ethernet 1/1-12Set the port Ethernet1/1 access vlan 100 successfullySet the port Ethernet1/2 access vlan 100 succes
11、sfullySet the port Ethernet1/3 access vlan 100 successfullySet the port Ethernet1/4 access vlan 100 successfullySet the port Ethernet1/5 access vlan 100 successfullySet the port Ethernet1/6 access vlan 100 successfullySet the port Ethernet1/7 access vlan 100 successfullySet the port Ethernet1/8 acce
12、ss vlan 100 successfullySet the port Ethernet1/9 access vlan 100 successfullySet the port Ethernet1/10 access vlan 100 successfullySet the port Ethernet1/11 access vlan 100 successfullySet the port Ethernet1/12 access vlan 100 successfullyswitchA(Config-Vlan100)#exitswitchA(Config)#vlan 200 !進入vlan
13、200switchA(Config-Vlan200)#switchport interface ethernet 1/13-24Set the port Ethernet1/13 access vlan 200 successfullySet the port Ethernet1/14 access vlan 200 successfullySet the port Ethernet1/15 access vlan 200 successfullySet the port Ethernet1/16 access vlan 200 successfullySet the port Etherne
14、t1/17 access vlan 200 successfullySet the port Ethernet1/18 access vlan 200 successfullySet the port Ethernet1/19 access vlan 200 successfullySet the port Ethernet1/20 access vlan 200 successfullySet the port Ethernet1/21 access vlan 200 successfullySet the port Ethernet1/22 access vlan 200 successf
15、ullySet the port Ethernet0/0/23 access vlan 200 successfullySet the port Ethernet0/0/24 access vlan 200 successfullyswitchA(Config-Vlan200)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to DOWNswitchA(Config-Vlan200)#exit驗證配置:Switch#show vlanVLAN Name Type Media Ports- - - - -
16、1 default Static ENET Ethernet1/25 Ethernet1/26Ethernet1/27 Ethernet1/28100 VLAN0100 Static ENET Ethernet1/1 Ethernet1/2 Ethernet1/3 Ethernet1/4 Ethernet1/5 Ethernet1/6 Ethernet1/7 Ethernet1/8 Ethernet1/9 Ethernet1/10 Ethernet1/11 Ethernet1/12 200 VLAN0200 Static ENET Ethernet1/13 Ethernet1/14 Ether
17、net1/15 Ethernet1/16 Ethernet1/17 Ethernet1/18 Ethernet1/19 Ethernet1/20 Ethernet1/21 Ethernet1/22 Ethernet1/23 Ethernet1/24Switch#第五步:驗證實驗。配置IP1的地址PC1位置PC2位置動作結果1/11/12端口1/131/24端口PC1 ping PC2不通1/11/12端口1/11/12端口PC1 ping PC2通第六步:添加VLAN IP地址Ø 注意事項和排錯和二層交換機不同,三層交換機可以在多個VLAN接口上配置IP地址。switch#confi
18、gswitch (Config)#vlan 100switch (Config-Vlan100)#interface vlan 10000:07:01: %LINK-5-CHANGED: Interface Vlan100, changed state to UPswitch (Config-If-Vlan100)#switch (Config-If-Vlan100)#ip address 192.168.10.1 255.255.255.0switch (Config-If-Vlan100)#no shutswitch (Config-If-Vlan100)#exitswitch (Conf
19、ig)#interface vlan 200vlan 200 doesn't exist or vlan 200 is private vlaninterface error!switch (Config)#vlan 200switch (Config-Vlan200)#interface vlan200switch (Config-If-Vlan200)#ip address 192.168.10.1 255.255.255.000:08:13: %LINK-5-CHANGED: Interface Vlan200, changed state to UPswitch (Config
20、-If-Vlan200)#no shutswitch (Config-If-Vlan200)#exitswitch (Config)#驗證配置:switch#show ip routTotal route items is 0, the matched routee items is 0Codes: C - connected, S - static, R - RIP derived, O - OSPF derived A - OSPF ASE, B - BGP derived, D - DVMRP derived Destination Mask Nexthop Interface Pref
21、erence C 192.168.1.0 255.255.255.0 0.0.0.0 Vlan1 0 C 192.168.10.0 255.255.255.0 0.0.0.0 Vlan100 0 C 192.168.20.0 DCRS-5526S#第七步:驗證實驗。PC1位置PC2位置動作結果1/11/12端口1/131/24端口PC1 ping PC2通1/11/12端口1/11/12端口PC1 ping PC2通十、查看全部配置序列 DCRS-5526S#show running Current configuration: hostname switch Vlan 1 vlan 1 Vl
22、an 100 vlan 100 Vlan 200 vlan 200 Interface Ethernet1/1 switchport access vlan 100 Interface Ethernet1/2 switchport access vlan 100 Interface Ethernet1/3 switchport access vlan 100 Interface Ethernet1/4 switchport access vlan 100 Interface Ethernet1/5 switchport access vlan 100 Interface Ethernet1/6
23、 switchport access vlan 100 Interface Ethernet1/7 switchport access vlan 100 Interface Ethernet1/8 switchport access vlan 100 Interface Ethernet1/9 switchport access vlan 100 Interface Ethernet1/10 switchport access vlan 100 Interface Ethernet1/11 switchport access vlan 100 Interface Ethernet1/12 sw
24、itchport access vlan 100 Interface Ethernet1/13 switchport access vlan 200 Interface Ethernet switchport access vlan 200 Interface Ethernet1/15 switchport access vlan 200 Interface Ethernet1/16 switchport access vlan 200 Interface Ethernet1/17 switchport access vlan 200 Interface Ethernet1/18 switch
25、port access vlan 200 Interface Ethernet1/19 switchport access vlan 200 Interface Ethernet1/20 switchport access vlan 200 Interface Ethernet1/21 switchport access vlan 200 Interface Ethernet1/22 switchport access vlan 200 Interface Ethernet1/23 switchport access vlan 200 Interface Ethernet1/24 switch
26、port access vlan 200 ! Interface Ethernet1/25 Interface Ethernet1/26 Interface Ethernet1/27Interface vlan 1 Interface vlan 1 Ip address 192.168.1.1 255.255.255.0interface Vlan100 interface vlan 100 ip address 192.168.10.1 255.255.255.0 interface Vlan200 interface vlan 200 ip address 192.168.20.1 255
27、.255.255.0 Interface ethernet 0Switch#十一、結果分析 當兩個PC機在同一個VLAN中時,相互可以通過交換機使用ping命令,相互ping對方的主機地址可以ping通,達到相互訪問的目的;當兩個PC機分別處在兩個不同VLAN中時,直接通過交換機使用ping命令,相互ping對方的主機地址時不能ping通,不能達到相互訪問的目的;同一個VLAN間的PC機可以在給予正確命令的前提下相互ping通,訪問對方;不同VLAN間的相互通信,不能直接在不同VLAN的PC機間跨VLAN實現(xiàn),必須要為VLAN劃分IP地址后才可進行PC機間是相互訪問。十二、實驗總結實驗課是計算
28、機網(wǎng)絡的重要實踐環(huán)節(jié)。通過實驗,加深理解、驗證、鞏固課堂教學內容,加深對網(wǎng)絡原理的理解,獲得對網(wǎng)絡的工作原理與操作方法,特別是通過設計和綜合實驗,既可鍛煉了自己的動手實踐能力,也可以更好的發(fā)揮我們的想象力和創(chuàng)新能力。在學習了理論知識后,通過自己親手做實驗,既可完成課堂要求內容,又可豐富了自己的動手實踐能力,為更好了解自己所學知識的應用性,為鍛煉自己的動手能力與思維邏輯能力,將理論與實踐實踐相結合,打下堅實基礎。附:相關配置命令祥解VLAN 命令:vlan<vlanid> no vlan<vlanid>功能: 創(chuàng)建VLAN并且進入VLAN配置模式,在VLAN模式中,用戶可
29、以配置VALN名稱和為該VLAN分配交換機端口;本命令的no操作為刪除指定的VLAN。參數(shù):<vlanid> 為要創(chuàng)建/刪除的VLAN的VID,取值范圍為14094命令模式:全局配置模式缺省情況:交換機缺省只有VLAN1。使用指南:VLAN1為交換機的缺省VLAN,用戶不能配置和刪除VLAN1。允許VALN的總數(shù)量為4094個。另需要提醒的是不能使用本命令刪除通過GVRP學習的動態(tài)VLAN。舉例:創(chuàng)建VLAN100 ,并進入VLAN100的配置模式。DCRS7604 (Config)#vlan 100DCRS7604 (Config-vlan 100)#Name命令:name<
30、;vlanname> no name功能:為VLAN指定名稱,VLAN的名稱是對該VLAN一個描述性字符串,本命令的no操作為刪除VLAN的名稱。參數(shù):<vlanname >為指定的vlan名稱字符串。命令模式:VLAN配置模式缺省情況:VLAN缺省名稱為vlan XXX,其中XXX為VID.使用指南:交換機提供為不同的VLAN指定名稱的功能,有助于用戶記憶VLAN,方便管理。舉例:為VLAN100指定名稱為TestVlanDCRS7604 (ConfigVlan100)#name TestVlanSwitchport access vlan 命令:Switchport ac
31、cess vlan<vlanid> no Switchport access vlan功能:將當前access端口加入到指定的VLAN ,本命令no操作為當前端口從VLAN 里刪除。參數(shù):<vlanid>為當前端口要加入的vlan VID,取值范圍14094命令模式:接口配置模式缺省情況:所有端口默認屬于VLAN1使用指南:只有屬于Access mode 的端口才能加入到指定的VLAN中,并且Access端口同時只能加入到一個VLAN 里去。舉例:設置某Access端口加入到VLAN 100DCRS7604(Config)#interface ethernet 1/8D
32、CRS7604(Config- ethernet 1/8)#switchport mode accessDCRS7604(Config- ethernet 1/8)#switchport access vlan 100DCRS7604(Config- ethernet 1/8)#exitSwitchport interface命令:Switchport interface <interfacelist> no switchport interface <interfacelist> 功能:給VLAN 分配以太網(wǎng)端口命令;本命令的no操作為刪除指定VLAN內的一個或一組端
33、口。參數(shù):<interfacelist>要添加或者刪除的端口的列表,支持“;”“”,如: ethernet 1/1;2;5或ethernet 1/1-6;8。命令模式:VLAN配置模式缺省情況:新建立的VLAN缺省不包含任何端口使用指南:Access端口為普通端口,可以加入VLAN ,但同時只允許加入一個VLAN。舉例:為VLAN 100分配百兆以太網(wǎng)端口1,3,4-7,8switchport mode命令:switchport modetrunk|access功能:設置交換機的端口為access模式或者trunk模式參數(shù):trunk表示端口允許通過多個VLAN的流量;access
34、為端口只能屬于一個VLAN。命令模式:接口配置模式缺省情況:端口缺省為Access模式使用指南:工作在trunk mode 下的端口稱為Trunk端口,Trunk端口可以通過多個VLAN的流量,通過Trunk端口之間的互聯(lián),可以實現(xiàn)不同交換機上的相同VLAN的互通;工作在access mode下的端口稱為Access端口,Access端口可以分配給一個VLAN,并且同時只能分配給一個VLAN。舉例:將端口5設置為trunk 模式,端口8設置為access模式DCRS7604 (Config)#interface ethernet 1/5DCRS7604 (Config-ethernet 1/5
35、)#switchport mode trunkDCRS7604 (Config-ethernet 1/5)#exitDCRS7604 (Config)#interface ethernet 1/8DCRS7604 (Config-ethernet 1/8)#switchport mode accessDCRS7604 (Config-ethernet 1/8)#exitSwitchport trunk allowed vlan命令:Switchport trunk allowed vlan <vlanlist >|all no switchport trunk allowed vlan功能:設置Trunk 端口允許通過VLAN列表;all關鍵字表示允許該Trunk端口通過所有VLAN的流量。命令模式: 接口配置模式缺省模式:Trunk端口缺省允許通過所有VLAN使用指南:用戶可以通過本命令設置哪些VLAN的流
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025屆河南省周口市扶溝高級中學高三二輪檢測試題(二模)語文試題試卷含解析
- 2024-2025學年湖南省茶陵三中新高考物理試題適應性訓練(二)含解析
- 酒泉職業(yè)技術學院《數(shù)學解題方法》2023-2024學年第一學期期末試卷
- 鶴壁汽車工程職業(yè)學院《第二外語德語》2023-2024學年第二學期期末試卷
- 湖南工學院《程序設計基礎理論》2023-2024學年第二學期期末試卷
- 畢節(jié)工業(yè)職業(yè)技術學院《裝飾設計基礎》2023-2024學年第二學期期末試卷
- 揚州大學《現(xiàn)代分析》2023-2024學年第二學期期末試卷
- 古人對時間的總結
- 公司投資的基本理念及方法論
- 公共交通車輛性能檢測制度
- 抵押個人汽車借款合同范本
- 2025年中考第一次模擬考試地理(青海卷)(全解全析)
- 2025年內蒙古電子信息職業(yè)技術學院單招職業(yè)技能測試題庫及參考答案
- 2025年內蒙古北方職業(yè)技術學院單招職業(yè)傾向性測試題庫完美版
- 統(tǒng)編版(2024)七年級下冊語文期末復習:第一單元素養(yǎng)提升測試卷(含答案)
- 2025年湖南鐵路科技職業(yè)技術學院單招職業(yè)技能測試題庫含答案
- 2025年上海青浦新城發(fā)展集團有限公司招聘筆試參考題庫含答案解析
- Deepseek 學習手冊分享
- 電網(wǎng)工程設備材料信息參考價(2024年第四季度)
- 2024年浙江省中考社會試卷真題(含標準答案及評分標準)
- 預應力錨索施工技術交底.ppt
評論
0/150
提交評論