路由器基本配置_第1頁
路由器基本配置_第2頁
路由器基本配置_第3頁
路由器基本配置_第4頁
路由器基本配置_第5頁
已閱讀5頁,還剩41頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

-路由器基本配置第一頁,共四十六頁,2022年,8月28日教學目標(Objectives

)1.路由器功能(FunctionofRouter)2.路由器組成(RouterComponents

)3.超級終端會話屬性(HyperTerminalSessionProperties)4.Router配置模式(RouterConfigurationMode

5.路由器基本配置(BasicConfigurationofRouter)第二頁,共四十六頁,2022年,8月28日Router功能(FunctionofRouter)Router是第三層的網絡設備(Routerislayer3device):1.路由選擇和交換(RoutingandSwitching)2.網絡分段(NetworkSegment)3.流量控制(FlowControl)4.隔離廣播(IsolateBroadcast)5.廣域網連接(WANConnection)第三頁,共四十六頁,2022年,8月28日路由選擇和交換(RoutingandSwitching)第四頁,共四十六頁,2022年,8月28日網絡分段(NetworkSegment)第五頁,共四十六頁,2022年,8月28日廣域網連接(WANConnection)第六頁,共四十六頁,2022年,8月28日路由器內部組成(RouterInternalComponents

)第七頁,共四十六頁,2022年,8月28日RAM/DRAM1.主要存儲路由表、ARP緩存、快速交換表和包隊列等Storesroutingtables,ARPcache,fast-switchingcache,andpacketholdqueues;

2.存儲正在運行的配置文件RAMalsoprovidestemporaryand/orrunningmemoryforarouter'sconfigurationfilewhiletherouterispowered;3.掉電或重啟動內容丟失RAMcontentislostduringapowerdownorrestart

第八頁,共四十六頁,2022年,8月28日非易失性RAM(NVRAM

)1.非易失性RAM存儲配置文件的備份Non-volatileRAMstorestherouter'sbackup/startupconfigurationfile;

2.掉電或重啟動NVRAM內容不丟失NVRAMcontentisretainedduringpowerdownorrestart第九頁,共四十六頁,2022年,8月28日Flash

1.Flash是可擦除,可重新編程的ROM,它存儲操作系統(tǒng)映像文件和微代碼Erasable,reprogrammableROMthatholdstheoperatingsystemimageandmicrocode;2.Flash可以軟件升級,不需要更換芯片F(xiàn)lashmemoryenablessoftwareupdateswithoutremovingandreplacingprocessorchips;

3.掉電或重啟動Flash內容不丟失Flashcontentisretainedduringpowerdownorrestart;4.Flash可以存儲多個版本的IOS軟件FlashmemorycanstoremultipleversionsofIOSsoftware第十頁,共四十六頁,2022年,8月28日ROM

1.ROM包含開機自檢程序、啟動程序和操作系統(tǒng)軟件ROMcontainspower-ondiagnostics,abootstrapprogram,andoperatingsystemsoftware;2.升級ROM中的軟件需要更換路由器主板上的芯片SoftwareupgradesinROMrequireremovingandreplacingchipsontherouter'smotherboard第十一頁,共四十六頁,2022年,8月28日2600系列路由器內部構成

(InternalComponentsof2600Router

)第十二頁,共四十六頁,2022年,8月28日2600系列路由器外觀

(ExternalConnectorson2600Router

)第十三頁,共四十六頁,2022年,8月28日計算機連接到控制臺接口

(ComputerConnecttoConsolePort)第十四頁,共四十六頁,2022年,8月28日在計算機上配置超級終端軟件

(ConfigureHyperTerminalsoftwareonthePC)第十五頁,共四十六頁,2022年,8月28日超級終端會話屬性

(HyperTerminalSessionProperties)第十六頁,共四十六頁,2022年,8月28日配置路由器的方式

(ExternalConfigurationSource)路由器初始配置必須通過控制臺接口進行。Whentherouterisfirstputintoservice,wemustconfigureitbyconsoleport.第十七頁,共四十六頁,2022年,8月28日Router配置模式(RouterConfigurationMode

)1.用戶模式(usermode)>2.特權模式(privilegedmode)#

3.全局模式(globalconfigmode)router(config)#4.子模式(sub-mode)接口模式(interfacemode):

router(config-if)#

線路模式(linemode):

router(config-line)#

路由模式(routermode):

router(config-router)#5.Setup模式6.RXBOOT模式7.ROMMON模式第十八頁,共四十六頁,2022年,8月28日用戶模式(UserMode

)這是一種“只能查看”的模式,用戶只能查看一些有關路由器的信息,不能更改。Thisisalook-onlymodeinwhichtheusercanviewsomeinformationabouttherouter,butcannotmakechanges.

