Hi Friend,
When you create a vlan on layer 2 switch you will not see in running config. It will be aded to the vlan.dat file so you need to worry when you create any new vlan.
Since its a layer 2 switch and you are simple creating vlan at layer 2 you will always retain the connectibity because you are not playing with an ip address.
Once your vlan is created it is saved in vlan.dat file and it will automatically be allowed on the trunk if you have not restricted.I am talking of trunk between your switch and your router.
Once done you can create sub-interface on router and assign it an ip adress fr vlan 10 subnet and then issue encapsulation command and finally say "wr mem".
You will be good to go from there. When any remote configuration is done it is always recommended to start from the last device and then come closer to your side and in your case the last device is switch and then router.
Best of Luck.
Regards,
Ankur
*Pls rate all helpfull post