DHCP for Multiple Subnets

dhcpsonicwallsubnetvlanwindows-server-2008-r2

So this is the current setup – essentially I would like to get my DHCP server, serving DHCP requests for two seperate subnets.

Netgear DG834G acting as a modem connected to a Sonicwall Pro 2040.

X0 - LAN - 192.168.1.0/24

X1 - WAN - <WAN-IP>

X2 - WLAN - 192.168.10.0/24

At the moment, I have a 2008R2 server with DHCP installed, with an IP address on the 192.168.1.0/24 range handling DHCP fine for this subnet.

The Sonicwall is configured correctly – anything connected to the WLAN has Full Allow to anything in the LAN, and vice versa but it will not lease an IP from my Server.

I've also added another IP address to the server, so the physical NIC now has two IP's:

192.168.1.2 and 192.168.10.2 with a DHCP scope configured for each.

Still no luck!

Any ideas?

Thanks!

Best Answer

The initial steps in a DHCP client communicating with a DHCP server uses broadcast messages (to the physical layer broadcast address of FF-FF-FF-FF-FF-FF). Because these messages are broadcasts they are typically blocked/dropped at the network partition (a firewall, a layer 3 switch or a router that separates the client network from the server network). In order for DHCP clients on a network that's different from the server network to communicate with the DHCP server an intermediate host on the client network (usually the router, layer 3 switch or firewall) needs to act as a relay for these broadcast messages. The DHCP relay agent relays the client broadcast messages on behalf of the client to the server as unicast messages. The DHCP server then uses information in these unicast messages to determine what layer 3 network the client is on and assigns an ip address from the DHCP scope configured for that network.

So, long story short, here's what you need to do:

  1. Remove the additional ip address from the server.

  2. Configure a DHCP scope for the WLAN network.

  3. Configure the Sonicwall to act as a DHCP relay agent.