Configuring Inter-VLAN Routing for CCNA
Inter-VLAN routing allows devices in different VLANs to communicate by routing traffic through a Layer 3 device like a router or Layer 3 switch.
The Need for Inter-VLAN Routing
VLANs logically segment a network into separate broadcast domains. To allow communication between these segments, a Layer 3 routing process is required.
Router-on-a-Stick
Router-on-a-Stick (ROAS) uses a single physical router interface configured with multiple logical subinterfaces. Each subinterface acts as the default gateway for a specific VLAN.
Layer 3 Switch (SVI)
Modern networks often use Layer 3 switches for inter-VLAN routing by configuring Switch Virtual Interfaces (SVIs) for each VLAN and enabling IP routing.
❓ Frequently Asked Questions
What encapsulation is used for Router-on-a-Stick?
IEEE 802.1Q encapsulation is configured on the subinterfaces to tag traffic with the correct VLAN ID.
Why use a Layer 3 switch over ROAS?
Layer 3 switches route traffic in hardware, making them significantly faster and more scalable than a router-on-a-stick.
How do you enable routing on a Layer 3 switch?
You must issue the global configuration command 'ip routing'.