Inter-VLAN Routing lab practice
Route between VLANs with router-on-a-stick subinterfaces or switch virtual interfaces, and verify each VLAN has a working gateway.
4 labs · 4 lessons · 4 commands · 5 projects
Hosts in different VLANs need a router to talk. Router-on-a-stick does it with one trunk to a router and a subinterface per VLAN (encapsulation dot1q <vlan>); a multilayer switch does it with a switch virtual interface (interface vlan <id>) per VLAN and ip routing.
Either way, each VLAN needs a gateway address in its own subnet, the trunk must carry every VLAN, and the hosts must point at the right gateway.
Hands-on labs
- Router-on-a-Stick (Pro)
- Three Tagged Subinterfaces on One Link (Pro)
- Router-on-a-stick Configuration Errors (Pro)
- Deploy Active Gateway & Access Switch (Pro)
To practise for free, build the topology in the free Sandbox.
Lessons, in order
- Router-on-a-Stick & SVI (3. IP Connectivity, 9 min)
- Route between VLANs with SVIs (3. IP Connectivity, 15 min)
- Route between VLANs on the switch with SVIs (Prerequisite review: CCNA topics from the CCNP courses, 8 min)
- Give each VLAN a gateway on a trunked subinterface (Prerequisite review: CCNA topics from the CCNP courses, 8 min)
Commands
- show ip interface brief — Lists every interface with its IPv4 address and its Layer 1 and Layer 2 status in one line each.
- show interfaces trunk — Lists every operational trunk with its mode, encapsulation, native VLAN and the VLANs allowed, active and forwarding on it.
- show vlan brief — Lists every VLAN on the switch with its name, status and the access ports assigned to it.
- show ip route — Shows the IPv4 routing table: every network the router can reach, how it learned it, and the next hop or exit interface.
Related projects
- Router-on-a-Stick Office — Pemberton's departments are separated, and now Sales needs the Engineering file share. The office has one router with one spare port. Route between the three VLANs over a single 802.1Q trunk to that router.
- Two-Floor Office with 802.1Q Trunks & Router-on-a-Stick — A regional insurance firm occupies Floors 1 and 2 of an office building. Floor 1 hosts Claims & Operations (VLAN 110), while Floor 2 hosts Underwriting & Management (VLAN 120). You must configure an inter-switch 802.1Q trunk link and a router-on-a-stick topology with native VLAN hardening.
- Warehouse Router-on-a-Stick for Stock and Office VLANs — A builders merchant has stock scanners on one VLAN and the sales office on another, and they need to reach each other. One router interface must serve both.
- Routing-Capable Switch Network — Pemberton has doubled in size and the router-on-a-stick link is saturated every afternoon. Move inter-VLAN routing into a Layer 3 switch: switched virtual interfaces for each department, routed in hardware.
- Three-Department Campus Inter-VLAN Routing with SVI Core — An architecture firm is experiencing performance bottlenecks on its router-on-a-stick link. Migrate the campus core to high-speed hardware-switched Layer 3 Switched Virtual Interfaces (SVIs) on a Catalyst distribution switch, enabling wire-speed routing between Sales, Engineering, and Management.