04 管理網(wǎng)絡環(huán)境-思科.ppt_第1頁
04 管理網(wǎng)絡環(huán)境-思科.ppt_第2頁
04 管理網(wǎng)絡環(huán)境-思科.ppt_第3頁
04 管理網(wǎng)絡環(huán)境-思科.ppt_第4頁
04 管理網(wǎng)絡環(huán)境-思科.ppt_第5頁
已閱讀5頁,還剩83頁未讀, 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

1、 2002, Cisco Systems, Inc. All rights reserved., 2002, Cisco Systems, Inc. All rights reserved.,2,路由器啟動及管理配置,目標,通過本章的學習,你將能做到以下內(nèi)容: 描述路由器的啟動順序并解釋如何判斷路由器是否正確啟動 識別Cisco路由器及交換機的內(nèi)部組件,路由器 加電/啟動 順序,加電自檢 (POST). 運行并加載 bootstrap 代碼. 發(fā)現(xiàn) Cisco IOS 軟件. 加載 Cisco IOS軟件. 發(fā)現(xiàn)配置信息. 加載配置信息. 運行已配置的 Cisco IOS 軟件.,路由器內(nèi)部組

2、件,ROM 功能,包含了微代碼用于基本操作,發(fā)現(xiàn)Cisco IOS 軟件,從Flash存儲器中加載 Cisco IOS 軟件,Falsh中存儲的文件被放到RAM中解壓縮,加載配置信息,從NVRAM里加載并執(zhí)行配置文件. 如果NVRAM里沒有配置文件, 進入到配置模式.,查看當前配置里的配置寄存器的值,wg_ro_a#show version Cisco Internetwork Operating System Software IOS (tm) 2500 Software (C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fc1) Copyri

3、ght (c) 1986-1999 by cisco Systems, Inc. Compiled Mon 08-Feb-99 18:18 by phanguye Image text-base: 0 x03050C84, data-base: 0 x00001000 ROM: System Bootstrap, Version 11.0(10c), SOFTWARE BOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1) wg_ro_a uptime is 20 mi

4、nutes System restarted by reload System image file is flash:c2500-js-l_120-3.bin -More- Configuration register is 0 x2102,通過show version命令查看配置寄存器的值,配置寄存器位 3, 2, 1, 和 0 設置啟動選項. 通過show version命令來檢查配置寄存器的值.,配置寄存器的值,show version 命令,Router#show version Cisco Internetwork Operating System Software IOS (tm

5、) C2600 Software (C2600-JS-M), Version 12.0(7a), RELEASE SOFTWARE (fc1) Copyright (c) 1986-2002 by cisco Systems, Inc. Compiled Tue 05-Feb-02 01:48 by pwade Image text-base: 0 x80008088, data-base: 0 x80B0404C ROM: System Bootstrap, Version 11.3(2)XA4, RELEASE SOFTWARE (fc1) Router uptime is 1 minut

6、e System restarted by reload System image file is flash:c2600-js-mz.120-7a.bin cisco 2610 (MPC860) processor (revision 0 x300) with 53248K/12288K bytes of memory. Processor board ID JAD06090BMD (2719249260) M860 processor: part number 0, mask 49 Bridging software. X.25 software, Version 3.0.0. Super

7、LAT software (copyright 1990 by Meridian Technology Corp). TN3270 Emulation software. Basic Rate ISDN software, Version 1.1. 1 Ethernet/IEEE 802.3 interface(s) 2 Serial(sync/async) network interface(s) 1 ISDN Basic Rate interface(s) 32K bytes of non-volatile configuration memory. 16384K bytes of pro

8、cessor board System flash (Read/Write) Configuration register is 0 x2102,show flash 命令,wg_ro_a#show flash System flash directory: File Length Name/status 1 10084696 c2500-js-l_120-3.bin 10084760 bytes used, 6692456 available, 16777216 total 16384K bytes of processor board System flash (Read ONLY),sh

9、ow running-config 和 show startup-config 命令,wg_ro_c#show startup-config Using 1359 out of 32762 bytes ! version 12.0 ! - More -,wg_ro_c#show running-config Building configuration.Current configuration:!version 12.0 ! - More -,In NVRAM,In RAM,顯示當前的和已保存的信息,總結(jié),當一個路由器啟動時, 首先自檢, 發(fā)現(xiàn)并加載軟件, 發(fā)現(xiàn)并加載軟件, 最后運行軟件.

