Router on a stick (ROAS) routes between VLANs through one router interface connected to a switch by a trunk. Multiple virtual subinterfaces share that physical interface, and each subinterface provides an IP gateway for one VLAN. section 12.4.1
A basic ROAS configuration follows this sequence:
- Assign each subinterface an IP address from its VLAN’s subnet; the subinterface number need not equal the VLAN ID. section 12.5
VLAN 20 to VLAN 10
A host in VLAN 20 sends a tagged frame to its default gateway on the router’s G0/0.20 subinterface. The router routes the packet and sends a new frame through G0/0.10 toward the host in VLAN 10.
