Hi,
scenario:
one L3 switch (AlliedTelesis) with 3 subnets: 192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24 (DHCP relay is on )
Mikrotik DHCP server 192.168.1.2 attached to subnet 192.168.1.0/24
how to configure DHCP to gives IP addresses to all subnets with IP in range
pool1 192.168.1.100-192.168.1.254
pool2 192.168.2.100-192.168.2.254
pool3 192.168.3.100-192.168.3.254
DNS for all: 192.168.1.4
GATEWAY for all: 192.168.1.1
Many thanks,
Manuel
How are the subnets separated on the switch? Best solution is if the switch supports VLANs, create 3 VLANs on the switch and MikroTik, and assign a different DHCP server to each VLAN.
The same solution but different, would be to do it with physical interfaces instead of VLANs on the MikroTik. The switch would still need to use VLANs to keep different switch groups separate though.
The subnets are in 3 Vlans with routing, and DHCP relay on
for some reason I must have only 1 DHC server with 3 poll address space
Why do you need 1 DHCP server? Why is the switch doing any kind of routing, the way you have your network described there is absolutely no reason to have the switch doing any kind of routing or DHCP relay. It is much cleaner, easier, and better to have a different DHCP server for each routed interface, instead of trying to hack something together like this, that as far as I know is not possible to accomplish the way that you want.
Can you turn off DHCP relay? If you trunk/tag all of the 3 VLANs through to the MikroTik then you can respond to the requests directly on the VLAN itself rather than redirecting the DHCP requests across networks. Each VLAN will have its own DHCP pool representing the 3 subnets you require.
You can only select one pool for DHCP-server within the routerOS so using your MikroTik router in the way you first describe seems impossible to me, but I’m no guru!
resolved,
details in PM
PMs are disabled in the forum. please post the solution =)
hi 
have you tell us how did you do this ?
i have i same pool tow range i was tried many But noting now
1 hs-pool-1 192.168.30.2-192.168.31.254
2 hs-pool-2 192.168.32.2-192.168.33.254
in Ethernet LAN
ether1
1 192.168.30.1/24 192.168.30.0 192.168.30.255
2 10.100.0.1/32 10.100.0.1 10.100.0.1 ether2
3 192.168.32.1/24 192.168.32.0 192.168.32.255
the clients pc’s can’t got the the range 192.168.31.1-192.168.31.254 and range 32 too
so :: how i can open the new ranges ?
thank you
Increase the pool size and increase the subnet on the interface. Easiest and quickest solution to getting more useable addresses on a hotspot.
how. would be great is ypu explained how
thanks