DHCP for few IP ranges?

Perhaps a silly question, but I can’t figure it out…
I want to segment my LAN into few IP ranges, say ether2 → 192.168.2.0/24, ether3 → 192.168.3.0/24

How do I setup DHCP server to serve appropriate IPs for each range?

I believe this would set up the interfaces for your networks

/ip dhcp-server
add address-pool=dhcp_pool1 authoritative=after-2sec-delay bootp-support=\
    static disabled=no interface=ether2 lease-time=3d name=dhcp2 relay=\
    192.168.2.1
add address-pool=dhcp_pool2 authoritative=after-2sec-delay bootp-support=\
    static disabled=no interface=ether3 lease-time=3d name=dhcp3 relay=\
    192.168.3.1
/ip dhcp-server config
set store-leases-disk=5m
/ip dhcp-server network
add address=192.168.2.0/24 comment="" dns-server=192.168.2.1 gateway=\
    192.168.2.1
add address=192.168.3.0/24 comment="" dns-server=192.168.3.1 gateway=\
    192.168.3.1

It should give out the address’ you want on the interfaces.
I am not sure if it would work though as there is no routes setup by this. and dns servers and gateways point to first IP on the segment. It might help you get started though.