Installing Autonomous IOS (aIOS) on a Lightweight AP from the CLI
This tip shows how to install an autonomous IOS image (i.e. the k9w7 feature set) on an access point running lightweight IOS.
Set up the TFTP Server
As the first step, set up a TFTP server as needed. Tftpd32 for Windows works well. Put the TFTP server somewhere on the network where the AP can reach it via IP. Put the desired aIOS (k9w7) image on the TFTP server. In this case, we will use ap3g1-k9w7-tar.124-25d.JA1, the aIOS image for the 1260 series AP.
Connect to the AP CLI (Exec)
Next, set up a terminal session to the AP's CLI (exec.) This can be done with an asynchronous serial connection to the AP console, from a terminal emulator program such as PuTTY. You may also use a TELNET/SSH session to the AP, if and only if it is running a lightweight IOS version of 12.4(21a)JA2 (18.104.22.168), 12.4(10b)JDE (22.214.171.124), or above. (See CSCsz95595).
Enter the IOS commands
If the AP is running a pre-CAPWAP image - i.e. one prior to 12.4(18a)JA (5.2) - then first enter the following hidden command.
ap#debug lwapp console cli
If the AP is running a CAPWAP image - i.e. 12.4(18a)JA (5.2) or above - enter this hidden command:
ap#debug capwap console cli
The above command is necessary in order to permit you to enter the archive command.
If the AP is now joined to a WLC, then proceed to the Archive Command step below. If not, then the AP is going to cycle through DHCP release/renewal, and will possibly reboot, defeating your efforts to load in the autonomous IOS, unless you take the following steps:
ap#debug capwap client no-reload
(this hidden command prevents the AP from reloading when it can't join a controller)
And create a DHCP scope with a fixed lease for the AP - you can do this on an IOS DHCP server with:
ip dhcp pool APNAME
host 10.2.3.4 /24
client-id 01<LAN MAC>
(or just create a scope with a single address ... otherwise, the AP will release its DHCP address and renew with a new address, breaking the TFTP operation.)
In either case, now enter the archive download-sw command to copy the aIOS image from the TFTP server, and install it onto AP flash, overwriting the currently installed image as needed:
Deleting current version: flash:/ap3g1-k9w8-mx.124-23c.JA2...done. New software image installed in flash:/ap3g1-k9w7-mx.124-25d.JA1 Configuring system to use new image...done. archive download: takes 129 seconds
Reload the AP running IOS
Now validate that the AP is configured to boot the aIOS image, and reload:
AP1260#more flash:/env_vars | include BOOT BOOT=flash:/ap3g1-k9w7-mx.124-25d.JA1/ap3g1-k9w7-mx.124-25d.JA1 AP1260i#reload Proceed with reload? [confirm] Writing out the event log to nvram... y *Sep 1 00:41:58.714: %SYS-5-RELOAD: Reload requested by Cisco on console. Reload Reason: Reload command. [ ... ]