![構(gòu)建簡單的網(wǎng)絡(luò):第4章 操作與配置Cisco IOS_第1頁](http://file4.renrendoc.com/view/99a1de9c64753d0d6d55f6d4defded52/99a1de9c64753d0d6d55f6d4defded521.gif)
![構(gòu)建簡單的網(wǎng)絡(luò):第4章 操作與配置Cisco IOS_第2頁](http://file4.renrendoc.com/view/99a1de9c64753d0d6d55f6d4defded52/99a1de9c64753d0d6d55f6d4defded522.gif)
![構(gòu)建簡單的網(wǎng)絡(luò):第4章 操作與配置Cisco IOS_第3頁](http://file4.renrendoc.com/view/99a1de9c64753d0d6d55f6d4defded52/99a1de9c64753d0d6d55f6d4defded523.gif)
![構(gòu)建簡單的網(wǎng)絡(luò):第4章 操作與配置Cisco IOS_第4頁](http://file4.renrendoc.com/view/99a1de9c64753d0d6d55f6d4defded52/99a1de9c64753d0d6d55f6d4defded524.gif)
![構(gòu)建簡單的網(wǎng)絡(luò):第4章 操作與配置Cisco IOS_第5頁](http://file4.renrendoc.com/view/99a1de9c64753d0d6d55f6d4defded52/99a1de9c64753d0d6d55f6d4defded525.gif)
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
第四章
操作與配置
CiscoIOSCiscoIOS軟件提供多種網(wǎng)絡(luò)服務(wù)進而支持各種網(wǎng)絡(luò)應(yīng)用.Cisco互連網(wǎng)操作系統(tǒng)(IOS)軟件硬件自檢定位并加載CiscoIOS映象文件定位并運行配置文件Cisco設(shè)備的簡單啟動過程提供命令行界面在不同的網(wǎng)絡(luò)設(shè)備上運行時有差別在命令模式下可以鍵入或粘貼命令
鍵入命令后回車,設(shè)備即解析和執(zhí)行所鍵入的命令兩個主要命令模式是用戶模式和特權(quán)模式不同的命令模式有不同的提示符CiscoIOSCiscoIOS用戶界面的基本特性特權(quán)(或enabled)模式對交換機和路由器更深入的操作有配置和監(jiān)視權(quán)力是進入其它配置模式的前提命令提示符為
主機名#模式二(也是最常用的模式):CiscoIOS的主要命令模式(續(xù))系統(tǒng)啟動例程會初始化路由器如果需要,路由器可以有選擇性地回退啟動CheckhardwareFindandloadCiscoIOSsoftwareimage
Findandapplyrouterconfigurationinformation
LoadBootstrap1. 啟動前確認正確連接線纜和控制線2. 按下電源開關(guān)3. 觀察啟動順序 CiscoIOS輸出到控制臺上的內(nèi)容Cisco路由器的初始啟動沒有配置文件與有配置文件的路由器啟動對比 ---SystemConfigurationDialog---
Continuewithconfigurationdialog?[yes/no]:yes
Atanypointyoumayenteraquestionmark'?'forhelp.
Usectrl-ctoabortconfigurationdialogatanyprompt.
Defaultsettingsareinsquarebrackets'[]'.
Setup模式wg_ro_ccon0isnowavailablePressRETURNtogetstarted.用戶模式提示wg_ro_c>路由器啟動時在控制臺上的輸出內(nèi)容控制臺Setup:初始配置對話框Router#setup---SystemConfigurationDialog---Continuewithconfigurationdialog?[yes/no]:yAtanypointyoumayenteraquestionmark'?'forhelp.Usectrl-ctoabortconfigurationdialogatanyprompt.Defaultsettingsareinsquarebrackets'[]'.Basicmanagementsetupconfiguresonlyenoughconnectivityformanagementofthesystem,extendedsetupwillaskyoutoconfigureeachinterfaceonthesystemWouldyouliketoenterbasicmanagementsetup?[yes/no]:n設(shè)置全局參數(shù)初始化全局參數(shù)Configuringglobalparameters:Enterhostname[Router]:wg_ro_cTheenablesecretisapasswordusedtoprotectaccesstoprivilegedEXECandconfigurationmodes.Thispassword,afterentered,becomesencryptedintheconfiguration.Enterenablesecret:ciscoTheenablepasswordisusedwhenyoudonotspecifyanenablesecretpassword,withsomeoldersoftwareversions,andsomebootimages.Enterenablepassword:sanfranThevirtualterminalpasswordisusedtoprotectaccesstotherouteroveranetworkinterface.Entervirtualterminalpassword:sanjoseConfigureSNMPNetworkManagement?[no]:設(shè)置腳本的確認與應(yīng)用Thefollowingconfigurationcommandscriptwascreated:hostnameRouterenablesecret5$1$/CCk$4r7zDwDNeqkxFO.kJxC3G0enablepasswordsanfranlinevty04passwordsanjosenosnmp-server!noappletalkroutingnodecnetroutingiproutingnoclnsroutingnoipxroutingnovinesroutingnoxnsroutingnoapolloroutingisdnswitch-typebasic-5essinterfaceBRI0shutdownnoipaddress!interfaceEthernet0noshutdownipaddress1nomopenabled!interfaceSerial0shutdownnoipaddress<textomitted>end[0]GototheIOScommandpromptwithoutsavingthisconfig.[1]Returnbacktothesetupwithoutsavingthisconfig.[2]Savethisconfigurationtonvramandexit.Enteryourselection[2]:Consolewg_ro_c>wg_ro_c>enablewg_ro_c#wg_ro_c#disablewg_ro_c>wg_ro_c>logoutwg_ro_ccon0isnowavailablePressRETURNtogetstarted.用戶模式提示特權(quán)模式提示登入路由器只要所輸命令串在全部命令中是唯一的,可以將一個命令盡可能地簡寫,路由器在用戶模式下的命令清單wg_ro_c>?Execcommands:
access-enableCreateatemporaryAccess-Listentry
atmsigExecuteAtmSignallingCommands
cdChangecurrentdevice
clearResetfunctions
connectOpenaterminalconnection
dirListfilesongivendevice
disableTurnoffprivilegedcommands
disconnectDisconnectanexistingnetworkconnection
enableTurnonprivilegedcommands
exitExitfromtheEXEC
helpDescriptionoftheinteractivehelpsystem
latOpenalatconnection
lockLocktheterminal
loginLoginasaparticularuser
logoutExitfromtheEXEC
--More--wg_ro_c#?Execcommands:access-enableCreateatemporaryAccess-Listentryaccess-profileApplyuser-profiletointerfaceaccess-templateCreateatemporaryAccess-ListentrybfeFormanualemergencymodessettingcdChangecurrentdirectoryclearResetfunctionsclockManagethesystemclockconfigureEnterconfigurationmodeconnectOpenaterminalconnectioncopyCopyfromonefiletoanotherdebugDebuggingfunctions(seealso'undebug')deleteDeleteafiledirListfilesonafilesystemdisableTurnoffprivilegedcommandsdisconnectDisconnectanexistingnetworkconnectionenableTurnonprivilegedcommandseraseEraseafilesystemexitExitfromtheEXEChelpDescriptionoftheinteractivehelpsystem--More--路由器在特權(quán)模式下的命令清單只要輸入部分命令串(唯一表示某個命令),緊接著按tab鍵就可以完整地輸入一個命令showversion命令wg_ro_a#showversionCiscoInternetworkOperatingSystemSoftwareIOS(tm)2500Software(C2500-JS-L),Version12.0(3),RELEASESOFTWARE(fc1)Copyright(c)1986-1999byciscoSystems,Inc.CompiledMon08-Feb-9918:18byphanguyeImagetext-base:0x03050C84,data-base:0x00001000ROM:SystemBootstrap,Version11.0(10c),SOFTWAREBOOTFLASH:3000BootstrapSoftware(IGS-BOOT-R),Version11.0(10c),RELEASESOFTWARE(fc1)wg_ro_auptimeis20minutesSystemrestartedbyreloadSystemimagefileis"flash:c2500-js-l_120-3.bin"(outputomitted)--More--Configurationregisteris0x2102
查看配置情況控制臺IOSSetuputilityshowstartup-configshowrunning-config將配置參數(shù)保存到NVRAM中ConfigConfigRAMNVRAMshowrunning
和showstartup
命令wg_ro_c#showstartup-configUsing1359outof32762bytes!version12.0! --More--wg_ro_c#showrunning-configBuildingconfiguration...
Currentconfiguration:
!
version12.0! --More--保存在NVRAM中保存在RAM中顯示當(dāng)前運行的和保存的配置情況路由器模式一覽Router(config)#Router>enableRouter#configtermExitCtrl-Z(end)用戶模式特權(quán)模式全局配置模式配置模式模式提示Interface Router(config-if)#Subinterface Router(config-subif)#Controller Router(config-controller)#Line Router(config-line)#Router Router(config-router)#IPXrouter Router(config-ipx-router)#保存配置wg_ro_c#wg_ro_c#copyrunning-configstartup-configDestinationfilename[startup-config]?Buildingconfiguration…wg_ro_c#將當(dāng)前運行的配置復(fù)制到NVRAM中配置路由器的各種標識為路由器或其端口設(shè)置標識或信息路由器名Router(config)#hostnamewg_ro_cwg_ro_c(config)#開機時的固定顯示信息wg_ro_c(config)#bannermotd#
AccountingDepartmentYouhaveenteredasecuredsystem.Authorizedaccessonly!
#配置路由器的各種標識為路由器或其端口設(shè)置標識或信息路由器名Router(config)#hostnamewg_ro_cwg_ro_c(config)#開機時的固定顯示信息wg_ro_c(config)#bannermotd# AccountingDepartmentYouhaveenteredasecuredsystem.Authorizedaccessonly!
#端口描述wg_ro_c(config)#interfaceethernet0wg_ro_c(config-if)#descriptionEngineeringLAN,Bldg.18Router(config)#lineconsole0Router(config-line)#loginRouter(config-line)#passwordcisco控制臺密碼虛擬終端密碼Router(config)#linevty04Router(config-line)#loginRouter(config-line)#passwordsanjose路由器密碼配置Router(config)#lineconsole0Router(config-line)#loginRouter(config-line)#passwordcisco控制臺密碼虛擬終端密碼Router(config)#linevty04Router(config-line)#loginRouter(config-line)#passwordsanjose特權(quán)模式明文密碼Router(config)#enablepasswordcisco特權(quán)模式加密密碼Router(config)#enablesecretsanfran
路由器密碼配置其它控制臺命令Router(config)#lineconsole0Router(config-line)#exec-timeout00Router(config)#lineconsole0Router(config-line)#loggingsynchronous禁止控制臺會話自動退出重顯被打亂的控制臺輸入Router(config)#interfacetypenumberRouter(config-if)#端口配置type
包括serial,ethernet,tokenring,fddi,hssi,loopback,dialer,null,async,atm,bri,andtunnelnumber
用來識別具體的單個端口Router(config-if)#exit從當(dāng)前端口配置模式退出Router(config)#interfacetypeslot/portRouter(config-if)#模塊化端口的表示法開啟或關(guān)閉端口Router#configuretermRouter(config)#interfaceserial0
Router(config-if)#noshutdown%LINK-3-UPDOWN:InterfaceSeria0,changedstatetoup%LINEPROTO-5-UPDOWN:LineProtocolonInterfaceSerial0,changedstatetoup開啟已經(jīng)關(guān)閉的端口Router#configuretermRouter(config)#interfaceserial0
Router(config-if)#shutdown%LINK-5-CHANGED:InterfaceSerial0,changedstatetoadministrativelydown%LINEPROTO-5-UPDOWN:LineprotocolonInterfaceSerial0,changedstatetodown人工關(guān)閉端口路由器的
showinterfaces
命令Router#showinterfacesEthernet0isup,lineprotocolisupHardwareisLance,addressis00e0.1e5d.ae2f(bia00e0.1e5d.ae2f)Internetaddressis1/24MTU1500bytes,BW10000Kbit,DLY1000usec,rely255/255,load1/255EncapsulationARPA,loopbacknotset,keepaliveset(10sec)ARPtype:ARPA,ARPTimeout04:00:00Lastinput00:00:07,output00:00:08,outputhangneverLastclearingof"showinterface"countersneverQueueingstrategy:fifoOutputqueue0/40,0drops;inputqueue0/75,0drops5minuteinputrate0bits/sec,0packets/sec5m
溫馨提示
- 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)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度農(nóng)貿(mào)場農(nóng)產(chǎn)品溯源系統(tǒng)開發(fā)合同3篇
- 2025版無人駕駛車輛測試場租賃合同范本4篇
- 二零二五版智慧家居系統(tǒng)定制開發(fā)合同范本及智能家居生態(tài)圈構(gòu)建4篇
- 二零二五年度旅游度假區(qū)內(nèi)部控制制度咨詢與旅游服務(wù)提升合同4篇
- 2025年綠色環(huán)保服裝定制生產(chǎn)合同范本3篇
- 二零二五年度體育賽事組織與管理聘用合同
- 2025年度泥工班組勞務(wù)承包施工合同范本
- 二零二五年度房地產(chǎn)代持權(quán)證登記合同范本4篇
- 2025年度個人知識產(chǎn)權(quán)許可欠款合同模板3篇
- 2025版門窗行業(yè)綠色制造與安裝合同4篇
- 二零二五隱名股東合作協(xié)議書及公司股權(quán)代持及回購協(xié)議
- 四川省成都市武侯區(qū)2023-2024學(xué)年九年級上學(xué)期期末考試化學(xué)試題
- 教育部《中小學(xué)校園食品安全和膳食經(jīng)費管理工作指引》知識培訓(xùn)
- 初一到初三英語單詞表2182個帶音標打印版
- 2024年秋季人教版七年級上冊生物全冊教學(xué)課件(2024年秋季新版教材)
- 環(huán)境衛(wèi)生學(xué)及消毒滅菌效果監(jiān)測
- 2023年11月英語二級筆譯真題及答案(筆譯實務(wù))
- 元明時期左江上思州黃姓土司問題研究
- 圍手術(shù)期應(yīng)急預(yù)案
- 中玻北方新材料有限責(zé)任公司太陽能光伏玻璃及l(fā)ow-e節(jié)能玻璃深加工項目申請立項環(huán)境影響評估報告書簡本
- 【橡膠工藝】-橡膠履帶規(guī)格
評論
0/150
提交評論