1、建TFTP服务器,连接CONSOLE,登陆超级终端

2、用网线连接AP的RJ45口(AP是以太网供电的,所以需要一个PoE模块供电),设置本地电脑网卡IP为10.0.0.2  255.0.0.0 (这个是默认的掩码,可以进入AP:控制台下自己改)

3、准备你想要转换的AP设备的IOS,如 我转换的是LAP1130   

注:如何识别胖瘦AP:

    方法一:show version就可以出来AP系统版本信息,你要关注有如“c1130-k9w7、”的信息,看到系统的版本有”w7”,证明是胖AP.名称有”***w8”一定是瘦Ap(看镜像名也可)。

    方法二:用console线连接到AP上,启动后,能进入config terminal模式的就是胖AP,不能进去(也就是不可配置)的就是瘦AP。

     如c1130-k9w7-tar.124-10b.JDA3.tar 是胖AP,c1130-rcvk9w8-tar.124-21a.JA2.tar是瘦AP。

4、重命名该文件名为c1130-k9w7-tar.default

5、给AP断电,然后按住MODE 按钮不放

6、加电后看到超级终端提示button is pressed, wait for button to be released..

7、松开mode键,会进入自动搜索过程


button pressed for 26 seconds

process_config_recovery: set IP address and config to default 10.0.0.1

process_config_recovery: p_w_picpath recovery

p_w_picpath_recovery: Download default IOS tar p_w_picpath tftp://255.255.255.255/c1130-k9w7-tar.default

examining p_w_picpath...

extracting info (275 bytes)

Image info:

Version Suffix: k9w7-.124-10b.JA3

Image Name: c1130-k9w7-mx.124-10b.JA3

Version Directory: c1130-k9w7-mx.124-10b.JA3

这是搜索成功的提示,后面自动解压缩镜像并安装

8、检查一下flash,文件是否复制好;


   ap: dir flash:

9、输入boot启动AP:

   ap:boot


若在升级过程中在examining p_w_picpath...这一步之后总是提示permission  denied  一直无法解决,,不妨换台电脑试试,个人推测可能是和操作系统有关。


若是IOS已被删除请参考下面的方法(转载)


    公司有几台AIR1242的胖AP,被人升级成瘦AP在用。今天却急需一个胖AP作测试用,一时找不到,只能想办法把其中一台回退到胖AP。网上都是从胖AP升级到瘦AP的资料,问过CISCO,肯定能回退到胖AP,具体方法自己摸索,费了不少功夫,总算回退成功。

    在AP开机时,按住MODE键,一直到状态灯闪琥珀色,系统会有下面的提示:


C1240 Boot Loader (C1240-BOOT-M) Version 12.4(13d)JA, RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Compiled Fri 08-Feb-08 17:28 by prod_rel_team


ap: Xmodem file system is available.

flashfs[0]: 0 files, 1 directories

flashfs[0]: 0 orphaned files, 0 orphaned directories

flashfs[0]: Total bytes: 15998976

flashfs[0]: Bytes used: 1024

flashfs[0]: Bytes available: 15997952

flashfs[0]: flashfs fsck took 22 seconds.

Base ethernet MAC Address: 00:1d:70:95:f6:12

Initializing ethernet port 0...

Reset ethernet port 0...

Reset done!

ethernet link up, 100 mbps, full-duplex

Ethernet port 0 initialized: link is up

Unable to get our ip address: no "IP_ADDR" variable set


The system has been encountered and error initializing

tftp file system. The system is ignoring the error and

continuing boot. If you interrupt the system boot process,

the following commands will set IP_ADDR, DEFAULT_ROUTER

and NETMASK environment variables, initializing tftp file

system, and finish loading the operating system software:


    set IP_ADDR

    set DEFAULT_ROUTER

    set NETMASK

    tftp_init

    boot


button is pressed, wait for button to be released...

最后一行的文字,告诉我们松开MODE键就会进入类似init界面


button pressed for 19 seconds

process_config_recovery: set IP address and config to default 10.0.0.1


The system is unable to boot automatically because there

are no bootable files to boot.

AP把自己的以太网接口的IP地址设置成10.0.0.1,因为我在上次启动好后,把FLASH格式化了,所以会提示无法自动启动。


C1240 Boot Loader (C1240-BOOT-M) Version 12.4(13d)JA, RELEASE SOFTWARE (fc2)

Technical Support: http://www.cisco.com/techsupport

Compiled Fri 08-Feb-08 17:28 by prod_rel_team


ap: set IP_ADDR 10.0.0.1

ap: set NETMASK 255.0.0.0

ap: tftp_init

tftp_init success: You can now use tftp file system!

如上所示,我们也可以手工更改AP的地址和掩码,并初始化TFTP进程。敲“?”可以看到能够执行的命令行:


ap: ?

           ? -- Present list of available commands

         arp -- Show arp table or arp-resolve an address

        boot -- Load and boot an executable p_w_picpath

         cat -- Concatenate (type) file(s)

 clear_ether -- clear ethernet port statistics

        copy -- Copy a file

      delete -- Delete file(s)

         dir -- List files in directories

