What is DNS poisoning (DNS spoofing) and how to prevent it
DNS poisoning (aka DNS cache poisoning or DNS spoofing) uses security gaps in the DNS protocol to redirect internet traffic to malicious websites.
Read moreDHCP snooping is a Layer 2 security control that filters DHCP messages on network switches to block unauthorized DHCP servers from distributing incorrect gateway or DNS settings to clients. The feature classifies switch ports as trusted or untrusted, inspects DHCP traffic, and maintains a binding table that maps client MAC addresses to assigned IP addresses, lease times, VLANs, and ports. This binding table enables related Layer 2 protections such as dynamic ARP inspection and IP source guard, while common misconfigurations—including leaving uplinks untrusted, losing the binding table after reload, and inconsistent relay option handling—can cause legitimate clients to fail to obtain addresses.
A switch with DHCP snooping enabled inspects DHCP packets in the VLANs where the feature is turned on. An administrator marks each port as trusted or untrusted, and the switch applies different rules to each.
Snooping does not authenticate clients or the legitimate server. Behavior such as rate limiting, option 82 insertion and binding table persistence varies by switch vendor and configuration.
If the port toward the DHCP server or relay is not marked trusted, the switch drops legitimate offers and acknowledgments. Clients then fail to get addresses, often only in VLANs where snooping was newly enabled.
If the binding table is held only in memory, a switch reload clears it and features that depend on it can block valid clients until they renew. Storing the table in persistent storage, where the platform supports it, reduces this.
Some switches insert relay information into client requests by default. When the upstream relay or server rejects packets that carry it without a matching relay address, clients fail to lease. Align the option setting across the switch and relay path.
Devices with static addresses never appear in the binding table. When ARP inspection or source guard relies on that table, their traffic is dropped unless static entries are added.
A low DHCP packet rate limit on an untrusted port can put it into an error-disabled state during legitimate bursts, such as many clients booting at once. The port stays down until it is recovered manually or by a timer.