Question: how to connect vlan in cisco packet tracer?
Answer: Create 2 VLANs on the switch: VLAN 10 and VLAN 20. ... 
Assign switch ports to the VLANs. ... 
4 . ... 
PC2: IP address 192.168.1.20 Subnet mask 255.255.255.0 Default gateway 192.168.1.1.