dump_save_regs -- dump saved regs in OCM

       etest -- test emac driver code

  ether_init -- initialize ethernet port

  flash_init -- Initialize flash filesystem(s)

      format -- Format a filesystem

        fsck -- Check filesystem consistency

        help -- Present list of available commands

    init_pci -- initialize pci bridge

    led_test -- cycle led patterns

      memory -- Present memory heap utilization information

       mkdir -- Create dir(s)

        more -- Concatenate (display) file(s)

      rename -- Rename a file

       reset -- Reset the system


      reset_gpio -- reset gpio

       rmdir -- Delete empty dir(s)

         set -- Set or display environment variables

    set_baud -- set baud rates

    set_gpio -- set gpio

   set_sleep -- Pause (sleep) for a specified number of seconds

  show_ether -- show ethernet port statistics

    show_pci -- show pci setting

switch status -- report push button switch status

         tar -- extract or listing a tar file

    test ram -- read at address

   tftp_init -- Initialize tftp file system

        type -- Concatenate (type) file(s)

       unset -- Unset one or more environment variables

     version -- Display boot loader version


准备好一个AP的IOS镜像文件c1240-k9w7-tar.124-10b.JA3.tar,设置好电脑网卡的IP地址,并启动好TFTP服务器程序。下面是tar命令的参数,

ap: tar ?

usage: tar <-table | -xtract> <tar file> <destination>


 


用tar -xtract tftp的命令格式:

ap: tar -xtract tftp://10.0.0.2/c1240-k9w7-tar.124-10b.JA3.tar flash:


extracting info (275 bytes)

c1240-k9w7-mx.124-10b.JA3/ (directory) 0 (bytes)

c1240-k9w7-mx.124-10b.JA3/html/ (directory) 0 (bytes)

c1240-k9w7-mx.124-10b.JA3/html/level/ (directory) 0 (bytes)

