After configuring everything, I can only ping the hosts in the same vlan, along with the default gateway. Is there a mistake inside? I'm using NetSim 6 final beta.

Router1:
!
interface FastEthernet0/0
no ip address
no ip directed-broadcast
bandwidth 100000
!
interface FastEthernet0/0.1
encapsulation dot1q 2
ip address 192.168.10.1 255.255.255.0
!
interface FastEthernet0/0.2
encapsulation dot1q 3
ip address 192.168.20.1 255.255.255.0
!
interface FastEthernet0/0.3
encapsulation dot1q 4
ip address 192.168.30.1 255.255.255.0
!
Switch1:
!
interface FastEthernet0/1
switchport access vlan 2
!
interface FastEthernet0/2
switchport access vlan 2
!
interface FastEthernet0/3
switchport access vlan 3
!
interface FastEthernet0/4
switchport access vlan 3
!
interface FastEthernet0/5
switchport access vlan 4
!
interface FastEthernet0/6
switchport access vlan 4
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
switchport mode trunk
!
vtp domain bigdomain
!
interface Vlan 1
no ip address
no ip route-cache
!
interface Vlan0002
no ip address
no ip route-cache
!
vlan 2 name sales
vlan 3 name accountant
vlan 4 name tech
!
pc1: ip address is 192.168.10.2/24
pc2: ip address is 192.168.10.3/24
pc3: ip address is 192.168.20.2/24
pc4: ip address is 192.168.20.3/24
pc5: ip address is 192.168.30.2/24
pc6: ip address is 192.168.30.3/24