What is Inter VLAN Routing?
VLANs are used to separate different subnetworks in a big network. If you divide a network with VLANs, each of these new VLANs become a different network. Devices reside in different networks, can not communicate with the other devices reside in different networks withour routing. This is also true for VLANs. Different VLANs can not communicate without routing. The routing between VLANs is used to provide this communication. This is called “Inter VLAN Routing”.
Inter VLAN Routing is the Routing that is done between different VLANs. There are two ways to do Inter VLAN Routing:
Let’s see each of this methods, detailly.
Router on Stick Topology
Router on Stick Topology, in other words, External Router Topology is the first way for Inter VLAN Routing. For Router on Stick Topology, a Layer 3 device, a router or a multi layer switch is required. Basically, this Layer 3 device reside on the top and with one of its interface it is connected to the switch that has VLANs on it. This physical interface of the router is divided into sub interface. This sub interfaces are created for each VLAN. Here, each router Sub Interface will be the gateway of the related VLAN.
t the switch part, the port connected to the router’s physical interface is Trunk port. Each VLAN information is transfered on this Trunk port to the router pyhsical interface. At the router side, the assigned sub interface get its related VLAN data. In the Router, transport process is done and the communication with other VLAN is provided.
Without Trunk link, this is achieved with seperate links for each VLAN. But this is not a feasible solution.
Inter VLAN Routing with Router on Stick topology can be done for the VLANs on Layer 2 or Layer 3 switches. But here, there is a single Layer 3 device, a router or a multilayer switch is required at the top. For its configuration steps, it is an easy way but for security perspective, single router at the top means also, single point of failure.
Router on Stick Operation
Think about the below topology. In this topology PC 1 in VLAN 2 needs to communicate with PC2 in VLAN 4.