Settings on Cisco routers and switches are initially only stored in volatile memory. To make them survive a reboot, save the running config.
write memory
or short:
wr mem
H@ppy H@cking