Last updated: May 1, 2026
Segmentation is the difference between “one foothold leads to domain compromise” and “one foothold leads to one VLAN compromise.” Almost every Indian breach in the last three years that escalated to domain admin would have been contained by competent segmentation. This module is the practitioner introduction: VLANs at L2, VRFs at L3, microsegmentation per host or workload, and the trust-tier model that maps controls to business risk.
Why segmentation is the single highest-leverage control
When attackers land an initial foothold (phished employee laptop, vulnerable web app), their first step is lateral movement: scan the local subnet, find a domain controller or file server, escalate. A flat network turns one compromised host into total compromise. Segmentation forces the attacker to traverse choke points — and choke points are where your IDS, EDR, and access controls live. Auditors love segmentation because it is observable: show me the network diagram, show me the firewall rules between zones, show me the segment-bridging device logs. RBI Cyber Security Framework Annex 1 and SEBI CSCRF both call out segmentation explicitly.
Practical baselineat minimum separate user / server / management / DMZ / IoT into distinct broadcast domains with explicit inter-segment ACLs.
VLAN segmentation — the campus baseline
VLANs (802.1Q, covered in Module 4) split a switch into isolated broadcast domains. The standard campus segmentation: User VLAN (workstations), Server VLAN (production servers), Management VLAN (switches, APs, IPMI/iDRAC), DMZ VLAN (internet-facing services), Voice VLAN (IP phones), Guest VLAN (guest Wi-Fi, isolated), IoT VLAN (cameras, printers, smart-building). Inter-VLAN routing happens at an L3 switch or firewall — that is where ACLs live.
Common mistakesputting “everything is server VLAN” because it is easier (loses granularity), routing inter-VLAN at an L3 switch with no ACLs (no security, just neat IP plan), or relying on switch ACLs for security (most enterprise switches do not log denies; use a firewall). The audit-defensible pattern: every VLAN has a firewalled boundary with explicit allow-rules and deny-by-default.
VRF — L3 segmentation when VLANs are not enough
A VRF (Virtual Routing and Forwarding) is an isolated routing table on a single router/L3 switch. The same router can hold a “production” VRF and a “test” VRF where the same IP 10.0.0.5 exists in both, completely isolated. VRFs are L3 — they do not share routing — whereas VLANs are L2 — they share L3 unless you force them not to.
Use VRFs whenyou need full address-space separation (overlapping IPs across tenants), you have multiple separate routing domains on one device (campus + branch + DMZ on a single edge router), or you are running MPLS/VPN (VRFs are how MPLS L3VPN per-tenant routing works).
Cloud equivalenteach VPC/VNet is effectively a separate VRF — separate routing, separate addressing, explicit peering required.
Operational noteVRFs add command-line complexity (every command must specify the VRF). Use them deliberately, not casually.
Microsegmentation — the modern east-west answer
VLAN segmentation controls traffic between segments. Within a segment, hosts can talk freely — and ransomware loves freely-talking servers. Microsegmentation applies policy at the workload/host level: server A allows server B on port 5432 (database) but blocks server C on port 5432 even though both are in the same VLAN.
ImplementationsVMware NSX (overlay-based, hypervisor-enforced), Illumio (host-based agent), Cisco Tetration (host agent + flow-based policy), Akamai Guardicore.
Cloud-nativeAWS Security Groups, Azure NSGs, GCP firewall rules — every cloud workload gets per-instance policy. Kubernetes: NetworkPolicy + Cilium / Calico for L3-L7 in-cluster.
The migration path for an enterprisestart with discovery (which workloads talk to which), build a draft allow-list, deploy in alert-only / monitor mode, tune for 30-60 days, switch to enforce. The wrong way: write policies from architecture diagrams without measuring real traffic.
The tier model — privileged-access workstations and admin tiers
Microsoft’s tiered admin model formalises the idea that “domain admin” should never log on to “user laptop”.
Tier 0domain controllers, ADFS, AD CS — anything that controls the directory.
Tier 1production servers, databases, internal apps.
Tier 2user workstations and helpdesk-managed systems. Rules: a Tier 0 admin uses only a Tier 0 PAW (privileged access workstation), never logs onto Tier 1 or 2 systems. Tier 1 admins similarly.
Network segmentation enforces thisthe management VLAN is reachable only from PAWs; production VLANs only from designated jump-hosts; user VLANs talk to nothing privileged. Active Directory track (separate course) covers the AD-specific aspects; for networking, the implication is that your management VLAN strategy directly determines whether tiered admin is even possible.
Cloud segmentation — VPCs, transit gateways, and shared services
Cloud segmentation has its own vocabulary but the same principles.
AWSVPCs as primary boundary; subnets per AZ/role; Security Groups for east-west; Network ACLs at subnet edge; Transit Gateway for hub-and-spoke connectivity.
AzureVNets; subnets; NSGs; Azure Firewall / Virtual WAN.
GCPVPCs (single global VPC by default); subnets per region; firewall rules globally; VPC Service Controls for data-perimeter.
Common pattern (well-Architected)separate VPC per environment (prod, staging, dev), separate VPC per tenant in multi-tenant SaaS, central transit/egress VPC for inspection, no peering across environments.
The mistakea single VPC with everything; transit gateway hub-spoke is moderate effort and dramatically increases segmentation auditability.
Indian audit context — what RBI / SEBI / IRDAI actually expect
Specific expectations vary by regulator but a working baseline:
Building a segmentation testing programme
Segmentation only works if you periodically prove it.
Quarterly testsfrom each segment, attempt a defined matrix of services on every other segment; record which succeeded vs the policy. Tools: scripted nmap matrices, commercial segmentation testers (Tufin SecureChange, AlgoSec, Pentera).
Pre-change testsevery meaningful firewall change ships with a test matrix that confirms intended changes and verifies no regressions.
Pentest scopeinclude explicit “from compromised device, attempt lateral movement to crown-jewel apps” — that is the closest test to real attacker behaviour.
Documentationmaintain a segmentation map (network diagram + policy matrix), updated with every change, accessible to incident responders.
For RBI / SEBI / IRDAIregulators increasingly ask “show me your segmentation test artefacts from the past year.” Build the cadence and store the evidence; auditors love documented periodic testing.
Microsegmentation rollout — the realistic 90-day plan
Day 0-30 (Discovery): deploy agents/sensors in monitor mode; collect connection patterns across the workload set you intend to microsegment. Sample size: at minimum two weeks of full traffic to capture weekly batch jobs. Day 30-60 (Policy authoring): from observed patterns, draft allow-rules. For each draft rule, identify owner + business purpose. Review with application owners; eliminate “we are not sure why this connection exists” before it becomes a forever-rule. Day 60-75 (Alert mode): apply policies in alert-only; everything continues to flow but violations are logged. Tune false positives. Day 75-90 (Enforce mode): switch to enforce on the workloads where alerts have been clean for 7+ days. Continue to monitor; revert any unexpected breakage to alert mode for retuning.
Common failureskipping the Discovery step and writing policies from architecture diagrams that do not match reality. The policies look right and break production immediately.
Segmentation for OT and IoT — the special cases
Operational Technology (manufacturing, ICS, SCADA) and IoT (cameras, building automation) need different segmentation patterns:
Document-as-code segmentation — the operational practice
Treat your segmentation policy as code: store firewall rule definitions in Git, reviewed via pull request, deployed via automation (Terraform, Ansible, vendor-specific exporters).
Benefitscomplete change history (who changed what, when, why); peer review catches mistakes before they hit production; rollback is a Git revert; the diagram in the README always matches the actual rules because both come from the same source.
ToolingHashiCorp Terraform with provider plugins for AWS SGs / Azure NSGs / Palo Alto / Cisco / Fortinet; Ansible modules for Cisco / Juniper / Fortinet; pan-os-python for Palo Alto.
The cultural shiftnetwork engineers who learn Git and code review become more productive than network engineers who do not — and increasingly the job market reflects this.
For Indian enterprisesthe documented-rules-in-Git pattern is also auditor-friendly — every rule has a commit message, every change has an approval. RBI / SEBI / IRDAI inspections increasingly expect this level of evidence.
Diagrams
Internet ──▶ Edge FW ──▶ DMZ VLAN (web, mail relays)
│
└─▶ Core L3 ──▶ User VLAN (workstations)
─▶ Server VLAN (databases, file)
─▶ Mgmt VLAN (switches, APs, IPMI)
─▶ Voice VLAN (IP phones)
─▶ Guest VLAN (isolated, internet-only)
─▶ IoT VLAN (cameras, printers)
Firewall ACLs between every VLAN pair: deny-by-default.
Deny logs go to SIEM. Periodic segmentation pentest.
Server VLAN (10.10.10.0/24) — flat at L3:
web-A ─┬─ web-B db-A ─── db-B cache-A
│
L3 says all reachable; without microseg, ransomware roams.
With microsegmentation (host policy):
web-A → db-A:5432 ALLOW (ticket #DB-104)
web-A → web-B DENY (no business reason)
db-A → cache-A:6379 ALLOW
db-B → anywhere DENY (db-B is dev-only; quarantined)
Same VLAN, much smaller blast radius.
References & deeper reading
- NIST SP 800-207 — Zero Trust Architecture
- Microsoft tiered administrative model
- NIST SP 800-125B (Hypervisor security)
- Kubernetes NetworkPolicy
- Cilium documentation
- AWS VPC peering best practice
FAQ
How many VLANs is too many?
A practical campus typically has 6-12 VLANs by function. Hundreds of VLANs become an operational liability — change-management cost rises and most “isolated” segments end up with mass any-any allow rules out of fatigue. Prefer fewer well-controlled segments + microsegmentation for granularity.
Should I run a flat VPC and rely on Security Groups?
For small / single-environment deployments, yes — SGs provide the actual security. For multi-environment or multi-tenant, separate VPCs per boundary make the segmentation auditable and limit blast radius if a SG misconfig occurs. Both approaches can be secure; the multi-VPC approach is more obviously auditable.
How do I test that my segmentation actually works?
Periodic segmentation tests: a host in segment A attempts every common service in segment B; observe what gets through. Tools: nmap from each segment, scripted “tcptest” matrices, commercial segmentation-test products (Tufin, AlgoSec). Run quarterly and on every major change.
Is Zero Trust just segmentation rebranded?
Closely related, with three additions: identity-aware policy (not just IP-based), continuous verification (per-request authorisation), and explicit assumption that no segment is trusted. Zero Trust without segmentation is policy theatre; segmentation without identity is 1990s perimeter. The right answer is both. Module 16 covers ZTNA in depth.
How does microsegmentation handle ephemeral cloud workloads?
Tag-based or label-based policy that applies as workloads come and go. AWS SGs reference SGs (not IPs), Kubernetes NetworkPolicy uses labels, NSX uses tags. The key is that policy is specified abstractly, then resolved against the live workload set — you do not write policies referring to specific instance IPs.
Is segmentation always better than a flat network?
Yes for production. The only “flat is better” exceptions: very small offices (<10 users with limited resources), and isolated environments where the perimeter is the only meaningful boundary. For everything else the cost of segmentation is low and the blast-radius reduction is substantial.
How does segmentation interact with disaster recovery?
Carefully. DR test plans must include verifying segmentation post-failover. Many DR tests reveal that the secondary site’s firewall rules drifted from primary; the failed-over apps cannot reach dependencies. Treat firewall rules as code (Terraform, Ansible, vendor-specific exporters) so primary and DR are in sync.
⚖️ Legal: Use any techniques described here only on networks you own or have explicit written authorisation to test. In India, unauthorised access is punishable under IT Act §66 (up to 3 years + fine). Pair offensive testing with a signed Statement of Work / Rules of Engagement; pair forensic activity with §65B-aligned chain of custody.
Custom team training + practitioner advisory
Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.