層交換機(jī)與路由器的配置實(shí)例圖解_第1頁
層交換機(jī)與路由器的配置實(shí)例圖解_第2頁
層交換機(jī)與路由器的配置實(shí)例圖解_第3頁
免費(fèi)預(yù)覽已結(jié)束,剩余1頁可下載查看

下載本文檔

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

文檔簡介

1、目的:學(xué)會(huì)使用三層交換與路由器讓處于不同網(wǎng)段的網(wǎng)絡(luò)相互通信實(shí)驗(yàn)步驟:一:二層交換機(jī)的配置:在三個(gè)二層交換機(jī)上分別劃出兩VLAN并將二層交換機(jī)上與三層交換或路由器上的接線設(shè)置為trunk接口二:三層交換機(jī)的配置:1首先在三層交換上劃出兩個(gè)VLAN并進(jìn)入VLAN為其配置IP,此IP將作為與他相連PC的網(wǎng)關(guān)。2:將與二層交換機(jī)相連的線同樣設(shè)置為 trunk 接線,并將三層交換與路由器連接的線設(shè)置為路由接口 (noswitchsport )3:將路由器和下面的交換機(jī)進(jìn)行單臂路由的配置實(shí)驗(yàn)最終結(jié)果:拓?fù)鋱D下各個(gè)PC均能相互通信交換機(jī)的配置命令:SW0:SwitchSwitchenSwitch#confC

2、onfiguringfromterminal,memory,ornetworkterminal?Enterconfigurationcommands,Z.Switch(config)#vlan2Switch(config-vlan)#exitSwitch(config)#intf0/2Switch(config-if)#switchportaccessvlan2Switch(config-if)#noshutSwitch(config-if)#intf0/3Switch(config-if)#switchportmodetrunk%LINEPROTO-5-UPDOWN:Lineprotocol

3、onInterfaceFastEthernet0/3,changedstatetodown %LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/3,changedstatetoup Switch(config-if)#exitSwitch(config)#SW1:SwitchenSwitch#confConfiguringfromterminal,memory,ornetworkterminal?Enterconfigurationcommands,Z.Switch(config)#intf0/2Switch(config-if)#

4、switchportaccessvlan2%Switch(config-if)#noshutSwitch(config-if)#exitSwitch(config)#intf0/3Switch(config-if)#switchportmodetrunk%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/3,changedstatetodown %LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/3,changedstatetoup Switch(config-if)#S

5、W2:SwitchenSwitch#confConfiguringfromterminal,memory,ornetworkterminal?Enterconfigurationcommands,Z.Switch(config)#intf0/2Switch(config-if)#switchportaccessvlan2%Switch(config-if)#exitSwitch(config)#intf0/3Switch(config-if)#switchportmodetrunkSwitch(config-if)#三層交換的配置命令:SwitchenSwitch#confConfigurin

6、gfromterminal,memory,ornetworkterminal?Enterconfigurationcommands,Z.Switch(config)#intf0/1Switch(config-if)#switchportmodetrunk%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/2,changedstatetodown Switch(config-if)#exitSwitch(config)#intf0/2Switch(config-if)#switchportmodetrunkSwitch(config-

7、if)#exitSwitch(config)#vlan2Switch(config-vlan)#exitSwitch(config)#intvlan1Switch(config-if)#noshut%LINK-5-CHANGED:InterfaceVlan1,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceVlan1,changedstatetoupSwitch(config-if)#ipaddressvlan2%LINK-5-CHANGED:InterfaceVlan2,changedstatetoup %LINEPROT

8、O-5-UPDOWN:LineprotocolonInterfaceVlan2,changedstatetoupSwitch(config-if)#ipadd Switch(config-if)#ipaddressInterfaceFastEthernet0/3,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/3,changedstatetoup Switch(config-if)#exitSwitch(config)#intf0/3Switch(config-if)#noswitchport %

9、LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/3,changedstatetodown %LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/3,changedstatetoupSwitch(config-if)# Switch(config-if)#ipaddressshutSwitch(config-if)#exitSwitch(config)#iproutingSwitch(config-if)#exitSwitch(config)#iproute路由器的配置:R

10、outerenRouter#confConfiguringfromterminal,memory,ornetworkterminal?Enterconfigurationcommands,Z.Router(config)#intf0/0Router(config-if)#noshut %LINK-5-CHANGED:InterfaceFastEthernet0/0,changedstatetoupRouter(config-if)#exitRouter(config)#intf0/1Router(config-if)#noshut%LINK-5-CHANGED:InterfaceFastEth

11、ernet0/1,changedstatetoup%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceFastEthernet0/1,changedstatetoup Router(config-if)#exitRouter(config)#intf0/0Router(config-if)#noshutRouter(config-if)#exitRouter(config)#intf0/Router(config-subif)#encapsulationdot1Q1Router(config-subif)#ipaddressf0/Router(config-subif)#encapsulationdot1Q2Router(config-subif)#ipaddRouter(config-subif)#ipaddressrouteConfiguredfrom

溫馨提示

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

評論

0/150

提交評論