DHCP Server for multiple subnets

Hi,

I am wondering if it is possible to subnet a Class C network and have the DHCP server hand out different network information for the different subnets based on what is configured in the /ip/dhcp-server/networks menu?

So if I have 192.168.10.0/26 that should be 4 networks. and I would like to have (for example) different DNS servers for 2 of the networks.

So:
192.168.10.1 - 192.168.10.62 have DNS server of X and
192.168.10.65 - 192.168.10.126 have DNS server of Y

I was thinking to then reserve some MAC address binding to ensure they get addresses from the right subnet.

Is this possible and if it is could someone please point me in the right direction?

Thanks so much.
Dominique

Of course, you can just create multiple DHCP servers each with their own settings and IP pool.

Differentiating which PC gets what from which DHCP server takes some planning. You can use separate interfaces, but if all the clients are connected to the same LAN you will need to use VLAN’s. All traffic between the VLAN’s/subnets will of course have to be handled by a router (the routerboard for instance).

Thanks for the reply!

I tried adding a second network but got an error about it being an invalid network address. Not sure why though which lead to me asking this question.

You maybe missed the network size ??
For a C class net Like:
192.168.1.0**/24**

for the netmask 255.255.255.0

My mistake was that I was not using the network address in the address= field.

So I used 192.168.0.1/26 instead of 192.168.0.0/26.

Thanks for the help.