DHCP Exclusion Range Generator
Generate DHCP exclusion ranges for static IPs
Enter a DHCP scope and static IPs to generate exclusion ranges
The DHCP Exclusion Range Generator creates properly formatted exclusion configurations to reserve IP addresses within a DHCP scope for static assignments. Enter a subnet like 192.168.10.0/24, specify the addresses to exclude (e.g., .1-.20 for infrastructure, .50 for a legacy server), select your DHCP platform (Windows Server, ISC DHCP, Cisco IOS, or Infoblox), and get ready-to-paste configuration output with validated, merged ranges.
Understanding DHCP Exclusions
DHCP exclusions are the guardrails that prevent the most common type of IP conflict in enterprise networks. When a DHCP server manages a subnet, it assumes it can hand out any address in its pool to any requesting client. If a server, printer, or access point is already using an address statically, the DHCP server does not know about it -- there is no automatic mechanism for the server to discover that an address is taken. Without exclusions, it is only a matter of time before the server assigns that address to a laptop, creating a duplicate IP condition that knocks both devices offline intermittently.
The fix is straightforward but easy to forget. You define exclusion ranges that tell the DHCP server which addresses are off-limits for dynamic assignment. The server skips those addresses entirely, and the risk of a collision drops to zero for the excluded range. Most organizations adopt a convention where the first block of each subnet (e.g., .1 through .20) is reserved for infrastructure -- the gateway, DNS servers, domain controllers, and network management interfaces. Printers, cameras, and access points typically get addresses from a second reserved block (e.g., .240 through .254). Everything in between becomes the DHCP pool for dynamic clients.
The challenge is that every DHCP platform has its own syntax for exclusions. Windows Server uses PowerShell cmdlets, ISC DHCP defines exclusions implicitly by specifying only the allowed ranges, Cisco IOS uses explicit exclusion commands, and Infoblox has its own CSV import format. This generator eliminates the need to remember the syntax for each platform. You define your exclusions once, pick the target platform, and get copy-paste-ready configuration that works on the first try.
How to Generate DHCP Exclusion Ranges
- Enter the subnet for your DHCP scope (e.g.,
192.168.10.0/24) - Specify the addresses or ranges to exclude (e.g.,
.1-.20for infrastructure,.100for a printer) - Select your DHCP server platform -- Windows Server, ISC DHCP, Cisco IOS, or Infoblox
- The tool validates ranges, merges adjacent exclusions, and checks for overlap
- Copy the generated platform-specific configuration directly into your DHCP server
DHCP Exclusion Configuration Examples
Given subnet 192.168.10.0/24 with exclusions for infrastructure (.1-.20) and a legacy server (.50):
Windows Server DHCP
Add-DhcpServerv4ExclusionRange -ScopeId 192.168.10.0 -StartRange 192.168.10.1 -EndRange 192.168.10.20
Add-DhcpServerv4ExclusionRange -ScopeId 192.168.10.0 -StartRange 192.168.10.50 -EndRange 192.168.10.50
ISC DHCP (dhcpd.conf)
subnet 192.168.10.0 netmask 255.255.255.0 {
range 192.168.10.21 192.168.10.49;
range 192.168.10.51 192.168.10.254;
option routers 192.168.10.1;
}
Cisco IOS DHCP
ip dhcp excluded-address 192.168.10.1 192.168.10.20
ip dhcp excluded-address 192.168.10.50
!
ip dhcp pool OFFICE_LAN
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
Infoblox
header-excluderange,address,end_address,comment
excluderange,192.168.10.1,192.168.10.20,Infrastructure devices
excluderange,192.168.10.50,192.168.10.50,Legacy file server
Common Exclusion Patterns
| Pattern | Range | Purpose |
|---|---|---|
| First block | .1 - .20 | Gateways, switches, APs, DNS servers |
| Last block | .240 - .254 | Printers, cameras, IoT devices |
| Scattered singles | .50, .100, .150 | Legacy static assignments |
| Top half | .128 - .254 | Reserved for future static use |
| Narrow dynamic | .100 - .200 | Only allow DHCP in middle of range |
When to Use the DHCP Exclusion Range Generator
- Initial DHCP scope setup -- define exclusions before activating a new scope
- Adding static devices -- exclude addresses when deploying new servers, printers, or access points
- Platform migration -- convert exclusion syntax when moving from Windows Server to ISC DHCP (or vice versa)
- Documentation standardization -- generate consistent exclusion records across all scopes
- IP conflict resolution -- add exclusions to stop DHCP from assigning addresses that are already statically in use
How DHCP Exclusion Ranges Prevent IP Conflicts
When a DHCP client requests an address, the server selects one from its available pool. Without exclusions, the server may assign an address that is already statically configured on another device. This creates a duplicate IP condition that causes:
- ARP table flapping -- the switch alternates between two MAC addresses for the same IP
- Intermittent connectivity -- one or both devices lose network access unpredictably
- Application failures -- connections drop as traffic routes to the wrong device
Exclusion vs. Reservation
| Feature | Exclusion Range | DHCP Reservation |
|---|---|---|
| Purpose | Block addresses from all DHCP clients | Assign a specific address to a specific MAC |
| MAC required? | No | Yes |
| Device gets address via DHCP? | No -- device must be statically configured | Yes -- device gets reserved address via DHCP |
| Best for | Infrastructure devices, printers, legacy systems | Servers that need DHCP but always the same IP |
Use exclusions when devices are statically configured. Use reservations when you want centralized DHCP management but with consistent IP assignments.
Building a Reliable Exclusion Strategy
The most effective exclusion strategy is one that is predictable and consistent across your entire network. If VLAN 10 on every site reserves .1-.20 for infrastructure, every engineer in the organization knows that addresses in that range are static without looking it up. If one site reserves .1-.10, another reserves .1-.30, and a third reserves a random scatter of individual addresses, the inconsistency becomes a source of errors.
Standardize your exclusion pattern and document it as part of your network design guide. A common approach is to divide each subnet into three zones: a static infrastructure zone at the bottom (.1-.20), a dynamic DHCP zone in the middle (.21-.239), and a static device zone at the top (.240-.254) for printers, cameras, and other devices that need predictable addresses but are too numerous for individual documentation. This three-zone model makes it immediately clear where any given address falls without consulting a spreadsheet.
When migrating between DHCP platforms, export your existing exclusions using this tool's platform-specific output, then reimport them in the new platform's format. This eliminates manual transcription errors that frequently introduce IP conflicts during migrations. Pay special attention to ISC DHCP's inverted approach -- it defines allowed ranges rather than excluded ranges -- which requires careful conversion to avoid accidentally opening up addresses that should remain excluded.
Frequently Asked Questions
How many exclusion ranges should a scope have?
There is no hard limit, but keep exclusions simple and well-documented. Most scopes need 1-3 exclusion ranges. If you find yourself creating dozens of scattered exclusions, consider reorganizing your addressing so static devices occupy a contiguous block.
Can exclusion ranges overlap?
The generator detects and merges overlapping ranges. For example, if you exclude .1-.10 and .5-.20, the tool consolidates them into a single .1-.20 range. This prevents configuration errors and simplifies management.
What is the difference between ISC DHCP and Kea DHCP exclusions?
ISC DHCP (dhcpd) uses exclusions implicitly by defining only the range of addresses available for dynamic assignment. Kea DHCP uses explicit pools with optional client-class restrictions. The generator outputs the appropriate syntax for your selected platform.
What happens if I exclude an address that already has an active lease?
Adding an exclusion does not immediately terminate an existing lease. The client keeps its address until the lease expires. After expiration, the server will not renew the lease for that address, and the client will receive a different address from the remaining pool. To force an immediate change, release the lease manually on the DHCP server.
Should I exclude the default gateway address?
Yes. The default gateway (typically .1) is always statically configured on the router or Layer 3 switch. It must be excluded from the DHCP pool to prevent the server from assigning it to a client. Most exclusion patterns include the gateway as part of the first-block exclusion range.
Related Tools
- DHCP Scope Size Calculator - Calculate the optimal subnet size for your DHCP pool
- IP Reservation Table Builder - Build static IP reservation tables with MAC addresses
- VLSM Calculator - Plan subnet sizes before configuring DHCP scopes
- Duplicate IP Detector - Find duplicate IP assignments that exclusions should prevent
- Address Plan Generator - Generate address plans that include DHCP scope boundaries