第十九頁,共四十六頁,2022年,8月28日特權模式(PrivilegedMode)這種模式支持調試和測試命令,支持對交換機的詳細檢查、對配置文件的操作,并且可以由此進入配置模式。Thismodesupportsthedebuggingandtestingcommands,detailedexaminationoftheswitch,manipulationofconfigurationfiles,andaccesstoconfigurationmodes.

第二十頁,共四十六頁,2022年,8月28日全局配置模式(GlobalConfigurationMode

)這種模式提供了強大的單行命令,可以完成簡單的配置任務。Thismodeimplementspowerfulone-linecommandsthatperformsimpleconfigurationtasks.

第二十一頁,共四十六頁,2022年,8月28日Setup模式(Setup

Mode)這種模式在控制臺提供了交互式的對話,幫助新的用戶創(chuàng)建初次的基本的配置。Thismodepresentsaninteractiveprompteddialogattheconsolethathelpsthenewusercreateafirst-timebasicconfiguration.

第二十二頁,共四十六頁,2022年,8月28日RXBOOT模式(RXBOOT

Mode)1.這是你可以使用的維護模式,可以用來恢復丟失的密碼。Thisisthemaintenancemodethatyoucanuse,amongotherthings,torecoverfromlostpasswords.2.2600系列路由器沒有此模式2600routershavenotthismode。第二十三頁,共四十六頁,2022年,8月28日ROMMON模式(ROMMON

Mode)這種模式可以用來恢復密碼和升級IOS.ThismodeusetorecoverfromlostpasswordsandupdateIOSsoftware。第二十四頁,共四十六頁,2022年,8月28日Router工作模式轉換

(ChangeRouterConfigurationMode)Router>Router>enableRouter#Router#configureterminalRouter(config)#Router(config)#interfacefa0/0Router(config-if)#exitRouter(config)#routerripRouter(config-router)#endRouter#disableRouter>第二十五頁,共四十六頁,2022年,8月28日工作模式切換命令注釋

(Notes

ofChangingRouterModeCommand)進入特權命令狀態(tài)enable

退出特權命令狀態(tài)disable

進入設置對話狀態(tài)setup

進入全局設置狀態(tài)configterminal

退出全局設置狀態(tài)end

進入端口設置狀態(tài)interfacetypeslot/number

進入線路設置狀態(tài)linetypeslot/number

進入路由設置狀態(tài)routerprotocol

退出局部設置狀態(tài)exit第二十六頁,共四十六頁,2022年,8月28日命名路由器(NametheRouter)Router(config)#hostnameLab-A第二十七頁,共四十六頁,2022年,8月28日配置enable密碼(ConfiguringEnablePasswords

Lab-A(config)#enablepasswordcisco

showrunningenablepasswordcisco

(明文,未加密)Resultsin:第二十八頁,共四十六頁,2022年,8月28日配置enable密碼(ConfiguringEnablePasswords

)Lab-A(config)#enablesecretcisco

Showrunenablesecret5$1$emBK$WxqLahy7YO(密碼被加密)Resultsin:第二十九頁,共四十六頁,2022年,8月28日配置控制臺密碼(ConfiguringConsolePasswords

)router1(config)#lineconsole0router1(config-line)#passwordciscorouter1(config-line)#loginrouter1(config-line)#loggingsynchronous日志同步router1(config-line)#exec-timeout0防止自動清線router1(config-line)#endRouter1#exit第三十頁,共四十六頁,2022年,8月28日配置VTY密碼(ConfiguringVTYPasswords

)router1(config)#linevty0404:允許5個終端同時遠程登錄04:(permit5terminalsloginatthesametime)router1(config-line)#passwordciscorouter1(config-line)#loginrouter1(config-line)#privlevel15設置登錄優(yōu)先級(setpriority)第三十一頁,共四十六頁,2022年,8月28日配置串行口(ConfiguringaSerialInterface

)1.Rouer1#configt2.Router1(config)#interfaces0/0進入串行口模式(EnterSerialInterfaceMode

)3.Router1(config-if)#clockrate

