Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just recently added a new subnet for our wireless network to our DHCP configuration for the subnet. Most of the time when wireless clients connect it works just fine. However, sometimes on seemingly random occasions the DHCP server will send out a DHCPOFFER with an IP address on the wrong subnet.


dhcpd: DHCPDISCOVER from MACADDRESS (ThinkBook2) via
dhcpd: DHCPOFFER on to MACADDRESS (ThinkBook2) via

Here is the subnet configuration in dhcpd.conf:

subnet netmask
  option routers;
  default-lease-time 14400;

How can I make sure the server always sends out an IP address on the right subnet?

share|improve this question
How many network interfaces does the DHCP server have? How are they configured (what IP addresses). Is the DHCP server the router for those two networks? Do you have some other device acting as the DHCP relay for the second subnet? – Zoredache Jun 29 '12 at 19:05
What DHCP server? What version? – Chris S Jun 29 '12 at 19:11
The DHCP server has one network interface and it has a public IP address. The DHCP server is not the router, everything is connected to a large cisco switch. The cisco switch is configured to manage subnets through vlans. I have read some information about creating virtual interfaces for seperate vlans but I would really like to avoid that if possible. It is ISC dhcp 4.1.1 – Logan Jun 29 '12 at 19:31
Sorry, figured it out. It turns out my subnet definition was in the context of a shared-network statement in the dhcpd.conf file. Moving it out of there fixed the problem. Thanks! – Logan Jun 29 '12 at 19:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.