




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、 實(shí)驗(yàn)五 鏈路捆綁與STP1 實(shí)驗(yàn)?zāi)康?. 組網(wǎng)需求:采用兩臺核心交換機(jī)組網(wǎng)來提高網(wǎng)絡(luò)可靠性,為防止二層環(huán)路,需要全網(wǎng)運(yùn)行STP將SW1部署為根網(wǎng)橋,SW2部署為備份根網(wǎng)橋,并將接入PC的接口配置為portfast端口;SW1-SW2之間使用鏈路捆綁進(jìn)一步提高可靠性。2. 分析STP的選舉過程(根網(wǎng)橋、跟端口、指定端口、阻塞端口)。3. 測試STP切換,并分析STP的端口狀態(tài)切換過程。2 實(shí)驗(yàn)拓?fù)淙龑?shí)驗(yàn)步驟1. 基本信息配置 SW1的基本信息配置(SW2、SW3的基本配置與SW1相同)Switch>enable /進(jìn)入特權(quán)模式Switch#config terminal /進(jìn)入全局配置模
2、式Switch(config)#hostname SW3 /配置主機(jī)名SW3(config)#no ip domain-lookup /禁用域名查找SW3(config)#line console 0 /進(jìn)入Console線路模式SW3(config-line)#logging synchronous /配置Console信息顯示自動換行SW3(config-line)#no login /配置口Console登錄不認(rèn)證SW3(config-line)#privilege level 15 SW3(config-line)#line vty 0 4 / 進(jìn)入Vty線路模式SW3(config-
3、line)#no login /配置Telnet登錄不認(rèn)證SW3(config-line)#privilege level 15 /配置為最高特權(quán)級別,enable不需要密碼2. 二層網(wǎng)絡(luò)全局配置(1)SW1的Vlan配置SW1# vlan database SW1(vlan)#vtp transparent /透明模式SW1(vlan)#vlan 8SW1(vlan)#vlan 10SW1(vlan)#vlan 11SW1#show vlan-sw briefVLAN Name Status Ports 8 VLAN0008 active 10 VLAN0010 active /Vlan 創(chuàng)
4、建成功11 VLAN0011 active (2) SW2的Vlan配置SW2# vlan database SW2(vlan)#vtp transparent SW2(vlan)#vlan 8SW2(vlan)#vlan 10SW2(vlan)#vlan 11SW2#show vlan-sw brief /查看Vlan信息VLAN Name Status Ports 8 VLAN0008 active 10 VLAN0010 active 11 VLAN0011 active (3) SW3的Vlan配置SW3# vlan database SW3(vlan)#vtp transparent
5、 SW3(vlan)#vlan 8SW3(vlan)#vlan 10SW3(vlan)#vlan 11SW3#show vlan-sw brief /查看Vlan信息VLAN Name Status Ports 8 VLAN0008 active 10 VLAN0010 active /Vlan 創(chuàng)建成功11 VLAN0011 active (4) STP根網(wǎng)橋配置SW1(config)#spanning-tree vlan 8 priority 0SW1(config)#spanning-tree vlan 10 priority 0SW1(config)#spanning-tree vla
6、n 11 priority 0(5) STP備份根網(wǎng)橋配置SW2(config)#spanning-tree vlan 8 priority 4096SW2(config)#spanning-tree vlan 10 priority 4096SW2(config)#spanning-tree vlan 11 priority 40963. 二層網(wǎng)絡(luò)接口配置及鏈路測試(1) 核心交換機(jī)SW1-SW2鏈路捆綁配置及調(diào)測SW1(config)#interface range fa0/1 -2 /以太網(wǎng)接口1和2,注意1后面要空格SW1(config-if-range)#switchport tru
7、nk encapsulation dot1qSW1(config-if-range)#switchport mode trunk SW1(config-if-range)#switchport trunk allowed vlan allSW1(config-if-range)#channel-group 2 mode on/手動捆綁:組2SW2(config)#interface range fa0/1 -2 /以太網(wǎng)接口1和2,注意1后面要空格SW2(config-if-range)#switchport trunk encapsulation dot1qSW2(config-if-ran
8、ge)#switchport mode trunk SW2(config-if-range)#switchport trunk allowed vlan allSW2(config-if-range)#channel-group 2 mode on/手動捆綁:組2SW1#show etherchannel summary /查看以太網(wǎng)通道信息Flags: D - down P - in port-channel I - stand-alone s - suspende R - Layer3 S - Layer2 U - in useGroup Port-channel Ports-+-+- 2
9、 Po2(SU) Fa0/1(P) Fa0/2(P)SW2#show etherchannel summary /查看以太網(wǎng)通道信息Flags: D - down P - in port-channel I - stand-alone s - suspende R - Layer3 S - Layer2 U - in useGroup Port-channel Ports-+-+- 2 Po2(SU) Fa0/1(P) Fa0/2(P)(2) SW1-SW3的Trunk鏈路調(diào)測SW1(config)#interface fa0/3SW1(config-if)#switchport trunk
10、encapsulation dot1qSW1(config-if)#switchport mode trunk SW1(config-if)#switchport trunk allowed vlan allSW1#show interfaces trunk /查看Trunk信息(只粘貼本步有用信息)Port Mode Encapsulation Status Native vlanFa0/3 on 802.1q trunking 1SW3(config)#interface fa0/1SW3(config-if)#switchport trunk encapsulation dot1qSW3
11、(config-if)#switchport mode trunk SW3(config-if)#switchport trunk allowed vlan allSW3#show interfaces trunk /查看Trunk信息(只粘貼本步有用信息)Port Mode Encapsulation Status Native vlanFa0/1 on 802.1q trunking 1(3) SW2-SW3的Trunk鏈路調(diào)測SW2(config)#interface fa0/3SW2(config-if)#switchport trunk encapsulation dot1qSW2(
12、config-if)#switchport mode trunk SW2(config-if)#switchport trunk allowed vlan allSW2#show interfaces trunk /查看Trunk信息Port Mode Encapsulation Status Native vlanFa0/3 on 802.1q trunking 1SW3(config)#interface fa0/2SW3(config-if)#switchport trunk encapsulation dot1qSW3(config-if)#switchport mode trunk
13、SW3(config-if)#switchport trunk allowed vlan allSW3#show interfaces trunk /查看Trunk信息Port Mode Encapsulation Status Native vlanFa0/2 on 802.1q trunking 1(4) SW3的Access接口配置SW3(config)#interface fa0/10 /與PC1相連的接口SW3(config-if)#switchport mode access SW3(config-if)#switchport access vlan 10SW3(config-if
14、)#spanning-tree portfast /配置成Portfast端口SW3(config-if)#exitSW3(config)#interface fa0/11 /與PC1相連的接口SW3(config-if)#switchport mode access SW3(config-if)#switchport access vlan 11SW3(config-if)#spanning-tree portfast /配置成Portfast端口SW3#show vlan-sw brief /查看Vlan信息VLAN Name Status Ports10 VLAN0010 active
15、Fa0/1011 VLAN0010 active Fa0/11(5) 二層設(shè)備網(wǎng)管地址配置/為SW2配置網(wǎng)管接口SW2(config)#interface vlan 8 SW2(config-if)#ip address 192.168.8.130 255.255.255.128SW2(config-if)#no shutdownSW2(config-if)#exit SW2(config)#ip default-gateway 192.168.8.129/為SW3配置網(wǎng)管接口SW3(config)#interface vlan 8SW3(config-if)#ip address 192.1
16、68.8.131 255.255.255.128SW3(config-if)#no shutdownSW3(config-if)#exit SW3(config)#ip default-gateway 192.168.8.129 (6) 二層網(wǎng)絡(luò)STP調(diào)測SW1#show spanning-tree brief /查看生成樹簡要信息VLAN8 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0001 This bridge is the root Hello Time 2 sec Max Age
17、20 sec Forward Delay 15 sec Bridge ID Priority 0 Address cc00.0ed8.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface Designated Name PortID Prio Cost Sts Role FastEthernet0/3 128.4 128 19 FWD Desg Port-channel2 129.65 128 12 FWD Desg /都為指定端口,轉(zhuǎn)發(fā)狀態(tài) VLAN10 Spanning tree e
18、nabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0002 This bridge is the root Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 0 Address cc00.0ed8.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface Designated Name PortID Prio Cost Sts Rol
19、e FastEthernet0/3 128.4 128 19 FWD Desg Port-channel2 129.65 128 12 FWD Desg /都為指定端口,轉(zhuǎn)發(fā)狀態(tài) Vlan11 。 SW2#show spanning-tree briefVLAN8 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0001 Cost 12 Port 321 (Port-channel2) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bri
20、dge ID Priority 4096 Address cc01.0ed8.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface Designated Name Port ID Prio Cost Sts Role FastEthernet0/3 128.4 128 19 FWD DesgPort-channel2 129.65 128 12 FWD Root/Fa0/3為指定端口,Po2為跟端口,都為轉(zhuǎn)發(fā)狀態(tài)。Vlan 10 、Vlan 11 。SW3#show spanning-t
21、ree briefVLAN8 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0001 Cost 19 Port 2 (FastEthernet0/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge ID Priority 4096 Address cc02.0ed8.0001 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interfac
22、e Designated Name PortID Prio Cost Sts Role FastEthernet0/1 128.2 128 19 FWD Root FastEthernet0/2 128.3 128 19 BLK Altn /Fa0/1為根端口,轉(zhuǎn)發(fā)狀態(tài);Fa0/2為其他端口,阻塞狀態(tài)。VLAN10 Spanning tree enabled protocol ieee Root ID Priority 0 Address cc00.0ed8.0002 Cost 19 Port 2 (FastEthernet0/1) Hello Time 2 sec Max Age 20 se
23、c Forward Delay 15 sec Bridge ID Priority 4096 Address cc02.0ed8.0002 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Aging Time 0 Interface DesignatedName PortID Prio Cost Sts Role FastEthernet0/1 128.2 128 19 FWD RootFastEthernet0/2 128.3 128 19 BLK AltnFastEthernet0/10 128.11 128 19 FWD Desg
24、/Fa0/1為根端口,轉(zhuǎn)發(fā)狀態(tài);Fa0/2為其他端口,阻塞狀態(tài);Fa0/10為指定端口,轉(zhuǎn)發(fā)狀態(tài)。Vlan11。4. 三層網(wǎng)絡(luò)接口配置 SW1(config)#ip routing /啟動三層交換機(jī)的路由SW1(config)#interface vlan 8 /Vlan 8 的路由點(diǎn)SW1(config-if)#ip address 192.168.8.129 255.255.255.128SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#interface vlan 10 /Vlan 10 的路由點(diǎn)SW1(config-if)#ip address 192.168.10.1 255.255.255.0SW1(config-if)#no shutdown SW1(config-if)#exit SW1(config)#interface vlan 11 /Vlan 11的路由點(diǎn)SW1(config-if)#ip address 192.168.11.1 255.255.255.0SW1(config-if)#no shutdown SW1(config-if)#exit 5. STP切換測試SW3(config)#interface fa0/1SW3(confi
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- Unit 7 Fun after school 第1課時(shí) Reading教學(xué)設(shè)計(jì) 2024-2025學(xué)年滬教版(2024)七年級英語上冊
- 粵教版選修4 高中信息技術(shù) 3.1 數(shù)據(jù)的排序和篩選 教學(xué)設(shè)計(jì)
- 2025至2031年中國工業(yè)微波爐行業(yè)投資前景及策略咨詢研究報(bào)告
- 2025至2031年中國SRAM內(nèi)存行業(yè)投資前景及策略咨詢研究報(bào)告
- 2025至2030年中國龍門框式液壓機(jī)數(shù)據(jù)監(jiān)測研究報(bào)告
- 第21課《創(chuàng)造宣言》教學(xué)設(shè)計(jì) 2024-2025學(xué)年統(tǒng)編版語文九年級上冊
- 第七課 制作課程表(教學(xué)設(shè)計(jì))2024-2025學(xué)年五年級上冊信息技術(shù)川教版
- 2025至2030年中國鋁箔條數(shù)據(jù)監(jiān)測研究報(bào)告
- 2025至2030年中國芳香族聚異氰酸酯數(shù)據(jù)監(jiān)測研究報(bào)告
- 第19課 北魏政治和北方民族大交融(教學(xué)設(shè)計(jì))-2023-2024學(xué)年七年級歷史上冊新課標(biāo)核心素養(yǎng)一站式教與學(xué)(部編版)
- DeepSeek1天開發(fā)快速入門
- 2025書記員招聘考試題庫及參考答案
- 2024-2025年第二學(xué)期數(shù)學(xué)教研組工作計(jì)劃
- 2025輔警招聘公安基礎(chǔ)知識題庫附含參考答案
- 2025年菏澤醫(yī)學(xué)專科學(xué)校高職單招職業(yè)技能測試近5年??及鎱⒖碱}庫含答案解析
- 成都四川成都簡陽市簡城街道便民服務(wù)和智慧蓉城運(yùn)行中心招聘綜治巡防隊(duì)員10人筆試歷年參考題庫附帶答案詳解
- 2025-2030全球廢棄食用油 (UCO) 轉(zhuǎn)化為可持續(xù)航空燃料 (SAF) 的催化劑行業(yè)調(diào)研及趨勢分析報(bào)告
- 山東省臨沂市蘭山區(qū)2024-2025學(xué)年七年級上學(xué)期期末考試生物試卷(含答案)
- 2025年環(huán)衛(wèi)工作計(jì)劃
- 湖北省武漢市2024-2025學(xué)年度高三元月調(diào)考英語試題(含答案無聽力音頻有聽力原文)
- 品質(zhì)巡檢培訓(xùn)課件
評論
0/150
提交評論