LOGBOOK

HELP

Quiz Entry - updated: 2026.07.05

What is the router-on-a-stick method, and how do subinterfaces work?

Router-on-a-stick uses a single physical router interface divided into multiple software-based subinterfaces, each assigned to a different VLAN (Virtual Local Area Network) via 802.1Q encapsulation.

Router-on-a-stick topology: one router linked to a switch by a single 802.1Q trunk, with subinterfaces per VLAN.

* Router-on-a-stick over a single trunk link. — Anatoly099, CC BY-SA 4.0, via Wikimedia Commons. *

Key concepts:

  • The router's physical interface connects to the switch via an 802.1Q trunk link
  • The trunk carries tagged traffic from multiple VLANs over one cable
  • On the router, subinterfaces are created — virtual interfaces that each handle one VLAN

How subinterfaces work:

  • Each subinterface is configured with encapsulation dot1q <vlan-id> to match a VLAN
  • Each gets its own IP (Internet Protocol) address, which becomes the default gateway for that VLAN
  • Traffic arrives tagged → router reads the VLAN tag → routes to the correct subinterface → re-tags with the new VLAN → sends back out the same physical interface

How a frame from VLAN 10 reaches VLAN 20 over the single trunk in router-on-a-stick.

* The tag → route → re-tag path: every inter-VLAN frame enters and leaves over the one physical interface. *

Limitations:

  • Does not scale beyond ~50 VLANs (all traffic funnels through one physical link)
  • The single link becomes a bandwidth bottleneck
  • Higher latency than Layer 3 switching

Tip: The name "router-on-a-stick" literally describes it — one router hanging off one stick (cable) doing all the inter-VLAN work.

Go deeper:

From Quiz: NETW2 / Inter-VLAN Routing | Updated: Jul 05, 2026