




下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
1、三層交換機與路由器的配置 實例(圖解)目的:學會使用三層交換與路由器讓處于不同網段的網絡相互通信實驗步驟:一:二層交換機的配置:在三個二層交換機上分別劃出兩 VLAN,并將二層交換機上與三層交換或路由器上的接線設置為 trunk 接口二:三層交換機的配置:1:首先在三層交換上劃出兩個 VLAN,并進入 VLAN為其配置 IP ,此 IP 將作為與他相連 PC的網 關。2:將與二層交換機相連的線同樣設置為 trunk 接線,并將三層交換與路由器連接的線設置為路 由接口( no switchsport )3:將路由器和下面的交換機進行單臂路由的配置交換機的配置命令:SW 0:Switch>S
2、witch>enSwitch#confConfiguring from terminal, memory, or network terminal?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#int f0/2Switch(config-if)#switchport access vlan 2Switch(config-if)#no shutSwitch(config-if)#int f0/3Sw
3、itch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWLiNn:e protocol on Interface FastEthernet0/3, changedstate to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up Switch(config-if)#exitSwitch(config)#SW 1:Switch>enSwitch#confConfiguring from terminal, me
4、mory, or network terminal?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/2Switch(config-if)#switchport access vlan 2% Access VLAN does not exist. Creating vlan 2Switch(config-if)#no shut Switch(config-if)#exitSwitch(config)#int f0/3Switch(config-if)#switchport mode
5、 trunk%LINEPROTO-5-UPDOWLiNn:e protocol on InterfaceFastEthernet0/3, changed stateto down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up Switch(config-if)#SW 2:Switch>enSwitch#confConfiguring from terminal, memory, or network terminal? Enter configuration comm
6、ands, one per line. End with CNTL/Z. Switch(config)#int f0/2Switch(config-if)#switchport access vlan 2% Access VLAN does not exist. Creating vlan 2Switch(config-if)#exitSwitch(config)#int f0/3Switch(config-if)#switchport mode trunk Switch(config-if)#三層交換的配置命令:Switch>enSwitch#confConfiguring from
7、terminal, memory, or network terminal?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/1Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWLiNn:e protocol on Interface FastEthernet0/2, changedstate to downSwitch(config-if)#exitSwitch(config)#int f0/2Switch(conf
8、ig-if)#switchport mode trunkSwitch(config-if)#exitSwitch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#int vlan 1Switch(config-if)#no shut%LINK-5-CHANGED: Interface Vlan1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to upSwitch(config-if)#ip address
9、 192.168.1.168 255.255.255.0Switch(config-if)#exitSwitch(config)#int vlan 2%LINK-5-CHANGED: Interface Vlan2, changed state to up%LINEPROTO-5-UPDOWNL:i ne protocol on Interface Vlan2, changed state to upSwitch(config-if)#ip addSwitch(config-if)#ip address 192.168.2.168 255.255.255.0Switch(config-if)#
10、%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#exitSwitch(config)#int f0/3Switch(config-if)#no switchport%LINEPROTO-5-UPDOWLiNn:e protocol on Interface FastEthernet0/3, changed state
11、to down%LINEPROTO-5-UPDOWLNin: e protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#Switch(config-if)#ip address 192.168.10.1 255.255.255.0Switch(config-if)#no shutSwitch(config-if)#exitSwitch(config)#ip routingSwitch(config-if)#exitSwitch(config)#ip route 0.0.0.0 0.0.0.0 19
12、2.168.10.2Switch(config)#路由器的配置:Router>enRouter#confConfiguring from terminal, memory, or network terminal?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upRouter(config-if)#e
13、xitRouter(config)#int f0/1Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Router(config-if)#exitRouter(config)#int f0/0Router(config-if)#no shutRouter(config-if)#exitRouter(co
14、nfig)#int f0/0.1Router(config-subif)#encapsulation dot1Q 1Router(config-subif)#ip address 192.168.3.168 255.255.255.0 Router(config-subif)#exitRouter(config)#int f0/0.2Router(config-subif)#encapsulation dot1Q 2Router(config-subif)#ip addRouter(config-subif)#ip address 192.168.4.168 255.255.255.0 Router(config-subif)#exitRouter(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.1Router(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRouter#confConfig
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 吊橋廠家施工方案
- 全國川教版信息技術八年級下冊第11課《網上視聽》教學設計
- 廣場彩繪施工方案
- 2025至2030年中國保潔撿拾器數據監測研究報告
- 2025年中國頂口礦用隔爆型防爆燈市場調查研究報告
- 內蒙古2025年呼倫貝爾扎蘭屯市綜合類崗位“校園引才”筆試歷年參考題庫附帶答案詳解
- 網絡登高施工方案
- 小學數學人教版一年級下冊簡單的計算一等獎第3課時教案設計
- 消防系統培訓課件
- 佛山2025年廣東佛山市禪城區兜底安置類公益性崗位招聘60人筆試歷年參考題庫附帶答案詳解
- 適用于新高考新教材備戰2025屆高考歷史一輪總復習第8單元中華人民共和國成立與社會主義革命和建設第25講改革開放與社會主義現代化建設新時期課件
- 2024中考化學總復習必刷80題(第1-80題)(含解析)
- 人力資源管理測試題答案
- 《新青島版(六三制)五年級下冊科學檢測試題(含答案)》期中檢測
- DL∕T 1901-2018 水電站大壩運行安全應急預案編制導則
- 2023-2024學年貴州省黔南州八年級(下)期末數學試卷(含答案)
- 臨床重點學科驗收課件
- 企業保密意識培訓課件
- JBT 11735-2014 鋁合金鋅合金壓鑄生產安全技術要求
- 2023年江蘇省南京市聯合體八年級(下)期中生物試卷(含解析)
- 2024年山東省煙臺市開發區中考數學一模試卷
評論
0/150
提交評論