64000DCE端配置時鐘(SetclockrateifaDCEcableisconnected)配置接口IP地址和網絡掩碼(SpecifytheInterfaceAddressandSubnetMask

)5.Router1(config-if)#noshut開啟接口(TurnontheInterface

)第三十二頁,共四十六頁,2022年,8月28日配置以太口(ConfiguringanEthernetInterface

)1.Router1#configt2.Router1(config)#interfacefa0/0進入以太口模式(EnterEthernetInterfaceMode

)配置接口IP地址和網絡掩碼(SpecifytheInterfaceAddressandSubnetMask

)4.Router1(config-if)#noshut開啟接口(TurnontheInterface

第三十三頁,共四十六頁,2022年,8月28日配置接口描述(ConfiguringInterfaceDescription

)1.接口描述可以幫助網絡用戶記住特定的關于接口的信息Adescriptionofaninterfacecanhelpanetworkuserrememberspecificinformationabouttheinterface.2.描述僅僅是對接口的一個標記。Thedescriptionismeantsolelyasacommentabouttheinterface.Eg1interfacefa0/0descriptionLANEngineering,Bldg.2

Eg2interfaceserial0/0

descriptionABCnetwork1,Circuit1第三十四頁,共四十六頁,2022年,8月28日Router端口狀態(tài)(StatusofInterface)第三十五頁,共四十六頁,2022年,8月28日配置登錄提示信息(ConfiguringLoginBanners

)Router1(config)#bannermotd#WelcometoShenzhenPolytechnic#“#”:特定的分隔符號“#”:aspaceandadelimitingcharacter第三十六頁,共四十六頁,2022年,8月28日高級組合命令(EnhancedEditingCommands

)Ctrl+A:光標回到命令行的最開頭(movetothebeginningofthecommandline)Ctrl+E:光標回到命令行的最后(movetotheendofthecommandline)Ctrl+B:光標向左移一字符位置(movebackonecharacter)Ctrl+F:光標向右移一字符位置(movefrowardonecharacter)※可以使用terminalnoediting命令來使組合鍵失效,要使組合鍵重新生效,可用terminalediting命令※

Todisableenhancededitingmode,typeterminalnoeditingattheprivilegedEXECmodeprompt.第三十七頁,共四十六頁,2022年,8月28日高級組合命令(EnhancedEditingCommands

)Ctrl+P(or上箭頭):使用上一條用過的命令(recallpreviouscommand)Ctrl+N(or下箭頭):使用下一條用過的命令(recallmostrecentcommand)第三十八頁,共四十六頁,2022年,8月28日使用“?”(use“?”)clockclock?clockset?clockset10:30:30?clockset10:30:3020oct?clockset10:30:3020oct2002?showclock第三十九頁,共四十六頁,2022年,8月28日1.保存配置文件(Saveconfigurationfile

)copyrunning-configstartup-configWrite2.刪除配置文件(Deleteconfigurationfile)erasenvram或erasestartup-config3.查看配置文件(showconfigurationfile)showstartup-configshowrunning-config保存、刪除、查看配置文件(Save,Delete,ShowConfigurationFile)第四十頁,共四十六頁,2022年,8月28日各種show命令第四十一頁,共四十六頁,2022年,8月28日show命令第四十二頁,共四十六頁,2022年,8月28日Show命令(ShowCommand)1.showversion

這個命令可以查看IOS版本號,已啟動時間,flash中的IOS的文件名,router里面共有什么的端口,寄存器的值等等。2.showprotocol

顯示與ip有關的路由協(xié)議信息,各個端口的情況。3.showflash

查看flash中的內容,IOS的長度,文件名,剩余空間,總共空間。4.showrunning-config

查看路由器當前的配置信息。5.showstartup-config

查看nvram中的路由器配置信息。6.showinterface

查看路由器上的各個端口的狀態(tài)信息。7.showcontroller

查看接口控制器的

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論