Pcornel
Technology Comparisons

VRF vs VLAN

Compare Layer 3 routing-table separation with Layer 2 broadcast-domain separation.

DimensionVRFVLANWhat it means in practice
LayerLayer 3 routing context.Layer 2 broadcast domain.They solve different isolation layers.
LookupSeparate 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.
OverlapAllows overlapping IP space across VRFs.VLAN IDs identify L2 segments, not independent routing tables.Combined designs create tenant/segment isolation.
LayerLayer 3: separate routing tables.Layer 2: separate broadcast domains.A VRF can contain many VLAN interfaces; a VLAN carries no routing by itself.
OverlapAllows the same IP prefixes in different VRFs.Subnets must still be unique where routed together.Overlapping customer prefixes need VRFs.
Verificationshow ip route vrf <name>show vlan briefCommands without the VRF keyword show the global table only.

← All comparisons

Confirmation

Confirm action

Continue?