Segmentation is a policy problem
Most segmentation projects fail not because the VLANs were wrong but because nobody agreed on what may talk to what. Write the policy matrix before touching a switch.
Zone | May initiate to | Never |
|---|---|---|
User | App, Internet, DNS/NTP | Management, OT |
App | Data, DNS/NTP | User |
Data | Nothing outbound | Internet |
Management | All zones (jump host only) | Internet inbound |
Pick a VLAN scheme you can read
Encode meaning into the numbering so an engineer can infer intent from a tag alone. A three-digit scheme where the first digit is the site tier and the last two are the function scales well up to a few hundred VLANs.
vlan 110
name SITE1-USER
vlan 120
name SITE1-VOICE
vlan 130
name SITE1-APP
vlan 199
name SITE1-QUARANTINE
!
interface Vlan130
description APP TIER GATEWAY
ip address 10.1.30.1 255.255.255.0
ip access-group APP-IN inEnforce between tiers, not inside them
East-west enforcement at the access layer is expensive and brittle. Enforce at the tier boundary with a firewall or a Layer 3 ACL, and reserve micro-segmentation for the workloads that genuinely justify it.
Routing and failure domains
Keep a Layer 3 boundary at the distribution layer so a broadcast storm stays local.
Use a routed access design where the platform supports it — no spanning-tree convergence in the data path.
Give management its own VRF; it must stay reachable when the production table is broken.
Validating the design
import itertools, socket
ZONES = {
"user": "10.1.10.20",
"app": "10.1.30.20",
"data": "10.1.40.20",
}
ALLOWED = {("user", "app"), ("app", "data")}
def reachable(host: str, port: int = 22, timeout: float = 1.5) -> bool:
with socket.socket() as s:
s.settimeout(timeout)
return s.connect_ex((host, port)) == 0
for src, dst in itertools.permutations(ZONES, 2):
ok = reachable(ZONES[dst])
expected = (src, dst) in ALLOWED
if ok is not expected:
print(f"POLICY DRIFT {src} -> {dst}: reachable={ok} expected={expected}")Where segmentation quietly erodes
Temporary any-any rules, a management VLAN that grew into a general-purpose network, and dual-homed servers bridging two zones. Audit those three things quarterly and the design will hold.
