
Assign IP address and default gateway to the PCĢ. Router on a stick configuration in packet tracer.ġ. Some of the important concepts in this lab are – to create sub-interfaces, use encapsulation dot1Q command to encapsulate the traffic, and mentioning the VLAN number to ascertain that for which VLAN the sub-interface should respond. In the below lab, we will configure ‘Router on a Stick’ that would allow routing between the VLANs. However, Layer 3 Switch is quite expensive so it might not be an affordable option for small office networks. A Layer 3 Switch will then enable routing between VLANs as it has routing capabilities as well. We just have to create virtual interfaces for each VLAN and assign them IP Addresses from the same network. The more simple way to do routing between VLANs is by using a Layer 3 Switch. Hence, ‘Router on a Stick’ is a perfect solution for routing between VLANs with just one router interface. So, it becomes practically non-efficient if we have multiple VLANs. You can see that we have to use extra interfaces for each VLAN. We have not created a sub-interface in the below figure. As you can see, we are using two interfaces on both the router and a switch to allow routing between VLANs. The image below is an alternative method for allowing routing between VLANs. And if we enable routing between multiple VLANs then it will become practically inefficient as the switches and the routers will use those multiple interfaces. If we create a route between VLANs without the ‘Router on a Stick’ method, then we have to waste interfaces on the switches and routers. To make it work, we have to create a truck connection between the switch and a router so that traffic from multiple VLANs can be sent to the router. ‘Router on a stick’ allows us to create sub-interfaces, and assign IP Addresses to those sub-interfaces. And we can assign only one IP Address to a router interface. In general, routers can take traffic from only one subnet and transfer it to another subnet. ‘Router on a Stick’ allows routing between VLANs with only one interface.
