简介
本文显示如何执行在ISR (集成业务路由器)的访问接入节点镜像恢复与嵌入式AP802。 描述的方法此处取决于在事实AP802闪存分区从主机路由器是直接可访问的。 此技术不可能从路由器使用与嵌入式AP801;在这样平台上,您将需要执行从AP801控制台(启动装载程序的AP (接入点)镜像恢复。) (如何告诉是否有AP801或AP802)。
示例路由器CLI日志
下面给的示例在运行IOS (互联网网络操作系统) 15.2(4)M5的819HWD进行了。
路由器闪存内容
819HWD#dir all-filesystems
[ ... ]
Directory of flash:1:/
2 -rw- 100041 Aug 1 2014 19:37:46 +00:00 event.log
25 -rw- 215 Sep 15 2014 17:17:38 +00:00 env_vars
4 -rw- 125729 Aug 1 2014 12:29:16 +00:00 event.capwap
5 -rw- 281 Jun 9 2014 23:28:12 +00:00 info
6 -rw- 8216 Sep 15 2014 17:17:50 +00:00 private-multiple-fs
7 drw- 0 Dec 26 2013 19:52:46 +00:00 ap802-rcvk9w8-mx
17 -rw- 3072 Dec 26 2013 20:02:30 +00:00 cpconfig-ap802.cfg
3 -rw- 0 Sep 15 2014 17:18:02 +00:00 config.txt
18 -rw- 5 Jun 25 2014 21:06:00 +00:00 private-config
19 -rw- 64 Jun 24 2014 23:12:10 +00:00 sensord_CSPRNG1
20 -rw- 64 Jun 24 2014 23:21:44 +00:00 sensord_CSPRNG0
21 drw- 0 Jul 31 2014 18:29:32 +00:00 configs
重新排版AP闪存
flash:1 :文件系统是AP802使用的分区。 在我们的测验中,我们将格式化此文件系统消除它干净,然后重新启动AP802造成它启动到AP启动装载程序。(注意:请勿重新排版AP闪烁,除非必要-这用于说明目的执行此处。)
819HWD#format flash:1:/? ?
Format operation may take a while. Continue? [confirm]y
Format operation will destroy all data in "flash:1:". Continue? [confirm]y
Format: All system sectors written. OK...
Format: Total sectors in formatted partition: 80801
Format: Total bytes in formatted partition: 41370112
Format: Operation completed successfully.
Format of flash:1: complete
819HWD#service-module wlan-ap 0 r?eset
Use reset only to recover from shutdown or failed state
AP config will not be saved
Do you want to reset?[confirm]y
Trying to reload Service Module wlan-ap0.
Pause - wait for open files to finish...
819HWD#
*Sep 15 17:28:30.232: %SECONDCORE-5-BOOTSTAGE: ROMMON on 2nd core UP
*Sep 15 17:28:30.248: %SECONDCORE-5-BOOTSTAGE: AP-BOOTLOADER on 2nd core UP
对AP802的连接
对验证AP802的控制台的连接其闪存当前是空的。
819HWD#???????????????????service-module wlan-ap 0 session
Trying 192.168.148.8, 2002 ... Open
Connecting to AP console, enter Ctrl-^ followed by x,
then "disconnect" to return to router prompt
ap: dir flash:
Directory of flash:/
41168896 bytes available (139264 bytes used)
ap:
Ctrl-^x
819HWD#disco
Closing connection to 192.168.148.8 [confirm]y
复制在路由器闪存上的AP IOS
复制从一个TFTP (简单文件传输协议)服务器的希望的AP IOS tarball在路由器的主闪存分区上。 在这种情况下,我们使用是自治IOS 15.2(4)JB5的ap802-k9w7-tar.152-4.JB5.tar。 (请参阅条款了解接入点IOS镜像。)
819HWD#copy tftp flash:
Address or name of remote host [192.168.148.1]?
Source filename [/192.168.148.1/ap802-k9w7-tar.152-4.JB5.tar]? ap802-k9w7-tar.152-4.JB5.tar
Destination filename [ap802-k9w7-tar.152-4.JB5.tar]?
Accessing tftp://192.168.148.1/ap802-k9w7-tar.152-4.JB5.tar...
Loading ap802-k9w7-tar.152-4.JB5.tar from 192.168.148.1 (via GigabitEthernet0): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 13834240 bytes]
13834240 bytes copied in 46.368 secs (298357 bytes/sec)
解压缩AP IOS
解开在AP闪存(flash:1上的tarball :)使用存档tar /xtract命令。
819HWD#archive tar /xtract ap802-k9w7-tar.152-4.JB5.tar flash:1:
extracting info (282 bytes)
ap802-k9w7-mx.152-4.JB5/ (directory)
ap802-k9w7-mx.152-4.JB5/html/ (directory)
[ ... ]
extracting info.ver (282 bytes)
819HWD#dir flash:1:
Directory of flash:1:/
4 -rw- 282 Sep 15 2014 17:31:40 +00:00 info
5 drw- 0 Sep 15 2014 17:31:42 +00:00 ap802-k9w7-mx.152-4.JB5
199 -rw- 282 Sep 15 2014 17:33:38 +00:00 info.ver
41308160 bytes total (26963968 bytes free)
配置AP启动新建的IOS镜像
控制对AP802启动装载程序,并且配置它启动IOS镜像。 注意AP的IOS镜像通常呼叫flash: /platform featureset mx.version/platform featureset MX版本。 然后引导程序AP IOS。
819HWD#service-module wlan-ap 0 session
Trying 192.168.148.8, 2002 ... Open
ap: dir flash:
Directory of flash:/
4 -rw- 282 <date> info
5 drw- 0 <date> ap802-k9w7-mx.152-4.JB5
199 -rw- 282 <date> info.ver
26963968 bytes available (14344192 bytes used)
ap: set BOOT flash:/ap802-k9w7-mx.152-4.JB5/ap802-k9w7-mx.152-4.JB5
ap: reset
Are you sure you want to reset the system (y/n)?y
System resetting...
*Sep 15 17:35:12.758: %SECONDCORE-5-BOOTSTAGE: AP-IOS on 2nd core SAFE FOR RESET
IOS Bootloader - Starting system.
[ ... ]
*Sep 15 17:35:25.329: %SECONDCORE-5-BOOTSTAGE: ROMMON on 2nd core UP
*Sep 15 17:35:25.345: %SECONDCORE-5-BOOTSTAGE: AP-BOOTLOADER on 2nd core UPLoading "flash:/ap802-k9w7-mx.152-4.JB5/ap802-k9w7-mx.152-4.JB5"...###############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
File "flash:/ap802-k9w7-mx.152-4.JB5/ap802-k9w7-mx.152-4.JB5" uncompressed and installed, entry point: 0x18003000
[ ... ]
Cisco IOS Software, AP802 Software (AP802-K9W7-M), Version 15.2(4)JB5, RELEASE SOFTWARE (fc1)
[ ... ]
*Sep 15 17:37:29.371: %SECONDCORE-5-BOOTSTAGE: AP-IOS on 2nd core UP
*Sep 15 17:37:37.435: %WLAN_AP_SM-6-UNIFIED_IMAGE: Embedded AP will change boot image to mini-IOS also called LWAPP recovery
Please check router config to ensure connectivity between WLC and AP
Use service-module wlan-ap 0 reload to boot up mini-IOS image on AP
Save the autonomous configuration file with a file name other than
flash:[config.txt] as it will be erased upon AP reload
?
Press RETURN to get started!
ap>
Ctrl-^x819HWD#disco
Closing connection to 192.168.148.8 [confirm]y
819HWD#
整理路由器闪存并且为自治配置
现在请删除从路由器闪存的tarball,不再必要。 并且请寻址"WLAN_AP_SM-6-UNIFIED_IMAGE"消息,表明路由器认为AP应该运行轻量IOS,因此我们需要使用服务模块WLAN n bootimage命令告诉路由器AP是运行自治(或轻量)。
819HWD#del flash:/ap802-k9w7-tar.152-4.JB5.tar
Delete filename [ap802-k9w7-tar.152-4.JB5.tar]?
Delete flash:/ap802-k9w7-tar.152-4.JB5.tar? [confirm]
819HWD#conf t
Enter configuration commands, one per line. End with CNTL/Z.
819HWD(config)#service-module wlan-ap 0 bootimage autonomous
819HWD(config)#end
819HWD#wri
Building configuration...[OK]
如何分辨ISR是否有AP801或AP802
问:如何分辨ISR是否有AP801或AP802 ?
A1. 执行在AP的show version。
A2. http://www.cisco.com/c/en/us/products/routers/800-series-routers/brochure-listing.html > Cisco 800系列ISR比较图表