If your router memory is full, enter this command in privileged mode:
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
This will compress the config (by two-thirds its original size) into nvram, giving you room to enter more config without installing more RAM.