Hope this helps:
config t
ip routing
vlan 1
ip address 192.168.1.1 255.255.255.0
untagged 1-6
exit
vlan 2
ip address 192.168.2.1 255.255.255.0
untagged 7-12
exit
ip route 0.0.0.0 0.0.0.0 192.168.1.254
You can rinse and repeat for any additional VLANs. I might also suggest that you setup a seperate vlan for your outbound traffic and change the default route (0.0.0.0) as appropriate. The untagged command for each vlan is for the ports you want to hang those devices off of. If you need a link to another switch to extend the reach, you will need to setup a ports as 'tagged" to get those vlans and IP to another switch. On the other switch, you would only need to setup the vlan and the tagged/untagged ports, not the IP's.