I am posting this on stack exchange as I was unable to find an answer on the 'net:
Where the new subnet is:
A.B.C.0
(gateway=A.B.C.1
, host ip=A.B.C.2
)
and the old subnet is:
P.Q.R.0
(gateway=P.Q.R.1
, host ip=P.Q.R.2
).
1. Save the existing configuration:
copy running-config startup-config
2. Set a reload timeout (for 10 minutes) - in case you do lock yourself out.
reload in 10
3. Add a same-priority default route alongside the existing one:
ip route 0.0.0.0 0.0.0.0 A.B.C.1 1
4. Now the moment of truth, change the outside address:
interface vlan2
ip address A.B.C.2 255.255.255.252
at this point, your connection should drop, and you should reconnect to the new address... if not, wait for the reload, and try again :-)
5. Clear up the old configuration
no ip route 0.0.0.0 0.0.0.0 P.Q.R.1
reload cancel
6. Save the new configuration
copy running-config startup-config