




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、三層交換機(jī)與路由器的配置 實(shí)例(圖解)目的:學(xué)會使用三層交換與路由器讓處于不同網(wǎng)段的網(wǎng)絡(luò)相互通信實(shí)驗(yàn)步驟:一:二層交換機(jī)的配置:在三個二層交換機(jī)上分別劃出兩 VLAN,并將二層交換機(jī)上與三層交換或路由器上的接線設(shè)置為 trunk 接口二:三層交換機(jī)的配置:1:首先在三層交換上劃出兩個 VLAN,并進(jìn)入 VLAN為其配置 IP ,此 IP 將作為與他相連 PC的網(wǎng) 關(guān)。2:將與二層交換機(jī)相連的線同樣設(shè)置為 trunk 接線,并將三層交換與路由器連接的線設(shè)置為路 由接口( no switchsport )3:將路由器和下面的交換機(jī)進(jìn)行單臂路由的配置交換機(jī)的配置命令: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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(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)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 互動娛樂中心出租協(xié)議
- 拓展行業(yè)市場調(diào)研
- 拍賣物品遺失處理協(xié)議
- 幼兒園獲獎公開課:大班健康《蔬菜和水果》課件
- 成務(wù)條款協(xié)議
- 代理記賬合同的業(yè)績考核標(biāo)準(zhǔn)
- 對口升學(xué)建筑課件
- 學(xué)期教育小學(xué)化的危害
- 辛集中學(xué)高二語文測試題
- 阿克蘇職業(yè)技術(shù)學(xué)院《病原生物學(xué)》2023-2024學(xué)年第二學(xué)期期末試卷
- 23秋國家開放大學(xué)《液壓氣動技術(shù)》形考任務(wù)1-3參考答案
- 哈利波特與死亡圣器下雙語電影臺詞
- 瀘西電解鋁廠施工方案
- 035-花籃螺桿懸挑腳手架施工技術(shù)交底
- 人教版四年級數(shù)學(xué)下冊 (小數(shù)的意義)小數(shù)的意義和性質(zhì)課件
- 10以內(nèi)數(shù)字的分解和組成
- 課堂教學(xué)技能講座課件匯編
- SAP各模塊常用表清單
- 糧食流通管理?xiàng)l例考核試題及答案
- 中學(xué)初中學(xué)生學(xué)籍卡片(一)
- 農(nóng)村公路養(yǎng)護(hù)工程預(yù)算定額(征求意見稿)
評論
0/150
提交評論