Configuring and Managing DHCP Filters
Overview of DHCP Filters
DHCP filters are available under IPv4, but are not supported under IPv6.
Two types of filters exist: Allow filters and Deny filters, both of which are disabled by default (indicated by a red down arrow in the DHCP management console).
MAC addresses are formatted as six pairs of numbers separated by dashes.
DHCP filters should be one of the first configurations checked when troubleshooting clients that fail to obtain an IP address.
Allow Filters vs. Deny Filters
Allow Filter:
Operates on an implicit deny model (whitelist) where all clients are denied an IP address unless their MAC address is explicitly listed.
High administrative maintenance required because every allowed MAC address must be manually entered.
Recommended for high-security environments.
Deny Filter:
Operates on an implicit allow model (blacklist) where all clients receive an IP address except those specifically listed.
Used to prevent rogue or unauthorized devices from obtaining an IP address via DHCP (does not prevent static IP assignment).
Managing Filters via NetSH Command Line
Enabling/Disabling Filters: Configured using
netsh dhcp server v4 set filter. Bothenforceallowlistandenforcedenylistswitches must be defined simultaneously (e.g., setting allow to 1 and deny to 0).Adding Filter Entries: Configured using
netsh dhcp server v4 add filterfollowed by specifying the list target (allowordeny), the client MAC address, and an optional description.
Managing Filters via PowerShell
Enabling/Disabling Filters: Configured using
Set-DhcpServerv4FilterListspecifying the target server name (e.g., DC1) and boolean variables (trueorfalse) for the allow and deny lists.Adding Filter Entries: Configured using
Add-DhcpServerv4Filterby specifying the target list (allowordeny), MAC address, and an optional description.