VRF vs VLAN
Compare Layer 3 routing-table separation with Layer 2 broadcast-domain separation.
| Dimension | VRF | VLAN | What it means in practice |
|---|---|---|---|
| Layer | Layer 3 routing context. | Layer 2 broadcast domain. | They solve different isolation layers. |
| Lookup | Separate RIB/FIB per VRF. | MAC forwarding inside VLAN; routing occurs at an SVI/router. | A VLAN can be attached to an SVI in a VRF. |
| Overlap | Allows overlapping IP space across VRFs. | VLAN IDs identify L2 segments, not independent routing tables. | Combined designs create tenant/segment isolation. |
| Layer | Layer 3: separate routing tables. | Layer 2: separate broadcast domains. | A VRF can contain many VLAN interfaces; a VLAN carries no routing by itself. |
| Overlap | Allows the same IP prefixes in different VRFs. | Subnets must still be unique where routed together. | Overlapping customer prefixes need VRFs. |
| Verification | show ip route vrf <name> | show vlan brief | Commands without the VRF keyword show the global table only. |