liveBook · Manning

Subinterface

As explained in Acing the CCNA Exam: Volume 1 Fundamentals and Protocols

A subinterface is a logical router interface created from a physical interface and configured as an independent Layer 3 interface.

A subinterface is a logical Layer 3 router interface created from a physical interface. Each subinterface can have its own IP address and VLAN association, allowing one physical router link to route between multiple VLANs. section 12.4.1

In router on a stick, the router’s physical interface connects to a switch trunk. VLAN-tagged frames arrive on the physical interface, and the router selects the appropriate subinterface from the 802.1Q VLAN tag. section 12.4.1

Configure a Cisco subinterface by completing these steps:

  • Enter a subinterface such as interface g0/0.10; the identifier distinguishes the subinterface but does not have to match the VLAN ID. section 12.5

Three VLANs on one router interface

R1 can use G0/0.10 for VLAN 10 at 172.16.1.1, G0/0.20 for VLAN 20 at 172.16.1.65, and G0/0.30 for VLAN 30 at 172.16.1.129. A PC in VLAN 20 can therefore reach a PC in VLAN 10 through ROAS.

How Acing the CCNA Exam: Volume 1 Fundamentals and Protocols covers it

How deep it goes
Explains creation, VLAN tagging, IP assignment, native VLAN handling, and representative Cisco commands, but not router forwarding internals.
Examples
Uses G0/0.10, G0/0.20, and G0/0.30 to route traffic among VLANs 10, 20, and 30.
What you can do after
Operate/configure router-on-a-stick inter-VLAN routing with Cisco subinterfaces, 802.1Q VLAN mappings, and gateway IP addresses.
How it connects
Connects subinterfaces with VLANs, trunk links, 802.1Q encapsulation, router-on-a-stick, and inter-VLAN routing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 1 Fundamentals and Protocols. The section links point to the parts of the book it draws on.