NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Routing & Switching Fundamentals
Build a rock-solid foundation in modern network infrastructure. This learning path takes you deep into the mechanics of
ViewEndpoint & Network Security Monitoring
Dive into the critical telemetry that powers modern threat detection. The Endpoint & Network Security Monitoring module
ViewNetwork Automation & Scripting
This comprehensive learning path dives deep into the principles and practices of automating network infrastructure. You
ViewPreview · 30 min
Learn how to route traffic between isolated VLANs using Router-on-a-Stick and Layer 3 Switches. Master SVIs, subinterfaces, and default gateways.
VLANs do one thing perfectly: they isolate traffic. By default a switch never forwards a frame from VLAN 10 to VLAN 20; they are separate broadcast domains. This is a feature, not a bug: it keeps guest traffic away from corporate servers and prevents broadcast storms.
In the real world, total isolation is rarely the goal. Sales (VLAN 10) needs to print on the shared printer in Engineering (VLAN 20), or reach a central file server (VLAN 30). Layer 2 switching cannot cross VLAN boundaries, so we need a Layer 3 device to route between them. This is inter-VLAN routing.
To communicate between VLANs, devices must use IP addresses (Layer 3), not just MAC addresses (Layer 2).
Every VLAN needs its own unique IP subnet, and every device in a VLAN must be configured with a default gateway: the IP address of the Layer 3 device (a router or Layer 3 switch) that routes traffic out of that VLAN and into another. Clients usually receive it from DHCP (the "router" option). If the gateway address is wrong, the device can still talk inside its own VLAN but cannot reach anything else.
There are two main methods: Router-on-a-Stick and Layer 3 switching.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in