c1240-k9w7-mx.124-10b.JA3/html/level/1/ (directory) 0 (bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/appsui.js (557 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/back.shtml (498 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/cookies.js (5026 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/forms.js (17542 bytes)...

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/sitewide.js (16510 bytes)...

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/config.js (23370 bytes).....

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/stylesheet.css (3214 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/popup_capabilitycodes.shtml.gz (1016 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/filter.js.gz (1802 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/filter_vlan.js.gz (1459 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/filter_mac_ether.js.gz (1710 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/security.js.gz (957 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/vlan.js.gz (955 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/ssid.js.gz (4107 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/dot1x.js.gz (982 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/network-if.js.gz (1967 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/stp.js.gz (952 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/ap_assoc.shtml.gz (6121 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/ap_event-log.shtml.gz (4398 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/ap_home.shtml.gz (6384 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/ap_network-if.shtml.gz (4064 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/ap_network-map.shtml.gz (4357bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/ap_services.shtml.gz (4181 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/ap_system-sw.shtml.gz (3382 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/ap_contextmgr.shtml.gz (4187 bytes).

c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/ (directory) 0 (bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/ap_title_appname.gif (2115 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_button.gif (1211 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_button_1st.gif (1171 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_button_cbottom.gif (318 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_button_current.gif (1206 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_button_endcap.gif(878 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_button_encap_last.gif (333 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_button_last.gif (386 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_button_nth.gif (1177 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_leftnav_dkgreen.gif (869 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_leftnav_green.gif(879 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_leftnav_upright.gif (64 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/apps_leftnav_yellow.gif (881 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/arrowdown_red.gif (108bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/arrowup_green.gif (108bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/corner_ur_7.gif (53 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/dkgreenmask11_up.gif (113 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/dkgreenmask28_upright.gif (110 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/grn_vertlines_bottom.gif (149 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/grn_vertlines_top.gif (141 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/hinav_plus.gif (56 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/left_bkg.gif (146 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/list_data.gif (122 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/logo.gif (29454 bytes).....

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/pixel.gif (49 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/sitewide_downleft.gif (53 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/sitewide_help_off.gif (934 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/sitewide_help_on.gif (934 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/sitewide_print_off.gif(111 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/sitewide_print_on.gif (111 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/spacer.gif (49 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/whitemask11_botleft.gif (62 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/whitemask11_upright.gif (61 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/event_alert.gif (73 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/event_critical.gif (73bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/event_debugging.gif (73 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/event_emergency.gif (73 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/event_error.gif (73 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/event_information.gif (73 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/event_notification.gif(73 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/event_warning.gif (73 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/1/p_w_picpaths/check_mark.gif (71 bytes)

c1240-k9w7-mx.124-10b.JA3/html/level/15/ (directory) 0 (bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_assoc_adv.shtml.gz (4549 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_event-log_config-options.shtml.gz (6199 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_event-log_notif-options.shtml.gz (3186 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_express-setup.shtml.gz (11413 bytes)..

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_express-security.shtml.gz(13959 bytes)...

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/def_broadcast-ssid.shtml.gz (1259 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/def_no-security.shtml.gz (1578 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/def_eap-security.shtml.gz (1787 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/def_wep-security.shtml.gz (1593 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/def_wpa-security.shtml.gz (1849 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_network-if_ipaddress.shtml.gz (5075 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_network-if_802-11.shtml.gz (6688 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_network-if_802-11_b.shtml.gz (6827 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_network-if_802-11_c.shtml.gz (24103 bytes).....

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/dBm_mW_translation_table.shtml.gz (1402 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_network-if_802-11_d.shtml.gz (4569 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_system-sw_upgrade-b.shtml.gz (6713 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_system-sw_upgrade.htm (223 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_system-sw_upgrade.shtml.gz (6746 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_system-sw_upgrade_poll.htm (228 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_system-sw_upgrade_poll.shtml (3590 bytes)

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_system-sw_sysconfig.shtml.gz (7150 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_stationview-client.shtml.gz (6068 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_contextmgr_ap.shtml.gz (5298 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_contextmgr_scm.shtml.gz (5793 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_contextmgr_scm-groups.shtml.gz (8002 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/html/level/15/ap_contextmgr_scm_summary.shtml.gz (5559 bytes).

extracting c1240-k9w7-mx.124-10b.JA3/c1240-k9w7-mx.124-10b.JA3 (4546916 bytes)..

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

................................................................................

........................

extracting c1240-k9w7-mx.124-10b.JA3/7101.img (131328 bytes)....................

........

extracting c1240-k9w7-mx.124-10b.JA3/6701.img (131328 bytes)....................

........

extracting c1240-k9w7-mx.124-10b.JA3/info (275 bytes)

extracting info.ver (275 bytes)

ap:


检查一下flash,文件是否复制好;

ap: dir flash:

Directory of flash:/


2    -rwx  59        <date>               env_vars

3    -rwx  275       <date>               info

4    drwx  320       <date>               c1240-k9w7-mx.124-10b.JA3

154  -rwx  275       <date>               info.ver


10506240 bytes available (5492736 bytes used)


输入boot启动AP:

ap:boot

################################################################################

################################################################################

##########################################################


File "flash:/c1240-k9w7-mx.124-10b.JA3/c1240-k9w7-mx.124-10b.JA3" uncompressed a

nd installed, entry point: 0x3000

executing...


              Restricted Rights Legend


Use, duplication, or disclosure by the Government is

subject to restrictions as set forth in subparagraph

(c) of the Commercial Computer Software - Restricted

Rights clause at FAR sec. 52.227-19 and subparagraph

(c) (1) (ii) of the Rights in Technical Data and Computer

Software clause at DFARS sec. 252.227-7013.


           cisco Systems, Inc.

           170 West Tasman Drive

           San Jose, California 95134-1706



           cisco Systems, Inc.

           170 West Tasman Drive

           San Jose, California 95134-1706


 


Cisco IOS Software, C1240 Software (C1240-K9W7-M), Version 12.4(10b)JA3, RELEASE

 SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2008 by Cisco Systems, Inc.

Compiled Wed 19-Mar-08 18:25 by prod_rel_team

Image text-base: 0x00003000, data-base: 0x0085EC40


Initializing flashfs...


flashfs[1]: 147 files, 7 directories

flashfs[1]: 0 orphaned files, 0 orphaned directories

flashfs[1]: Total bytes: 15998976

flashfs[1]: Bytes used: 5492736

flashfs[1]: Bytes available: 10506240

flashfs[1]: flashfs fsck took 4 seconds.

flashfs[1]: Initialization complete....done Initializing flashfs.

Radio 1 A506 7100 E8000000 A0000000 80000000 3

tx_paks 991

tx_paks 495


This product contains cryptographic features and is subject to United

States and local country laws governing import, export, transfer and

use. Delivery of Cisco cryptographic products does not imply

third-party authority to import, export, distribute or use encryption.

Importers, exporters, distributors and users are responsible for

compliance with U.S. and local country laws. By using this product you

agree to comply with applicable laws and regulations. If you are unable

to comply with U.S. and local laws, return this product immediately.


A summary of U.S. laws governing Cisco cryptographic products may be found at:

http://www.cisco.com/wwl/export/crypto/tool/stqrg.html


If you require further assistance please contact us by sending email to

export@cisco.com.


cisco AIR-LAP1242AG-C-K9   (PowerPCElvis) processor (revision A0) with 24566K/81

92K bytes of memory.

Processor board ID FCW1231U04U

PowerPCElvis CPU at 262Mhz, revision number 0x0950

Last reset from power-on

1 FastEthernet interface

2 802.11 Radio(s)


32K bytes of flash-simulated non-volatile configuration memory.

Base ethernet MAC Address: 00:1D:70:95:F6:12

Part Number                          : 73-10256-07

PCA Assembly Number                  : 800-26918-06

PCA Revision Number                  : A0

PCB Serial Number                    : FOC123103N5

Top Assembly Part Number             : 800-29152-03

Top Assembly Serial Number           : FCW1231U04U

Top Revision Number                  : A0

Product/Model Number                 : AIR-LAP1242AG-C-K9


Press RETURN to get started!

至此,AP成功引导成为一个胖AP。