Insights

Rogue DHCP servers: What they change on your network

A rogue DHCP server offers unauthorized network settings. Check the responder and the device’s lease to see whether those settings were used.

Illustration of rubber stamp with Ethernet plug base.
On this page

A rogue Dynamic Host Configuration Protocol (DHCP) server hands out network settings without permission. It could be a spare router plugged in by mistake or a device meant to redirect traffic. If your device accepts its settings, you could lose access to local services or the internet, or your traffic could take an unexpected route.

In short:

  • Permission decides. A DHCP server is rogue only if it lacks approval.
  • Settings can differ. Devices on the same network can end up with different addresses, gateways or name resolvers.
  • Check the lease. An unexpected offer alone doesn't show which settings your device used.

An extra router can be the source

Suppose someone plugs a spare router into an office network with DHCP still on. If it starts offering settings without the network owner's approval, it's rogue even though no one meant to cause trouble. A second DHCP server is legitimate if the network owner has approved it for that part of the network.

What bad settings can break

A DHCP lease gives your device network settings it can use for a limited time. The Internet Protocol (IP) address identifies the device on the network, and the subnet mask helps it tell which addresses are local. A wrong address or mask can leave the device unable to reach local services.

DHCP can supply a router address for the default gateway, which handles traffic leaving the local network. The wrong gateway can cut off internet access or send traffic down an unexpected path. A Domain Name System (DNS) resolver looks up the addresses behind names. The wrong resolver can make those lookups fail or return the wrong address.

How long a device collects offers and how it chooses one can vary. It might pick the first offer or prefer a server it's used before. In the spare-router example, one laptop could accept a gateway that can't reach the internet. Another laptop on the same network could keep working because it still has a valid lease or picked the approved offer.

How to check who replied

Check the responder first. Compare the server identifier in the offer, which is the server's IP address, with the approved server list for that part of the network. Account for any known relay, which passes DHCP messages between clients and servers on different networks. A configured relay can trigger a false multiple-server alert on a Meraki MX.

Check the device's lease separately. Look for the DHCP server the device used and the settings it received. If an unapproved server replied but the current lease shows an approved server and the expected settings, you've found an unauthorized reply, not a bad lease on that device. If the lease points to the unapproved server, the device took its settings.

Use the lease to make that call, not the order of the offers. Even an unapproved lease doesn't prove anyone intercepted traffic or read encrypted content. If all you have is an alert, give it to the network owner to check.

Why bad settings can stay after removal

Taking the spare router off the network stops it from sending new replies there. It doesn't cancel the laptop's current lease, so the laptop can keep using the bad settings after the router is gone.

Before calling it fixed, check that the laptop has a lease from an approved server with the expected IP address, subnet mask, gateway and DNS resolver. If it can't get those settings, ask the network owner to check that replies from the approved server can still reach that part of the network.

How to keep extra replies out

On a managed switch that supports it, DHCP snooping blocks server replies that arrive on untrusted ports. The network owner should trust only the ports where replies from approved servers or relays enter. Keep ports for end devices untrusted so an extra router plugged into one can't send replies through the switch.

Leaving an approved reply path untrusted can also block valid leases. If devices stop getting leases after a change, check where the approved replies enter before trusting more ports.

Where doxx.net fits. The doxx.net private network encrypts DNS lookups and blocks unwanted domains, which is separate from fixing local DHCP settings. If you want those DNS features, you can download the doxx.net app.

Ask an AI assistant

Share this article

Private Everywhere

Stop giving the internet everything

Keep your browsing, messages, files, and agents private.