Setup Router-on-a-Stick(Layer 2 -Layer 3)
Last updated
Last updated
To connect several vlans together, there is a model which is called "Router-on-a-stick". This model has some advantages:
Cost effective
Easy to Implement
On the other hand, there are some drawbacks in this model:
Congestion on link(bottleneck on trunk port)
If router becomes down, network will down
In Switch layer2, we use router-on-a-stick to connect vlans together based on access-list we define.
As it is shown, first set an IP address for the PC0 and PC1. PC0 is on Vlan 10, while PC1 is on Vlan 20. Default Gateway of both PCs are set with the IP address of Vlan in Switch. For routing between to Vlan, Just we use "ip routing" command as it is shown in below code: