VLANs change IP addressing design because each VLAN is normally its own Layer 2 broadcast domain, and a separate broadcast domain almost always calls for its own IP subnet. The practical consequence is that the IP addressing plan is built around VLAN boundaries rather than around physical switch or building boundaries. A 48-port access switch might now carry six different subnets across its ports, while an entire floor of users might sit in a single VLAN and a single subnet. The addressing design has to follow the logical segmentation, and the routing design has to connect those segments back together.

That is the direct answer, but it compresses several decisions that matter in practice: how large each subnet should be, where default gateways live, how addressing scales as VLANs multiply, and how addressing handles devices that do not fit neatly into a user VLAN. The rest of this article works through those decisions and the reasoning behind them.

The core relationship: one VLAN, one subnet—usually

A VLAN is a set of switch ports and end devices treated as a single logical LAN, which means broadcasts and unknown unicast frames are flooded only within that VLAN. An IP subnet is a range of addresses that hosts can reach directly, without a router, because they share the same network prefix. Those two boundaries exist for different reasons, but in ordinary enterprise and campus design they are aligned: one VLAN maps to one IPv4 subnet.

The alignment is not a law of networking; it is a design convention that produces predictable behavior. If you place two different subnets inside one VLAN, hosts in those subnets can reach each other at Layer 2 but cannot communicate at Layer 3 without a router, and the design becomes confusing to troubleshoot. If you stretch one subnet across multiple VLANs, you break the broadcast-domain isolation that VLANs exist to provide, and you usually need a Layer 2 bridge between the VLANs—which defeats the segmentation. There are legitimate exceptions, such as a subnet shared by a handful of hosts in a small lab or a service VLAN used for a specific appliance, but the default rule is one VLAN, one subnet.