10、路由器的主要內(nèi)部組件包括 RAM, ROM, flash 內(nèi)存, NVRAM, 和配置寄存器. 當路由器啟動時, 它首先按一定的順序?qū)ふ?IOS 軟件鏡像:取決于指定的配置寄存器值, flash memory, a TFTP 服務器, 和 ROM. 配置寄存器的值指定了從哪里啟動 Cisco IOS 軟件鏡像. 并且你可以通過 show 命令和 在全局配置模式下用config-register命令來更改配置寄存器的值.,管理網(wǎng)絡環(huán)境,本章目標,通過本章的學習,您應該掌握以下內(nèi)容: 獲取直接相鄰設備的信息 獲取遠程設備的信息 創(chuàng)建一個簡單的網(wǎng)絡框圖并驗證該網(wǎng)絡 清楚配置文件和IOS映象文件被加載

11、的位置,Part.1 CDP協(xié)議,CDP協(xié)議(Cisco Discovery Protocol),是一個提供關于直接相連的交換機、路由器和其它Cisco設備的綜合信息的專有工具 CDP 能夠發(fā)現(xiàn)直接相鄰的設備而不管這些設備所運行的是什么協(xié)議棧 必須支持Subnetwork Access Protocol (SNAP),上層地址,Cisco專有的鏈路層協(xié)議,介質(zhì)必須能夠支持 SNAP,TCP/IP,Novell IPX,CDP能 發(fā)現(xiàn)并顯示關于直接相連的Cisco設備的信息,ATM,Others,LANs,幀中繼,AppleTalk,Others,CDP運行在使用10.3或更新版Cisco IO

12、S的路由器以及Cisco 交換機和集線器上 能獲取的信息包括: 設備名 對應各協(xié)議的地址 端口名 角色特征 平臺,CDP,CDP,CDP,用CDP發(fā)現(xiàn)直接相鄰的設備,使用 CDP,交換機B,路由器A,路由器B,交換機A,,,,,,,S0,S1,RouterA#sh cdp ? entry Information for specific neighbor entry interface CDP interface status and configuration neighbors CDP neig

13、hbor entries traffic CDP statistics RouterA(config)#no cdp run RouterA(config)#interface serial0 RouterA(config-if)#no cdp enable,交換機A同時也顯示其Mac地址,使用show cdp neighbor 命令,RouterA#sh cdp neighbors Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge S - Switch, H - Host, I - IGMP, r

14、- Repeater Device ID Local Intrfce Holdtme Capability Platform Port ID RouterB Ser 0 148 R 2522 Ser 1 SwitchA0050BD855780 Eth 0 167 T S 1900 2,,,,,,,S0,S1,交換機B,路由器A,路由器B,交換機A,使用show cdp entry 命令,,,,,,,S0,

15、S1,交換機B,路由器A,路由器B,交換機A,RouterA#sh cdp entry * - Device ID: RouterB Entry address(es): IP address: Platform: cisco 2522, Capabilities: Router Interface: Serial0, Port ID (outgoing port): Serial1 Holdtime : 168 sec Version : Cisco Internetwork Operating System Software IOS (tm) 2500 Software

16、(C2500-JS-L), Version 12.0(3), RELEASE SOFTWARE (fci) Copyright (c) 1986-1999 by cisco Systems, Inc. Compiled Mon 08-Feb-99 18:18 by phanguye,其它CDP命令,RouterA#sh cdp traffic CDP counters : Packets output: 56, Input: 38 Hdr syntax: 0, Chksum error: 0, Encaps failed: 3 No memory: 0, Invalid packet: 0,

17、Fragmented: 0 RouterA#sh cdp interface BRI0 is administratively down, line protocol is down Encapsulation HDLC Sending CDP packets every 60 seconds Holdtime is 180 seconds,,,,,,,S0,S1,交換機B,路由器A,路由器B,交換機A,CDP一覽,(config)#no cdp run 全局配置模式下在整個路由器上禁用CDP (c

