First and foremost enable IP routing on the devices:
config t
ip routing
Then setup your routing, I'm not sure what you use (OSPF, EIGRP) but it will look something like this:
config t
router eigrp 100 OR
router ospf 100
network 192.168.0.0 255.255.255.0
A Vlan will be setup like this: I'll use example network IP addresses.
config t
interface vlan 10
ip address 192.168.10.1
ip helper-address x.x.x.x - this is the address of your DHCP server, the vlan needs to know this to send it DHCP requests.
Then assign switch ports to the vlans
config t
interface ...
switchport mode access
switchport access vlan #