1) To create VLANs use the VLAN database mode.
Router1#vlan database
Router1(vlan)#vlan 10
VLAN 10 added:
Name: VLAN0010
Router1(vlan)#vlan 50
VLAN 50 added:
Name: VLAN0050
Router1(vlan)#exit
APPLY completed.
Exiting....
Router1#
2) To map an interface to a VLAN,
Router1(config)#interface fastEthernet 1/2
Router1(config-if)#switchport mode access
Router1(config-if)#switchport access vlan 10
Router1(config-if)#exit
3) Add a static route pointing to the default gateway (or the interface towards the gateway - Gig 1/0/2).