18、onfig)#cdp run (config-if)#no cdp enable 在某個接口上禁用CDP (config-if)#cdp enable #sh cdp nei detail #sh cdp entry * (config)#cdp timer nnnn秒 指定自己發(fā)送CDP信息的間隔時間 (config)#cdp holdtime nnnn秒 指定CDP條目的保留時間,Part.2 路由器的IP設置及檢驗,為路由器的接口設置IP地址,router routerenable router#config t router(config)#hostname r11 r11(confi

19、g)#int s 0 r11(config-if)#ip address r11(config-if)#no shutdown r11(config-if)#end r11#copy running-config startup-config,為路由器的接口設置IP地址,定義一個地址、掩碼對 Secondary表示增加一個IP地址,路由器的每個接口可根據(jù)需要配多個IP地址 一般而言,路由器的每個接口都要配置屬于不同子網(wǎng)的IP地址,所以,在接口配置模式設置路由器接口的IP地址,Router(config-if)#ip address ip-ad

20、dress subnet-mask secondary Router(config-if)#no ip address 刪除IP地址,檢查IP配置,檢驗地址的配置,使用ping 和trace 命令,測試對遠端設備的連接性和路徑,Router#ping 0 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 0, timeout is 2 seconds: ! Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/

21、4 ms Router#trace 0 Type escape sequence to abort. Tracing the route to 0 1 0 4 msec 4 msec 4 msec Router#,使用ping命令,簡單Ping,檢查IP網(wǎng)絡層是否正確工作,擴展 Ping,Ping supported for several protocols,Ping命令的輸出結(jié)果,! Ping操作成功,收到了icmp echo reply報文 . 未收到任何報文 U icmp不可到達目的主機 N icmp不可到達目的網(wǎng)絡 P icmp不可到達

22、目的端口 Q icmp源地址失蹤 M icmp禁止數(shù)據(jù)包分段 ? 收到無法識別的數(shù)據(jù)包,使用 trace 命令,What path are packets taking?,IP Trace,顯示了到達目的所經(jīng)過的每個接口地址,使用 telnet命令檢查應用層,Can the remote router be accessed?,用Telnet 連接到遠端設備,遠端設備,,,,,,,S0,S1,RouterA#telnet Trying . Open - Catal

23、yst 1900 Management Console Copyright (c) Cisco Systems, Inc. 1993-1998 All rights reserved. Enterprise Edition Software Ethernet Address: 00-90-86-73-33-40 PCA Number: 73-2239-06 PCA Serial Number: FAA02359H8K Model Number: WS-C1924-EN System Serial Number: FAA0237X0FQ . . SwitchB,交換機B,路由器A,路由器B,交換

24、機A,查看Telnet連接,,,,,,,S0,S1,RouterA#sh sessions Conn Host Address Byte Idle Conn Name 1 0 1 * 2 0 0 RouterA#sh users Line User Host(s) Idle Location * 0 con 0 3 2 11 vty 0 idle 1 10.

25、1.1.2,交換機B,路由器A,路由器B,交換機A,掛起一個Telnet會話,,,,,,,S0,S1,RouterB#x RouterA#sh session Conn Host Address Byte Idle Conn Name 1 0 1 RouterA#resume 1 RouterB#,交換機B,路由器A,路由器B,交換機A,RouterA#disconnect Closing connection to confi

26、rm RouterA#clear line 11 confirm OK,關閉一個Telnet會話,關閉由遠端設備建立的會話,關閉由自己建立的當前會話,,,,,,,S0,S1,交換機B,路由器A,路由器B,交換機A,Telnet 一覽,路由器的vty 0 4 必須經(jīng)過配置才允許最多5個遠程用戶同時登錄 發(fā)起一個會話:connect ip|hostname telnet ip|hostname ip hostname (路由器使用DNS或者本地主機表來解析主機名) 結(jié)束telnet 會話:exit |

27、logout #sh sessions 顯示當前自己主動發(fā)起的所有telnet會話 * 表示默認的telnet會話,可以敲回車鍵進去 #resume n 切換到第n個telnet會話 #disconnect 主動斷開自己到遠程主機的連接 #sh users 顯示當前連接到自己路由器的遠程用戶主機的IP地址 #clear line 主動清除遠程用戶到本路由器的連接 ctrl-shift-6 X 切換telnet會話,使用 show ip route 命令,Does an entry exist in the routing table?,Paris# show ip route Codes: I

