
It virtually accommodates three different paths in a link each path dedicated to a specific VLAN. See the link between the switch and the router. All the lines shown here are the trunk ports. The different VLANs aggregates in a switch, those VLANS are further connected to an interface of the router. Please note the colors used in the diagram each color represents a specific VLAN. The above image illustrates the fundamental of the router on a stick. For more information about the frame tagging, refer to the blogs given in the links above. There are two possible methods of encapsulation in Ethernet, the ISL and IEEE 802.1q. We also have to specify the encapsulation method. As we have seen in the last post, the switch trunk port by default carries the tagged frame of all active VLANs, but in the case of a router, we explicitly have to mention the VLAN association of each sub-interface. Here we shall configure three sub-interfaces on the Gigabit Ethernet link of the router. Each sub-interface carry specific VLAN traffic, you have to configure sub-interfaces as much as the number of VLANs. In router on a stick configuration, we divide an IP interface of the router to sub-interfaces. With the help of the router, we can maintain the legacy of layer 2 VLAN, i.e., keeping the broadcast domain separate for each VLAN, and they will also be able to communicate as well when required. Now, we shall try to introduce a Layer-3 device into the VLAN. In the last blogs, we have covered the VLAN configuration and trunk creation, and An overview of VLAN. Also known as a one-armed router, it is the technique to allow inter vlan routing between the VLANs. The ‘ Router on a stick‘ is a method to transport multiple VLANs over a single router link.
