One DHCP Server, Multiple Subnets

Maurice Massar massar at unix-ag.uni-kl.de
Thu Feb 4 18:12:20 UTC 2010


hi,

On Thu, Feb 04, 2010 at 09:57:10AM -0800, Shaun R wrote:
> I have a network (VLAN) that has many /26 subnets attached to it.  I am trying to run a DHCP server 
[...]
> Feb  4 09:35:21 host dhcpd: DHCPREQUEST for 10.82.117.197 from fe:fd:d0:52:75:c5 via eth0: wrong 
> network.
> Feb  4 09:35:21 host dhcpd: DHCPNAK on 10.82.117.197 to fe:fd:d0:52:75:c5 via eth0
> Feb  4 09:35:27 host dhcpd: DHCPDISCOVER from fe:fd:d0:52:75:c5 via eth0: network 10.10.37.64/26: 
> no free leases
[...]
> subnet 10.82.117.64 netmask 255.255.255.192 {
[...]
> subnet 10.10.37.64 netmask 255.255.255.192 {
[...]
> }

sounds like you have _one_ VLAN and many /26 subnets on it.
You need to tell dhcpd about this, by packing all these subnets
inside a shared_network statement. Each VLAN maps to one shared-network,
and inside one subnet-statement for each subnet (exception: if there is
only one ip-network in a vlan, no shared-network statement needed).

cu
Maurice Massar



More information about the dhcp-users mailing list