28、 - IGRP derived, R - RIP derived, O - OSPF derived C - connected, S - static, E - EGP derived, B - BGP derived i - IS-IS derived, D - EIGRP derived * - candidate default route, IA - OSPF inter area route E1 - OSPF external type 1 route, E2 - OSPF external type 2 route L1 - IS-IS level-1 route, L2 -

29、IS-IS level-2 route EX - EIGRP external route Gateway of last resort is not set I 100/1300 via 0:00:22 Ethernet1 is subnetted (mask is ), 3 subnets I 100/180771 via , 0:01:29, Ethernet1 C is directly connected, Eth

30、ernet0 C is directly connected, Ethernet1 I 100/1200 via , 0:00:22, Ethernet1,Network Layer,Part.3 路由器的啟動,路由器內(nèi)部組件,Config register,路由器加電/啟動順序,加電自檢 (POST) 加載并運行啟動引導程序 尋找IOS映象文件 加載IOS映象文件 尋找配置文件 加載配置文件 正常運行,ROM 功能,ROM,Bootstrap,Mini IOS,ROMmonitor,POST,show version,

31、控制臺,POST在硬件上執(zhí)行自動檢測 Bottstrap引導路由器尋找IOS和配置文件 ROM monitor是一個用于低級測試和調(diào)試的程序(如破密碼),ROMMON模式的提示 符可能是或ROMMON Mini IOS 用于緊急啟動路由器的IOS分扯版本,稱為RXBOOT模式.提示符一般為Router(rxboot)#,Startup 順序,RAM,尋找IOS映象文件,Flash,show version,show startup-config,IOS,搜索順序: 1. 檢查配置寄存器 2. 解析NVRAM中的配置文件(查看bootsystem命令) 3. 缺省是使用Flash中的第一個文件

32、4. 嘗試從網(wǎng)絡啟動(如tftp服務器) 5. RXBOOT 6. ROMMON,控制臺,配置寄存器,NVRAM,尋找IOS映象文件(cont.),Configuration Registers in NVRAM Identifies where to boot Cisco IOS image,配置寄存器值(1),0 x 2,1,0 或 4,0,1 或 2,3, Boot field,引導字段是配置寄存器低4位的名稱,路由器根據(jù)引導字段和配置文件中的boot system命令來決定路由器應該進入的模式,并選擇從哪兒加載IOS軟件包。,配置寄存器值(2),確認當前的配置寄存器值,wg_ro_a#

33、show version Cisco 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 phanguye Image text-base: 0 x03050C84, data-base: 0 x00001000 ROM: System Bootstrap, V

34、ersion 11.0(10c), SOFTWARE BOOTFLASH: 3000 Bootstrap Software (IGS-BOOT-R), Version 11.0(10c), RELEASE SOFTWARE (fc1) wg_ro_a uptime is 20 minutes System restarted by reload System image file is flash:c2500-js-l_120-3.bin -More- Configuration register is 0 x2102,用命令show version所顯示的配置寄存器值,設定配置寄存器的值,配

35、置寄存器的3, 2, 1和0位是啟動選項位 上述命令直接把寄存器的值存入NVRAM中,不需要專門的存盤命令。,Router#configure terminal Router(config)#config-register 0 x2102 Ctrl-Z Router#reload,從Flash加載IOS映象文件,Flash,IOS,IOS,show flash,Flash中的映象文件解壓縮到RAM中,控制臺,RAM,使用 show flash 命令,wg_ro_a#sh flash System flash directory: File Length Name/status 1 100846

36、96 c2500-js-l_120-3.bin 10084760 bytes used, 6692456 available, 16777216 total 16384K bytes of processor board System flash (Read ONLY),加載配置文件,控制臺,IOS,Setup utility,show startup-config,show running-config,從NVRAM中加載并運行配置文件 如果NVRAM中沒有配置文件, 進入setup模式,Config,Config,RAM,NVRAM,使用 show running 和 show start

37、up 命令,wg_ro_c#show startup-config Using 1359 out of 32762 bytes ! version 12.0 ! - More -,wg_ro_c#show running-config Building configuration.Current configuration:!version 12.0 ! - More -,存在NVRAM中,存在RAM中,顯示當前運行的和保存的配置情況,配置參數(shù)的來源,Config,Config,RAM,NVRAM,NVRAM,copy running startup,copy startup running

