【正文】
ROM monitor模式 (人工啟動時用 b 命令 ) 自動從 ROM啟動 (提供完整 IOS的一個子集 ) Routerconfigure terminal Router(config)configregister 0x2102 [CtrlZ] Routerreload 29 169。 2022, Cisco Systems, Inc. All rights reserved. 3901_11_2022_c5 設(shè)定配置寄存器的值 配置寄存器的低 4位 (3, 2, 1和 0位 )是啟動選項位 Routerconfigure terminal Router(config)configregister 0x2102 [CtrlZ] Routerreload 27 169。 2022, Cisco Systems, Inc. All rights reserved. 3901_11_2022_c5 路由器啟動流程圖 Use IOS from Flash Attempt to get IOS from work Use IOS in ROM (RXBoot mode) Check startup config Boot field =0 0x0 Boot field =1 0x1 Boot system mands ? Config reg bit 13=1 ? 5 failures ? Valid IOS in Flash ? Do what they say Run ROM Monitor START Yes Yes No No Yes No No Yes Yes No No Yes Success ? No Yes Use file from Network Load IOS Valid config ? Config reg bit 6=1 ? Yes No Yes SETUP DIALOG NORMAL START UP COMPLETE No 25 169。 2022, Cisco Systems, Inc. All rights reserved. 3901_11_2022_c5 尋找 IOS映象文件 Flash show version show startupconfig IOS 搜索順序 : 1. 檢查配置寄存器 2. 解析 NVRAM中的配置文件 3. 缺省是使用 Flash中的第一個文件 4. 嘗試從網(wǎng)絡(luò)啟動 5. RXBOOT 6. ROMMON 控制臺 配置寄存器 NVRAM 23 169。 2022, Cisco Systems, Inc. All rights reserved. 3901_11_2022_c5 21 169。 ROM Bootstrap “Partial”IOS Mini IOS ROM monitor POST show version 控制臺 用于在初始化階段調(diào)出路由器 IOS,它讀取配置寄存器地址來查找、加載 IOS軟件 加電自檢代碼用于測試路由器硬件的基本功能,判斷有哪些組件 低級操作系統(tǒng),通常用于測試和排錯 IOS的子集,它是 IOS的備份軟件,用于軟件升級或者其他維護操作。在 Cisco 7000和7500系列路由器的 ROM包含全功能的 IOS軟件。 ?ROM包含初始化引導(dǎo)程序和一個小的可以用來恢復(fù)的小的監(jiān)控系統(tǒng)。 19 169。閃存的結(jié)構(gòu)允許你保存多個 Cisco IOS軟件的拷貝。 2022, Cisco Systems, Inc. All rights reserved. 3901_11_2022_c5 內(nèi)部資源 —— Flash Memory ? Flash Memory ? 閃存是一種特殊的可擦除的,可編程的只讀內(nèi)存。如果路由器掉電,配置文件不會丟失。 17 169。 2022, Cisco Systems, Inc. All rights reserved. 3901_11_2022_c5 內(nèi)部資源 —— RAM/DRAM ?RAM/DRAM ?RAM/DRAM (Random Access Memory / Dynamic Random Access Memory) 是路由器主要的存儲部件。 2022, Cisco Systems, Inc. All rights reserved. 3901_11_2022_c5 路由器加電 /啟動順序 ?加電自檢 (POST) ?加載并運行啟動引導(dǎo)微代碼 ?尋找 IOS映象文件 ?加載 IOS映象文件 ?尋找配置文件 ?加載配置文件 ?正常運行 15 169。 2022, Cisco Systems, Inc. All rights reserved. 3901_11_2022_c5 RouterAdisconnect Closing connection to [confirm] RouterAclear line 11 [confirm] [OK] 關(guān)閉一個 Tel會話 關(guān)閉由遠端設(shè)備建立的會話 關(guān)閉由自己建立的當(dāng)前會話 S0 S1 交換機 B 路由器 A 路由器 B 交換機 A 13 169。 2022, Cisco Systems, Inc. All rights reserved. 3901_11_2022_c5 查看 Tel連接 S0 S1 RouterAsh session Conn Host Address Byte Idle Conn Name 1 0 1 * 2 0 0 RouterAsh user Line User Host(s) Idle Location * 0 con 0 3 2 11 vty 0 idle 1 交換機 B 路由器 A 路由器 B 交換機 A 11 169。 2022, Cisco Systems, Inc. All rights reserved. 3901_11_2022_c5 其它 CDP命令 RouterAsh cdp traffic CDP counters : Packets output: 56, Input: 38 Hd