Both tagged Layer 3 interfaces and router-on-a-stick use 802.1Q VLAN tagging to multiplex multiple Layer 3 networks over a single physical link. The concepts are nearly identical—the main differences lie in the platform, scale, and typical use cases. Let’s break down what makes them similar and where they diverge.
The Foundation: 802.1Q VLAN Tagging
Both designs rely on 802.1Q trunking to carry multiple VLANs across a single physical interface. Each VLAN gets its own Layer 3 subinterface (or logical unit), allowing a single link to handle multiple routed networks simultaneously.
Think of it like a single fiber optic cable carrying multiple wavelengths of light (DWDM). One physical medium, multiple logical channels.
Router-on-a-Stick: The Classic Pattern
How It Works
Router-on-a-stick connects a router to a Layer 2 switch via a single 802.1Q trunk. The router creates multiple subinterfaces on one physical port, with each subinterface handling routing for a specific VLAN.
Configuration Example (Cisco Router):
interface GigabitEthernet0/0
description Trunk to Layer 2 Switch
no ip address
interface GigabitEthernet0/0.10
description VLAN 10 - Finance
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
interface GigabitEthernet0/0.20
description VLAN 20 - Engineering
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
interface GigabitEthernet0/0.30
description VLAN 30 - Guest
encapsulation dot1Q 30
ip address 192.168.30.1 255.255.255.0
Primary Use Case
Inter-VLAN routing in small to medium environments:
- Branch offices with Layer 2 switches
- Small campus networks
- Budget-constrained deployments
- Networks with light to moderate inter-VLAN traffic
Tagged Layer 3 Interfaces: The Enterprise Pattern
How It Works
Tagged Layer 3 interfaces use the same 802.1Q subinterface concept, but typically on enterprise routers or Layer 3 switches connecting to other Layer 3 devices or provider networks. Rather than inter-VLAN routing for local users, these interfaces often carry:
- Multiple customer connections (ISP/carrier use case)
- Different VRFs or routing instances
- Segregated services over shared infrastructure
- WAN connections with multiple circuits
Configuration Examples
Juniper (Logical Units):
set interfaces et-0/0/1 description "Carrier_Circuit_to_DMZ_Switch"
set interfaces et-0/0/1 vlan-tagging
set interfaces et-0/0/1 unit 200 description "ATT"
set interfaces et-0/0/1 unit 200 vlan-id 200
set interfaces et-0/0/1 unit 200 family inet address 10.23.59.1/30
set interfaces et-0/0/1 unit 308 description "Zayo"
set interfaces et-0/0/1 unit 308 vlan-id 308
set interfaces et-0/0/1 unit 308 family inet address 10.23.58.1/30
set interfaces et-0/0/1 unit 322 description "Lumen"
set interfaces et-0/0/1 unit 322 vlan-id 322
set interfaces et-0/0/1 unit 322 family inet address 10.23.57.1/30
set interfaces et-0/0/1 unit 337 description "Verizon"
set interfaces et-0/0/1 unit 337 vlan-id 337
set interfaces et-0/0/1 unit 337 family inet address 10.23.56.1/30
Arista (Subinterfaces with VRFs):
interface Ethernet3
description "Verizon"
no switchport
interface Ethernet3.3011
description "Customer1"
encapsulation dot1q vlan 3011
vrf Cust1
ip address 10.140.242.45/31
interface Ethernet3.3012
description "Customer2"
encapsulation dot1q vlan 3012
vrf Cust2
ip address 10.140.242.49/31
interface Ethernet3.3018
description "Customer3"
encapsulation dot1q vlan 3018
vrf Customer3
ip address 10.140.242.53/31
Primary Use Cases
Service multiplexing and network segregation:
- Carrier/ISP networks serving multiple customers over shared infrastructure
- Enterprise edge routers with multiple WAN circuits or partners
- Data center interconnects (DCI) carrying multiple tenants
- MPLS PE routers with VRF-segregated customers
- DMZ/extranet environments with strict segmentation requirements
Key Differences
| Feature | Router-on-a-Stick | Tagged Layer 3 Interfaces |
|---|---|---|
| Typical Platform | Small branch routers (ISR, etc.) | Enterprise routers (MX, ASR, 7xxx) |
| Connected To | Layer 2 access switch | Layer 3 device, carrier, or upstream |
| Primary Purpose | Inter-VLAN routing for end users | Service multiplexing, WAN aggregation |
| Traffic Pattern | East-west (VLAN to VLAN) | North-south (external connections) |
| VRF Usage | Rarely used | Common (customer/service isolation) |
| Scale | Typically 3-10 VLANs | Can support dozens to hundreds |
| Port Speed | 1G typical | 10G/40G/100G common |
| Routing Complexity | Simple (default gateway role) | Complex (BGP, OSPF, policy routing) |
The Real Difference: Context and Scale
Technically, both designs are doing the same thing: using 802.1Q tagging to create multiple Layer 3 interfaces on a single physical port. The distinctions come down to:
1. Network Location
- Router-on-a-stick: Access layer, connecting to end-user VLANs
- Tagged L3 interfaces: Edge/core, connecting to WAN, partners, or other infrastructure
2. Traffic Type
- Router-on-a-stick: Internal traffic between VLANs (Finance ↔ Engineering)
- Tagged L3 interfaces: External services, customers, or carriers (Bank of America, Wells Fargo, Verizon,ATT)
3. Isolation Requirements
- Router-on-a-stick: Simple VLAN separation, shared routing table
- Tagged L3 interfaces: Often uses VRFs for strict routing isolation between customers/services
4. Performance Expectations
- Router-on-a-stick: Bandwidth bottleneck is an accepted trade-off for simplicity
- Tagged L3 interfaces: High-speed links (10G+) with hardware-accelerated forwarding
Real-World Example: Financial Services Edge Router
In the Arista example above, a single 10G interface to a carrier (Lumen) carries three completely isolated networks:
- VLAN 3011: Dedicated Wells Fargo connection (VRF: WellsFargo)
- VLAN 3012: Shared FIX protocol link (VRF: Shared_Fix)
- VLAN 3018: Extranet services (VRF: Extranet)
Each subinterface exists in a separate VRF, ensuring complete routing isolation. Traffic from Wells Fargo can never leak into the Extranet VRF, even though they share the same physical wire.
This is service multiplexing—using 802.1Q to deliver multiple isolated services over shared infrastructure.
When to Use Each Design
Use Router-on-a-Stick When:
- You need inter-VLAN routing in a small office or branch
- You have Layer 2 switches and one router
- Budget constraints prevent Layer 3 switching
- Inter-VLAN traffic is moderate and predictable
Use Tagged Layer 3 Interfaces When:
- Connecting to carriers, partners, or WAN providers
- You need strict traffic segregation (VRFs)
- Multiplexing multiple customers or services over shared links
- Building data center interconnects or MPLS PE infrastructure
- Working with high-bandwidth circuits (10G+)
Common Pitfalls and Considerations
MTU and Fragmentation
802.1Q adds 4 bytes to the frame. If your physical interface MTU is 1500, your effective Layer 3 MTU per subinterface is 1496. Always verify MTU settings match on both ends to avoid fragmentation issues.
Native VLAN Considerations
Some platforms allow a “native” (untagged) VLAN on trunk ports. Be explicit about whether you’re using this feature to avoid misconfigurations and potential security issues.
Performance Monitoring
Monitor each subinterface individually—don’t just look at the physical interface utilization. One busy subinterface can saturate the link and affect all others.
QoS and Traffic Shaping
When multiplexing critical services, implement QoS policies to ensure high-priority traffic (e.g., VoIP, financial transactions) isn’t starved by bulk data transfers.
Conclusion
Router-on-a-stick and tagged Layer 3 interfaces are fundamentally the same technology—802.1Q subinterfaces providing Layer 3 routing over a single physical link. The key differences are:
- Router-on-a-stick: Small-scale inter-VLAN routing for local users
- Tagged L3 interfaces: Enterprise-scale service multiplexing with VRF isolation
Both have their place in modern networks. Understanding when and why to use each pattern is essential for designing efficient, scalable infrastructure—whether you’re building a branch office network or connecting to major financial institutions over carrier circuits.
Working with VLANs, VRFs, or enterprise routing? Let’s connect on LinkedIn