hi Rane
I make config for your test
yess..
primary setup on switch enable ip routing
whit this command
config)#ip routing
and assign ip address vlan 1
config-vlan1)#ip address 192.168.1.1/24
and you can create new vlan 2
config)#vlan 2
and assign ip address
config-vlan2)#ip address 192.168.2.1/24
after assign vlan 2 member port on switch (all port default member vlan 1)
for example interface 27
config-vlan2)#untagged 27
and write static routig command on switch for internet connection
0.0.0.0 0.0.0.0 192.168.1.10 (1.10 ip internet router lan ip )
and you can must be write on internet router static ip command
192.168.1.0 255.255.255.0 192.168.1.1
192.168.2.0 255.255.255.0 192.168.1.1
ok..... at the present time connect pc on switch
pc 1 vlan1 member pc
ip address 192.168.1.20
subnet mask 255.255.255.0
default gateway 192.168.1.1
pc 2 vlan 2 member pc
ip address 192.168.2.20
subnet mask 255.255.255.0
default gateway 192.168.2.1
good luck