NSX Segment & T1 Gateway Planner
Design your NSX network topology — Tier-1 gateways and the overlay/VLAN-backed segments attached to them. Validate CIDR allocations for conflicts, configure DHCP server or relay per segment, set route advertisement policies, then export as production-ready Terraform HCL or PowerCLI scripts.
Quick start
- Add Tier-1 gateways — name, HA mode (Active-Standby or Active-Active), preemption policy.
- Add segments — overlay or VLAN-backed, attach to a T1, set CIDR and gateway IP.
- Configure DHCP per segment — none (static), DHCP server (NSX-managed), or DHCP relay (forwards to external).
- Validate — tool checks for CIDR overlaps, naming conflicts, unattached segments, missing route advertisements.
- Export — Terraform HCL for IaC pipelines, or PowerCLI for direct application.
When to use this tool
Use this tool when you need to:
- Plan a new NSX overlay topology — many T1 gateways, many segments, all the relationships between them.
- Validate CIDR allocations against an existing IP plan to spot overlaps before they go live.
- Generate IaC artifacts — Terraform HCL for GitOps workflows, or PowerCLI for one-off automation.
- Document the network topology for handoff to security or operations teams.
- Compare designs — does it cost less complexity to use one big T1 with many segments, or multiple T1s for isolation?
How it works
NSX uses a 2-tier routing model: Tier-0 (north-south, connects to physical fabric via BGP) → Tier-1 (east-west, hosts segments). This tool focuses on the T1 + segment layer where most workload traffic lives.
A Tier-1 gateway is a logical router with:
- HA mode: Active-Standby (one active edge node) or Active-Active (multiple)
- Preemption: whether the original active resumes when it returns from failure
- Route advertisement policies: what subnets to advertise upstream to T0/BGP
Segments attach to a T1 and provide L2 broadcast domains. Each segment has a CIDR, gateway IP, and optional DHCP. Overlay segments use GENEVE encapsulation (workload traffic); VLAN-backed segments traverse the physical VLAN (typically used for management or services that need physical visibility).
Step-by-step walkthrough
1. Add Tier-1 gateways
Click Add Gateway. Configure:
- Name — e.g.
t1-prod-app,t1-dev - HA mode — Active-Standby (simpler, default) or Active-Active (higher throughput, ECMP)
- Preemption — Preemptive (active resumes after failover) or Non-preemptive (failover sticks). Non-preemptive is generally preferred to avoid traffic disruption when failed edges return.
- Edge cluster — which NSX edge cluster hosts this T1
Plan T1 boundaries: typically one T1 per workload domain or per security zone. Don't overload a single T1 with hundreds of segments — split for blast-radius isolation.
2. Add overlay segments
Click Add Segment on a T1 row. For overlay (default for VCF):
- Name — e.g.
web-tier,db-tier - Type — Overlay
- CIDR — e.g.
10.10.1.0/24 - Gateway IP — typically
.1within the CIDR
Tool validates CIDR doesn't overlap any other segment in the design.
3. Add VLAN-backed segments
For services that need physical VLAN visibility (load balancers, legacy management):
- Type — VLAN-backed
- VLAN ID — the trunked VLAN this segment maps to
- Transport zone — VLAN transport zone (vs overlay TZ for overlay segments)
4. Configure DHCP
Per segment, choose:
- None (static only) — VMs use static IP. Common for servers.
- DHCP Server — NSX runs DHCP for this segment. Specify IP pool range, DNS servers, lease time. Common for end-user/dev segments.
- DHCP Relay — forward DHCP to an external server (typically Microsoft DHCP or Infoblox). Specify relay server IP. Common for enterprises with central DHCP.
5. Set route advertisements
Per T1, configure what gets advertised upstream to T0 (and from T0 via BGP to physical fabric):
- Connected segments — usually yes, so VM CIDRs are reachable
- Static routes — if any defined
- NAT IPs — for NAT'd workloads
- LB VIPs — for load-balanced services
6. Run validation
Click the Validate tab. Common findings:
- CIDR overlaps between segments
- Segments without parent T1 attachment
- T1s without route advertisement (segments unreachable)
- DHCP pool exceeds segment CIDR
- Duplicate names
7. Export — Terraform or PowerCLI
Pick export format:
- Terraform HCL — uses the official NSX Terraform provider. Drop into your IaC repo, run
terraform applyagainst your NSX manager. - PowerCLI — uses PowerCLI cmdlets (
New-NsxTier1,New-NsxSegment). Run from a workstation with NSX module installed.
Both produce idempotent, repeatable artifacts — apply, then re-apply gives same result.
Examples
One T1 per workload, three segments per app:
- T1: t1-app01, Active-Standby, non-preemptive
- Segment:
app01-weboverlay,10.20.1.0/24, DHCP server - Segment:
app01-appoverlay,10.20.2.0/24, static - Segment:
app01-dboverlay,10.20.3.0/24, static - Route advertisement: connected segments only (VMs reachable from physical via T0)
Each tenant gets its own T1 (no east-west between tenants without explicit firewall rule):
- T1: t1-tenant-a → segments tenantA-web/app/db
- T1: t1-tenant-b → segments tenantB-web/app/db
- T1: t1-shared → DNS, AD, monitoring (selectively reachable from each tenant)
Inter-T1 communication happens via T0 with explicit DFW/gateway firewall rules — natural blast-radius isolation.
Common mistakes
10.20.1.10-200 on a /26 segment doesn't work — the pool exceeds the subnet. Tool flags this; size the pool within the segment's usable range.
Related tools
Tools that pair well with NSX Segment & T1 Gateway Planner: