
This can be accomplished either if the switch is Layer 3 (using Layer3 InterVLAN Routing) or if there is a router in place. Thus, if we want to provide network connectivity between the two VLANs we need to have a Layer 3 engine somewhere in the network. The first host belongs to Network 10.10.10.0/24 (VLAN10) and the second one to 20.20.20.0/24 (VLAN20).īy default, if the switch is just a normal Layer 2 switch the two hosts can not communicate between them because they belong to different VLANs and there is no routing. The two ports of the switch with the hosts connected to them (FE1/0/2 and FE1/0/3) must be access ports. Lets see the diagram below to get us started:Ī Cisco Layer 2 switch carries two VLANs (VLAN 10 – RED and VLAN 20 – GREEN) with two hosts connected to them as shown on the diagram above. This configuration is usually asked as a question in CCNA exams, so I hope it will be helpful for people preparing for certification.

In this post I will explain how to provide routing between two VLANs on a simple Layer 2 switch using a Cisco router with just one interface.