38、(合并),配置參數(shù)的來源,Config,Config,RAM,NVRAM,NVRAM Terminal,copy running startup,copy startup running (合并),config term (合并),Config,Config,Console,RAM,NVRAM,NVRAM Terminal TFTP 服務器,copy running startup,copy startup running (合并),TFTP服務器,copy start tftp,copy tftp start,copy run tftp,copy tftp run (合并),config t

39、erm (合并),配置參數(shù)的來源,配置參數(shù)的來源,Config,Config,Console,RAM,NVRAM,NVRAM Terminal TFTP server 刪除啟動配置文件,copy running startup,copy startup running (合并),TFTP服務器,Blank 000000 000000,erasestart,config term (合并),copy tftp run (合并),copy tftp start,copy start tftp,copy run tftp,使用copy run tftp 和 copy tftp run 命令,wg_r

40、o_a#copy running-config tftp Address or name of remote host ? Destination filename running-config? wgroa.cfg .! 1684 bytes copied in 13.300 secs (129 bytes/sec) wg_ro_a#copy tftp running-config Address or name of remote host ? Source filename ? wgroa.cfg Destination filename runnin

41、g-config? Accessing t/wgroa.cfg. Loading wgroa.cfg from (via Ethernet0): ! OK - 1684/3072 bytes 1684 bytes copied in 17.692 secs (99 bytes/sec),Part.4 管理Cisco 文件系統(tǒng),Cisco文件系統(tǒng)與設備,RAM,NVRAM,TFTP服務器,Flash,flash:,system:,nvram:,tftp:,管理IOS映象文件,網(wǎng)絡 服務器,FLASH,路由器,網(wǎng)絡 服務器,映象文件備份的準備,確認可以訪

42、問到網(wǎng)絡服務,路由器,網(wǎng)絡 服務器,映象文件備份的準備,確認可以訪問到網(wǎng)絡服務 確認服務器上有足夠的空間,路由器,網(wǎng)絡 服務器,映象文件備份的準備,確認可以訪問到網(wǎng)絡服務 確認服務器上有足夠的空間 確認文件名,路由器,網(wǎng)絡 服務器,映象文件備份的準備,路由器,網(wǎng)絡 服務器,確認可以訪問到網(wǎng)絡服務 確認服務器上有足夠的空間 確認文件名 需要時在服務器上創(chuàng)建文件,wg_ro_a#show flash System flash directory: File Length Name/status 1 10084696 c2500-js-l_120-3.bin 10084760 bytes used,

43、 6692456 available, 16777216 total 16384K bytes of processor board System flash (Read ONLY),確認存貯空間并解析文件名,確認Flash中有足夠空間來存放IOS映象文件,作映象文件的備份,在升級IOS前備份當前的映象文件,網(wǎng)絡 服務器,FLASH,copy flash tftp,從網(wǎng)絡升級IOS,加載新的映象文件前對Flash作適當?shù)奈募h除 注意關于映象文件已經(jīng)存在的提示信息,網(wǎng)絡 服務器,FLASH,如何為路由器裝入IOS軟件,如果路由器的IOS軟件丟失或者被誤刪除,可以通過以下步驟來裝入IOS操作系統(tǒng)

44、軟件: 1)因系統(tǒng)flash中沒有IOS軟件,啟動路由器后一般會進入miniIOS(RxBoot)模式。如果沒有進入miniIOS(RxBoot)模式,則需要在啟動時按Break鍵進入監(jiān)控模式,修改寄存器的值為0 x2101,重起路由器使之進入miniIOS(RxBoot)模式。 2)在一臺PC機上存放IOS軟件并啟動tftp服務,或者在一臺正常的路由器上啟動tftp服務:tftp-server flash:IOS_file_name 3)#copy tftp flash 從tftp服務器復制IOS軟件到flash中。(注:如果IOS未被壓縮.bin而直接在flash中運行,則flash只讀;如果IOS以壓縮文件.mz存放在flash中,需要解壓縮到內(nèi)存中運行,則flash可讀寫。),可視化目標,core_ server ,wg_sw_a 0 ,wg_sw_l 20 ,wg_pc_a,wg_pc_l,

溫馨提示

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

評論

0/150

提交評論