Skip to main content

How to fix a Cisco IP that has been stranded after a migration due to static IP settings

If you are reading this - I'm going to assume you are familiar with two things.

1. How the CAPWAP Process Works.  If not read: http://www.revolutionwifi.net/revolutionwifi/2010/11/capwap-controller-discovery-process_23.html

2. How bad of an idea it is to assign static IP addresses to APs on your Cisco WLC network. If not read: Just don't.

So I was brought onto a call.  There are migrations going on where the network consists of APs in a large spread out geography and was designed utilizing Flexconnect.  These APs are moving from one controller to another as well as a redesigned address space.

You'd think - Well, this won't be so bad with CAPWAP and DHCP.  You are right butttttt everyone forgot to run on the WLC config ap static-ip delete (ap name or all) or couldn't do this because they needed the AP to the last minute before the cut-over.  You could also accomplish this in the GUI.



What happens when a cut-over has been fully completed and the APs were never checked?  Do you know what happens when you assign a static IP to a CAPWAP AP?  It will NEVER find home on a new address space and DHCP of course, won't work.

You also can't migrate back because everything else has been switched over and that would just be the lazy and long way to do this.

So - how do you fix this?  It's easy to think that a mode button reset would fix this.  You are right, it would but what happens if this AP is in Buenos Aires and there is not a single technical person onsite or the AP is mounted 30ft on a ceiling only accessible via scissor left?

This situation really sucks now!

What do you do?

Here is a work-around that I thought up with the help from https://mrncciew.com/2013/05/04/wlc-discovery-via-broadcast/ MRN-CCIEW's blog (Which I highly recommend)

You should at least have the only static IP and if not, CDP Detail will tell you!

Now you have that IP/Mask.  

1. Create a VLAN with the range.
2. Switch the access port on the switch to where your AP is location to that new VLAN
3. ip helper-address x.x.x.x (Your WLC IP)
4. ip forward-protocol udp 5246

This will allow the AP with the static IP to figure out how to get to your controller.  Once CAPWAP completes, you'll have the ability to change the primary/secondary WLC addresses and then clear the static IP.  Realize you'll lose connectivity after clearing the static ip config!

Now change that switchport's VLAN back to the proper access VLAN with DHCP and you are now done and did not need physical access to the AP to do this.



Now you can rest assured you don't have to figure out how to catch a flight to Argentina.


Comments

Popular posts from this blog

Finding WLAN issues from the Windows Client Side

What happens when you've done everything from the wifi side of diagnosis a problem dare I say a ghost problem? What if the situation within your network seems perfect, you can't find anything in packet captures, Prime or off your WLC - What other options do you have?  Luckily, I found plenty! One of the handiest tools I like to use when onsite and starting to check clients out is the NETSH command in command line. Doing a roaming analysis via the client versus on Prime isn't a bad thing some days to give you a real world perspective of when roams happen.  Of course, client debugging in WLCs help too but I figured I'd show you what I do when walking around with a laptop to see the BSSID you are connected to. I use  netsh wlan show interface  Which outputs this:     Name                   : Wi-Fi     Description            : Marvell ...
Ekahau Sidekick Accessory Testing by the WifiSpy I decided to test two products to augment my Surface Pro 4 running Ekahau 10 that will help prevent accidents from happening with the cable and allow free and easy movement as you survey.  Safety should be #1 if you do work in any production/warehousing/manufacturing facilities. The items tested today were Griffin Breaksafe Magnetic Breakaway USB Adapter, Standard USB Type a  https://www.amazon.com/gp/product/B0759FKCK8/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1  priced at 19.99 at the time of the writing. The other was this coiled USB to Micro-USB cable.   https://www.amazon.com/gp/product/B071D8VB2T/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1   So first I will talk about the Griffin device.  Why would you want something like this?  If you've owned a MacBook in the past with the breakaway power cord, there isn't much more I can say ab...