![router on a stick configuration packet tracer router on a stick configuration packet tracer](https://i.ytimg.com/vi/qwJlypSanLc/maxresdefault.jpg)
The cookie is used to store the user consent for the cookies in the category "Analytics". This cookie is set by GDPR Cookie Consent plugin. These cookies ensure basic functionalities and security features of the website, anonymously. Necessary cookies are absolutely essential for the website to function properly. Following is the switch configuration for this model of inter-VLAN routing. So to enable inter-VLAN routing using router-on-a-stick, configure the trunk. The Figure above illustrates, that the Switch port G0/1 connected to the physical interface of the router. The Router-on-Stick configuration needed Trunk link connected to the physical interface of the Router. So we are going to configure Router-on-Stick inter-VLAN routing. On the router, subinterfaces for each unique VLAN on the network needed and must be assigned an IP address specific to its subnet/VLAN and is also configured to tag frames for that VLAN. When configuring inter-VLAN routing using the router-on-a-stick model, the connected switch port must be configured as a trunk. The figure below illustrates the Router-on-Stick configuration. This technique overcomes the hardware limitations based on physical router interfaces. The router on Stick configuration uses VLAN trunking and sub-interfaces.Īs we learned in the previous article that VLAN trunking allows a single physical router interface to route traffic for many VLANs. So, the next solution for up to 50 VLAN is Router-on-a-Stick configuration. So, this configuration is not possible to use in the large network. As the number of VLAN increased on a network, more physical interfaces needed. So, the use of Legacy Inter-VLAN routing is very limited. Legacy inter-VLAN routing needed the physical interface for each VLAN, and the router has a limited number of physical interfaces. The switch will now remove the VLAN tag of the unicast frame and forwards the frame out to host 2 of VLAN 200. The Router0 tagged the unicast traffic as VLAN 30 and sent out to the switch0 using the trunk link. The figure below illustrates the directly connected sub-interfaces. The Router0 accepts the tagged unicast traffic on VLAN 100 and routes it to VLAN 200 using its configured sub-interfaces because the sub-interfaces directly connected with the both of the LAN. The switch0 then tags the unicast traffic as originating on VLAN 100 and forwards the unicast traffic out to its trunk link (G0/1), connected with the Router0. The host 1 sends its unicast traffic to switch0. The Host 1 on VLAN 100 is communicating with Host 2 on VLAN 200 through Router0 using a single physical router interface. So the router receives VLAN-tagged traffic from the trunk on any of sub-interface and processes the packet for routing decision. Both sub-interfaces of the router needed to work as 802.1Q trunk and the switch port as trunk mode. The topology has two VLANs configured on the switch0 and two sub-interfaces configured on Router0. The router physical interface has two subinterfaces for both VLAN 100 and VLAN 200. The switch is connected to the Router1 using a single physical network connection (a trunk). So, if our network has more than 50 VLAN, then we cannot use Router-on-Stick method normally. The router-on-stick method can work and communicate up to 50 VLANs. The sub-interfaces makes routing possible within the network between different VLANs. The sub-interfaces are configured in router’s IOS, each sub-interface is independently working with IP address and VLAN assignment. The sub-interfaces are software-based interfaces associated with a single physical interface. The virtual interfaces also called sub-interfaces of the router.
![router on a stick configuration packet tracer router on a stick configuration packet tracer](https://2.bp.blogspot.com/-S9UMx3Ndv1U/W0Smh7KpXcI/AAAAAAAABms/BDj_wshTMSs6F_gWR5-vSxtWZfD5y_argCLcBGAs/s1600/6.png)
The router creates multiple virtual interfaces for each associated VLAN, and then it handles all frames tagged with that VLAN ID as if they came in and out of that virtual interface. The Router-on-Stick uses VLAN trunking configuration and creates a virtual interface connected to each VLAN. The Router-on-a-stick allows routing packets to subnets associated with VLANs connected to a router 802.1Q trunk.
![router on a stick configuration packet tracer router on a stick configuration packet tracer](https://i.ytimg.com/vi/84tUEklrvic/maxresdefault.jpg)
But in the ‘Router-on-stick’ configuration only one physical interface needed on both sides. We learned in a previous lesson that legacy inter-VLAN routing requires multiple physical interfaces on both the router and the switch.