IPv6 changes the vocabulary without changing the principle. There is no broadcast in IPv6, but each VLAN still functions as a link, and each link normally receives its own prefix (commonly a /64 from the site's allocation). So the design rule holds: logical segment, separate prefix.

Why the addressing plan becomes a segmentation plan

Once VLANs are in place, the number of subnets is determined by the number of logical segments you decide to create, not by the number of physical switches. This is the central shift. In a flat, unsegmented network, a single subnet might cover an entire building or campus. With VLANs, that same physical footprint may contain a dozen subnets: one per department, one per device class (voice, wireless, printers, cameras, management), one per guest network, and so on.

Several forces drive how finely you segment, and each one directly changes the addressing plan:

Security and access control. Separating users, servers, guest devices, and management interfaces into different VLANs lets you apply ACLs and firewall policy between subnets. Each additional security boundary is an additional subnet to number, route, and document.

Broadcast and fault containment. Smaller broadcast domains reduce the blast radius of broadcast storms and certain Layer 2 failures. That argues for more, smaller subnets rather than fewer, larger ones—subject to the practical limits below.

Device class and traffic type. Voice over IP is the classic example. IP phones and the PCs behind them are typically placed in separate VLANs, often with the phone VLAN tagged and the PC VLAN untagged on the same switch port. That single decision creates two subnets on every access port, which is a major driver of addressing scale.

Organizational structure. Department- or floor-based VLANs make addressing easier to explain and to delegate. The tradeoff is that a person who moves desks may change subnets, which affects DHCP scopes and any statically assigned addresses.

Regulatory or contractual separation. Guest networks, payment-card environments, and regulated data segments may require isolation that maps naturally to VLANs and therefore to separate subnets.

Each of these decisions is made at the VLAN layer, but it lands in the IP plan as a new subnet with its own size, gateway, DHCP scope, and route.

Sizing subnets under VLAN segmentation

Subnet sizing is where VLAN design and IP addressing most visibly interact. Because each VLAN is its own broadcast domain, the size of the subnet is capped by how many hosts you want in that domain and by the address space you can afford to allocate.

A practical approach is to size subnets by expected host count plus growth, rounded up to a convenient prefix. A user VLAN with 200 devices fits comfortably in a /24 (254 usable IPv4 addresses). A voice VLAN with 150 phones also fits in a /24. A small management VLAN with 20 devices might use a /27 or /26. A point-to-point link between two routers does not need a VLAN at all and usually gets a /30 or /31, though some designs still place it in a dedicated transit VLAN for consistency.

The temptation is to make every subnet a /24 because it is easy to read. That works until the number of VLANs grows into the hundreds and the /24 blocks no longer fit neatly into the available address space, or until a VLAN legitimately needs more than 254 addresses—for example, a large wireless network or a dense campus. At that point the plan has to allow variable-size subnets and summarize them cleanly. The alternative temptation is to make subnets very small to conserve addresses; that creates more gateways and more DHCP scopes, and it offers little benefit on private IPv4 space or IPv6.

For IPv6, sizing is simpler in one sense: a /64 per VLAN is the standard, and there is no reason to subdivide a /64 for host addressing. The design work moves to how the site prefix is carved into /64s per VLAN and how those are summarized in routing.

Where default gateways live

VLAN segmentation forces a decision about default gateways, and that decision shapes the IP plan as much as subnet sizing does.

In a traditional router-on-a-stick design, a router has a subinterface for each VLAN, and each VLAN's default gateway is the router interface address in that subnet. The addressing plan must reserve one address per subnet for that gateway, and all inter-VLAN traffic flows through the router.

In a multilayer switch design, the switch itself holds the switched virtual interfaces (SVIs) for each VLAN, and each SVI is the default gateway for its subnet. The addressing plan again reserves one address per subnet, but now routing happens in the switch fabric, and the plan must account for the switch's role as the Layer 3 boundary.

The addressing consequence is the same in both cases: every VLAN needs a gateway address, and that address must be consistent and documented. A common practice is to assign the first usable address of each subnet to the gateway, though some organizations reserve the last. What matters is that the convention is uniform, because inconsistent gateway placement makes troubleshooting and automation harder.

A less common but important variant is the unnumbered or shared-gateway approach used in some designs, where multiple VLANs share a gateway address through techniques like proxy ARP or a common anycast address. These are specialized and can complicate the addressing plan; they should be adopted deliberately rather than by accident.

DHCP, reservations, and static addressing

VLANs multiply the number of DHCP scopes. Each subnet that uses dynamic addressing needs a scope, a default gateway option, DNS servers, and any vendor-specific options. The addressing plan therefore has to include a DHCP design: where the server sits, how it is reached from each VLAN (often via a DHCP relay on the router or switch), and how scopes are organized.

A VLAN-based plan also changes how static addressing is handled. Servers, printers, network gear, and management interfaces often receive static addresses or DHCP reservations. When those devices are separated into their own VLANs, their static addresses cluster into a few subnets, which makes firewall rules and documentation simpler. The price is that any device that moves between VLANs—a laptop that is sometimes on the user VLAN and sometimes on a lab VLAN—needs either a reservation per scope or a fully dynamic address.

One subtle effect: because VLANs are logical, a device can move to a different subnet without moving physically. That is a feature for mobility and a complication for addressing policy. If your addressing plan assumes "floor 3 is 10.20.30.0/24," a VLAN that spans floors or buildings breaks that assumption, and the plan has to be organized around the VLAN's purpose rather than its location.

Address space planning and summarization

A VLAN-heavy design consumes more subnets, so the address plan should be built hierarchically to keep routing tables manageable. The standard technique is to allocate a contiguous block to each region, building, or function, then carve VLAN subnets from that block so they can be summarized into a single route.

For example, if a site is assigned 10.50.0.0/16, you might allocate 10.50.10.0/24 through 10.50.19.0/24 to user VLANs on one floor and summarize them as 10.50.16.0/20 or a set of /24s. The exact summarization depends on how the blocks are laid out, but the principle is to allocate subnets so that adjacent VLANs fall within a common prefix. This is where a careless VLAN-by-VLAN allocation—grabbing the next free /24 wherever it appears—creates routing tables that cannot be summarized and grow without bound.

IPv6 planning follows the same logic at a larger scale: allocate a site prefix, carve /64s per VLAN, and summarize at the routing boundary.

Scaling: VLAN proliferation and its addressing costs

The most common practical problem is VLAN sprawl. Each new security zone, device class, or tenant adds a VLAN and therefore a subnet, a gateway, a DHCP scope, and a route. At small scale this is manageable. At large scale it becomes an operational burden: hundreds of subnets to document, inconsistent naming, overlapping or exhausted address ranges, and firewall rules that are hard to audit.

Designs respond in a few ways. One is to consolidate where segmentation adds little value—not every device class needs its own VLAN. Another is to automate subnet allocation and documentation so that adding a VLAN is a controlled, repeatable process rather than an ad hoc one. A third is to use overlay technologies, such as VXLAN with an IP underlay, where the logical segmentation is decoupled from the physical subnet layout; in those designs the IP addressing of the underlay is a separate concern from the addressing of the overlay segments, which changes the planning problem substantially. Even then, each overlay segment typically still has its own IP subnet for the tenants or workloads it carries.

Common misconceptions and edge cases

"A VLAN always equals a subnet." Usually true in practice, but not a requirement. The alignment is a design choice that most organizations adopt because it keeps Layer 2 and Layer 3 boundaries consistent.

"More VLANs always mean better security." VLANs provide separation, but separation without inter-VLAN policy does little. The addressing plan should be paired with ACLs or firewall rules between subnets; otherwise the extra subnets add complexity without adding control.

"The subnet mask is determined by the VLAN." The VLAN determines the broadcast domain; the mask determines how many hosts fit in the subnet. You can have a /24 VLAN and a /25 VLAN on the same switch, and you can have a VLAN with far more addresses than devices. Sizing is a separate decision.

"Voice VLANs double the addressing requirement." They do add a subnet per access layer, but the phone VLAN is often sized smaller than the data VLAN, and the two can be planned together so the total address consumption is predictable.

"IPv6 makes VLAN addressing trivial." It simplifies host sizing because /64s are plentiful, but the planning work of allocating prefixes, summarizing routes, and documenting segments remains.

A practical planning sequence

A workable order for designing IP addressing alongside VLANs is:

1: Decide the segmentation: which groups of devices need separate broadcast domains and policy boundaries. 2: Map each segment to a subnet (or prefix, for IPv6), sized to expected hosts plus growth. 3: Allocate subnets from contiguous blocks so they summarize cleanly. 4: Assign a consistent gateway address per subnet and decide whether gateways live on a router or a multilayer switch. 5: Define DHCP scopes, relay configuration, and static/reserved addressing conventions. 6: Document the VLAN-to-subnet mapping and keep it current as VLANs are added or retired.

The key insight is that the VLAN decision comes first and the addressing plan follows it. Organizations that build the IP plan around physical topology and then add VLANs afterward tend to end up with fragmented subnets, unsummarizable routes, and addressing that no longer matches the network's logical structure.

Bottom line

VLAN implementations affect IP addressing design by turning the address plan into a segmentation plan. Each VLAN normally requires its own subnet, gateway, DHCP scope, and route, so the number and purpose of VLANs determine the number and size of subnets. The design work is to size those subnets sensibly, place gateways consistently, allocate address space hierarchically so it summarizes, and keep the VLAN-to-subnet mapping documented as the network grows. The one-to-one alignment between VLAN and subnet is a convention rather than a technical requirement, but it is the convention that keeps VLAN-based networks predictable and operable.