版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、第六章操作與配置Cisco IOS第1頁/共29頁本章目標(biāo)本章目標(biāo) 通過本章的學(xué)習(xí),您應(yīng)該掌握以下內(nèi)容: 完成路由器的初始參數(shù)配置 在網(wǎng)絡(luò)設(shè)備上進(jìn)入并識(shí)別不同的命令行模式 在不同的用戶界面下應(yīng)用各種幫助和命令行編輯功能 查看并確認(rèn)各網(wǎng)絡(luò)設(shè)備的基本信息第2頁/共29頁 Cisco IOS 軟件是Cisco路由器和大多數(shù)交換機(jī)的核心,它是一個(gè)可以提供路由、交換、網(wǎng)絡(luò)互連以及遠(yuǎn)程通信功能的專有內(nèi)核。Cisco 互連網(wǎng)操作系統(tǒng)互連網(wǎng)操作系統(tǒng)(IOS)軟件軟件第3頁/共29頁 提供命令行界面 在不同的網(wǎng)絡(luò)設(shè)備上運(yùn)行時(shí)有差別 在命令模式下可以鍵入或粘貼命令 鍵入命令后回車,設(shè)備即解析和執(zhí)行所鍵入的命令 三
2、個(gè)主要命令模式 不同的命令模式有不同的提示符CiscoIOSCisco IOS用戶界面的基本特性用戶界面的基本特性第4頁/共29頁Cisco IOS的主要命令模式的主要命令模式第5頁/共29頁沒有配置文件與有配置文件的路由器啟動(dòng)對(duì)比- System Configuration Dialog -Continue with configuration dialog? yes/no:yes At any point you may enter a question mark ? for help.Use ctrl-c to abort configuration dialog at any prom
3、pt.Default settings are in square brackets .Setup模式wg_ro_c con0 is now availablePress RETURN to get started.用戶模式提示wg_ro_c路由器啟動(dòng)時(shí)在控制臺(tái)上的輸出內(nèi)容路由器啟動(dòng)時(shí)在控制臺(tái)上的輸出內(nèi)容控制臺(tái)第6頁/共29頁Setup: 初始配置對(duì)話框初始配置對(duì)話框 Router#setup - System Configuration Dialog -Continue with configuration dialog? yes/no: yAt any point you may ente
4、r a question mark ? for help.Use ctrl-c to abort configuration dialog at any prompt.Default settings are in square brackets .Basic management setup configures only enough connectivityfor management of the system, extended setup will ask youto configure each interface on the systemWould you like to e
5、nter basic management setup? yes/no: n第7頁/共29頁設(shè)置全局參數(shù)設(shè)置全局參數(shù)Configuring global parameters: Enter host name Router:wg_ro_c The enable secret is a password used to protect access to privileged EXEC and configuration modes. This password, after entered, becomes encrypted in the configuration. Enter enabl
6、e secret: cisco The enable password is used when you do not specify an enable secret password, with some older software versions, and some boot images. Enter enable password: sanfran The virtual terminal password is used to protect access to the router over a network interface. Enter virtual termina
7、l password: sanjose Configure SNMP Network Management? no:第8頁/共29頁設(shè)置腳本的確認(rèn)與應(yīng)用設(shè)置腳本的確認(rèn)與應(yīng)用The following configuration command script was created:hostname Routerenable password sanfranline vty 0 4password sanjoseno snmp-server!no appletalk routingno decnet routingip routingno clns routingno ipx routingno
8、 vines routingno xns routingno apollo routingisdn switch-type basic-5essinterface BRI0shutdownno ip address!interface Ethernet0no shutdownno mop enabled!interface Serial0shutdownno ip addressend0 Go to the IOS command prompt without saving this config.1 Return back to the setup without saving this c
9、onfig.2 Save this configuration to nvram and exit.Enter your selection 2:第9頁/共29頁 只要所輸命令串在全部命令中是唯一的,可以將一個(gè)命令盡可能地簡(jiǎn)寫路由器在用戶模式下的命令清單路由器在用戶模式下的命令清單wg_ro_c?Exec commands: access-enable Create a temporary Access-List entry atmsig Execute Atm Signalling Commands cd Change current device clear Reset functions
10、 connect Open a terminal connection dir List files on given device disable Turn off privileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands exit Exit from the EXEC help Description of the interactive help system lat Open a lat connection lock Lock
11、the terminal login Log in as a particular user logout Exit from the EXEC- More -第10頁/共29頁wg_ro_c#?Exec commands: access-enable Create a temporary Access-List entry access-profile Apply user-profile to interface access-template Create a temporary Access-List entry bfe For manual emergency modes setti
12、ng cd Change current directory clear Reset functions clock Manage the system clock configure Enter configuration mode connect Open a terminal connection copy Copy from one file to another debug Debugging functions (see also undebug) delete Delete a file dir List files on a filesystem disable Turn of
13、f privileged commands disconnect Disconnect an existing network connection enable Turn on privileged commands erase Erase a filesystem exit Exit from the EXEC help Description of the interactive help system- More -路由器在特權(quán)模式下的命令清單路由器在特權(quán)模式下的命令清單只要輸入部分命令串只要輸入部分命令串(唯一表示某個(gè)命令唯一表示某個(gè)命令),緊接著按,緊接著按tab鍵就可以完整地輸入
14、一個(gè)命令鍵就可以完整地輸入一個(gè)命令第11頁/共29頁show version 命令命令wg_ro_a#show versionCisco Internetwork Operating System Software IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fc1)Copyright (c) 1986-1999 by cisco Systems, Inc.Compiled Mon 08-Feb-99 18:18 by phanguyeImage text-base: 0 x03050C84,
15、data-base: 0 x00001000ROM: System Bootstrap, Version 11.0(10c), SOFTWAREBOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE(fc1)wg_ro_a uptime is 20 minutesSystem restarted by reloadSystem image file is flash:c2500-js-l_120-3.bin(output omitted)-More-Configuration re
16、gister is 0 x2102第12頁/共29頁查看配置情況查看配置情況控制臺(tái)IOSSetup utilityshowstartup-configshowrunning-config將配置參數(shù)保存到將配置參數(shù)保存到NVRAM中中ConfigConfigRAMNVRAM第13頁/共29頁show running 和和 show startup 命令命令wg_ro_c#show startup-configUsing 1359 out of 32762 bytes!- More -wg_ro_c#show running-config!- More -保存在NVRAM中保存在RAM中顯示當(dāng)前運(yùn)
17、行的和保存的配置情況顯示當(dāng)前運(yùn)行的和保存的配置情況第14頁/共29頁保存配置保存配置wg_ro_c#wg_ro_c#copy running-config startup-configDestination filename startup-config?Building configurationwg_ro_c#將當(dāng)前運(yùn)行的配置復(fù)制到將當(dāng)前運(yùn)行的配置復(fù)制到NVRAM中中第15頁/共29頁配置路由器的各種標(biāo)識(shí)配置路由器的各種標(biāo)識(shí)路由器名Router(config)#hostname wg_ro_cwg_ro_c(config)#開機(jī)時(shí)的固定顯示信息wg_ro_c(config)#banner
18、motd # Accounting Department You have entered a secured system. Authorized access only! #第16頁/共29頁配置路由器的各種標(biāo)識(shí)配置路由器的各種標(biāo)識(shí)路由器名Router(config)#hostname wg_ro_cwg_ro_c(config)#開機(jī)時(shí)的固定顯示信息wg_ro_c(config)#banner motd # Accounting Department You have entered a secured system. Authorized access only! #端口描述wg_ro
19、_c(config)#interface ethernet 0wg_ro_c(config-if)#description Engineering LAN, Bldg. 18第17頁/共29頁Router(config)#line console 0Router(config-line)#loginRouter(config-line)#password cisco控制臺(tái)密碼虛擬終端密碼Router(config)#line vty 0 4Router(config-line)#login Router(config-line)#password sanjose路由器密碼配置路由器密碼配置第1
20、8頁/共29頁Router(config)#line console 0Router(config-line)#loginRouter(config-line)#password cisco控制臺(tái)密碼虛擬終端密碼Router(config)#line vty 0 4Router(config-line)#login Router(config-line)#password sanjose特權(quán)模式明文密碼Router(config)#enable password cisco特權(quán)模式加密密碼Router(config)#enable secret sanfran路由器密碼配置路由器密碼配置第19
21、頁/共29頁其它控制臺(tái)命令其它控制臺(tái)命令Router(config)#line console 0Router(config-line)#exec-timeout 0 0 Router(config)#line console 0Router(config-line)#logging synchronous 禁止控制臺(tái)會(huì)話自動(dòng)退出禁止控制臺(tái)會(huì)話自動(dòng)退出 重顯被打亂的控制臺(tái)輸入重顯被打亂的控制臺(tái)輸入第20頁/共29頁Router(config)#interface type numberRouter(config-if)#端口配置端口配置 type 包括包括 serial, ethernet,
22、token ring, fddi, hssi, loopback, dialer, null, async, atm, bri, and tunnel number 用來識(shí)別具體的單個(gè)端口用來識(shí)別具體的單個(gè)端口Router(config-if)#exit 從當(dāng)前端口配置模式退出從當(dāng)前端口配置模式退出Router(config)#interface type slot/portRouter(config-if)# 模塊化端口的表示法模塊化端口的表示法第21頁/共29頁配置串口配置串口 進(jìn)入全局配置模式Router(config)#interface serial 0 Router(config-
23、if)#Router#configure termRouter(config)#指定某個(gè)端口第22頁/共29頁配置串口配置串口 進(jìn)入全局配置模式Router(config-if)#clock rate 64000Router(config-if)#Router(config)#interface serial 0 Router(config-if)#Router#configure termRouter(config)#指定某個(gè)端口設(shè)置時(shí)鐘頻率 (只在DCE端)第23頁/共29頁Router#show interface serial 0Serial0 is up, line protocol
24、 is up Hardware is HD64570 MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input 00:00:09, output 00:00:04, output hang never Last clearing of show interface counters never Input queue: 0/75/0 (size/max/drops); To
25、tal output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 pa
26、ckets/sec(output omitted) 確認(rèn)參數(shù)修改情況確認(rèn)參數(shù)修改情況第24頁/共29頁開啟或關(guān)閉端口開啟或關(guān)閉端口Router#configure termRouter(config)#interface serial 0 Router(config-if)#no shutdown%LINK-3-UPDOWN: Interface Seria0, changed state to up%LINEPROTO-5-UPDOWN: Line Protocol on Interface Serial0, changed state to up 開啟已經(jīng)關(guān)閉的端口Router#confi
27、gure termRouter(config)#interface serial 0 Router(config-if)#shutdown%LINK-5-CHANGED: Interface Serial0, changed state to administratively down %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to down 人工關(guān)閉端口第25頁/共29頁路由器的路由器的 show interfaces 命令命令Router#show interfacesEthernet0 i
28、s up, line protocol is up Hardware is Lance, address is 00e0.1e5d.ae2f (bia 00e0.1e5d.ae2f) MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, rely 255/255, load 1/255 Encapsulation ARPA, loopback not set, keepalive set (10 sec) ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:07, output 00:00:08, o
29、utput hang never Last clearing of show interface counters never Queueing strategy: fifo Output queue 0/40, 0 drops; input queue 0/75, 0 drops 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 81833 packets input, 27556491 bytes, 0 no buffer Received 42308 br
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(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ǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 多渠道物流分揀方案設(shè)計(jì)
- KOL推廣補(bǔ)償合同
- 苗木進(jìn)出口合同范本
- 重慶2024年10版小學(xué)五年級(jí)上冊(cè)英語第四單元測(cè)驗(yàn)卷
- 食品安全質(zhì)量創(chuàng)新工作總結(jié)
- 個(gè)別學(xué)生課外活動(dòng)參與方案
- 物流行業(yè)疫情防控方案及操作指南
- 應(yīng)用科技提升課堂效率的方案
- 社交媒體影響者簽約合同
- 學(xué)校消防安全演練方案及流程(3篇)
- 一年級(jí)上冊(cè)道德與法治課件-10吃飯有講究-人教(新版) (2)(共24張PPT)
- GB/T 16571-1996文物系統(tǒng)博物館安全防范工程設(shè)計(jì)規(guī)范
- GB/T 11618.1-2008銅管接頭第1部分:釬焊式管件
- 骨盆-教學(xué)講解課件
- 做好新形勢(shì)下群眾工作培訓(xùn)課件
- 賽課一等獎(jiǎng)《林黛玉進(jìn)賈府》課件3
- 《世間最美的墳?zāi)埂稰PT
- 中國(guó)古代儒家思想的發(fā)展演變教學(xué)設(shè)計(jì)
- 慢性阻塞性肺疾病(-COPD)的藥物治療及合理用藥課件
- 廣電全媒體運(yùn)營(yíng)知識(shí)考試題庫(含答案)
- 商業(yè)插畫設(shè)計(jì) 02課件
評(píng)論
0/150
提交評(píng)論