I have 3 switches, 2 switches connected to 1 main switch. I have VLAN6, VLAN7, VLAN8 and VLAN9.

  • VLAN6 has VLAN6-1 end device.
  • VLAN7 has VLAN7-1 end device.
  • VLAN8 has VLAN8-1 and VLAN8-2 end devices.
  • VLAN9 has VLAN9-1 and VLAN9-2 end devices.

After some configurations,

  • VLAN8-1 and VLAN8-2 can communicate right now.
  • VLAN9-1 and VLAN9-2 can communicate right now.
  • VLAN6-1 and VLAN7-1 can't communicate any devices.

I need to communicate VLAN8 and VLAN9. So, VLAN8-1 and VLAN8-2 have to communicate with VLAN9-1 and VLAN9-2. I tried to change switch modes switch1 and switch2 to trunk mode(with VLAN1,VLAN8,VLAN9) but it didn't work. It's working only when I change switches mode to access mode.


3 Answers 3


All traffic between your VLANs must flow through the router. Ports connected to the PCs should be access ports. Configure the connections between your switches as trunks as well as the link to the router. Configure sub-interfaces on the router for each VLAN.

  • Thank you, I used encapsulation dot1q for handle.
    – Onurgule
    Commented May 8, 2020 at 3:20

All the vlan gateway should connect to router interface .use intervlan concept on router by creating sub -interfaces. By intervlan concept different vlan will communicate. And traffic will reach to router . If you can to restrict traffic between vlan as per your requirement, then use access-list in router ...


Ports conntected between switch and router should be trunk

Switch to switch port should be trunk as well

Switch to PC's should be access ports

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.