VLAN Addressing for a Multi-Floor Building

Intermediate Design

Question

A 4-floor office building uses 192.168.0.0/22 as its total address space. Each floor has 3 VLANs. Design a hierarchical scheme where each floor receives a /24 block, and each VLAN within a floor receives a /26 subnet. List all 12 VLANs with their subnets.

Given

{
  "network": "192.168.0.0/22",
  "floors": 4,
  "vlans_per_floor": 3
}

Answer

{
  "floor_blocks": [
    {
      "floor": 1,
      "block": "192.168.0.0/24"
    },
    {
      "floor": 2,
      "block": "192.168.1.0/24"
    },
    {
      "floor": 3,
      "block": "192.168.2.0/24"
    },
    {
      "floor": 4,
      "block": "192.168.3.0/24"
    }
  ],
  "vlans": [
    {
      "floor": 1,
      "vlan": 1,
      "subnet": "192.168.0.0/26",
      "range": "192.168.0.1 - 192.168.0.62"
    },
    {
      "floor": 1,
      "vlan": 2,
      "subnet": "192.168.0.64/26",
      "range": "192.168.0.65 - 192.168.0.126"
    },
    {
      "floor": 1,
      "vlan": 3,
      "subnet": "192.168.0.128/26",
      "range": "192.168.0.129 - 192.168.0.190"
    },
    {
      "floor": 2,
      "vlan": 1,
      "subnet": "192.168.1.0/26",
      "range": "192.168.1.1 - 192.168.1.62"
    },
    {
      "floor": 2,
      "vlan": 2,
      "subnet": "192.168.1.64/26",
      "range": "192.168.1.65 - 192.168.1.126"
    },
    {
      "floor": 2,
      "vlan": 3,
      "subnet": "192.168.1.128/26",
      "range": "192.168.1.129 - 192.168.1.190"
    },
    {
      "floor": 3,
      "vlan": 1,
      "subnet": "192.168.2.0/26",
      "range": "192.168.2.1 - 192.168.2.62"
    },
    {
      "floor": 3,
      "vlan": 2,
      "subnet": "192.168.2.64/26",
      "range": "192.168.2.65 - 192.168.2.126"
    },
    {
      "floor": 3,
      "vlan": 3,
      "subnet": "192.168.2.128/26",
      "range": "192.168.2.129 - 192.168.2.190"
    },
    {
      "floor": 4,
      "vlan": 1,
      "subnet": "192.168.3.0/26",
      "range": "192.168.3.1 - 192.168.3.62"
    },
    {
      "floor": 4,
      "vlan": 2,
      "subnet": "192.168.3.64/26",
      "range": "192.168.3.65 - 192.168.3.126"
    },
    {
      "floor": 4,
      "vlan": 3,
      "subnet": "192.168.3.128/26",
      "range": "192.168.3.129 - 192.168.3.190"
    }
  ],
  "usable_per_vlan": 62,
  "reserved_per_floor": "192.168.x.192/26 (62 addresses for future 4th VLAN)"
}

Try to solve it first, then click Reveal Answer

Step-by-Step Explanation

Step 1: Understand the available space

192.168.0.0/22: - /22 = 1,024 addresses - Range: 192.168.0.0 – 192.168.3.255 - This spans four consecutive /24 blocks (192.168.0.x through 192.168.3.x)

Step 2: Assign one /24 per floor

Each /24 provides 256 addresses — enough for 3 VLANs of /26 (62 usable each) with room to spare.

Floor /24 Block
Floor 1 192.168.0.0/24
Floor 2 192.168.1.0/24
Floor 3 192.168.2.0/24
Floor 4 192.168.3.0/24

Step 3: Sub-divide each /24 into /26 VLANs

A /24 holds exactly 4 × /26 subnets (4 × 64 = 256 addresses):

Offsets within each /24:
  VLAN 1: .0/26   (usable: .1 – .62,   broadcast: .63)
  VLAN 2: .64/26  (usable: .65 – .126, broadcast: .127)
  VLAN 3: .128/26 (usable: .129 – .190, broadcast: .191)
  VLAN 4: .192/26 (RESERVED for future expansion)

Step 4: Full 12-VLAN table

VLAN ID Floor Subnet First Host Last Host Broadcast
F1-V1 1 192.168.0.0/26 .0.1 .0.62 .0.63
F1-V2 1 192.168.0.64/26 .0.65 .0.126 .0.127
F1-V3 1 192.168.0.128/26 .0.129 .0.190 .0.191
F2-V1 2 192.168.1.0/26 .1.1 .1.62 .1.63
F2-V2 2 192.168.1.64/26 .1.65 .1.126 .1.127
F2-V3 2 192.168.1.128/26 .1.129 .1.190 .1.191
F3-V1 3 192.168.2.0/26 .2.1 .2.62 .2.63
F3-V2 3 192.168.2.64/26 .2.65 .2.126 .2.127
F3-V3 3 192.168.2.128/26 .2.129 .2.190 .2.191
F4-V1 4 192.168.3.0/26 .3.1 .3.62 .3.63
F4-V2 4 192.168.3.64/26 .3.65 .3.126 .3.127
F4-V3 4 192.168.3.128/26 .3.129 .3.190 .3.191

Step 5: Routing and summarization

Each floor's /24 can be summarized to a single route in the core switch: - ip route 192.168.0.0/24 <floor1_switch> - ip route 192.168.1.0/24 <floor2_switch> - etc.

All floors can further be summarized as 192.168.0.0/22 to an upstream router.

Related Terms

More Design Worksheets