Need help with DHCP server

Hello all,

I have the following setup:

  1. bridge includes eth2 and eth5
  2. IP address 192.168.1.1/24 on bridge
  3. IP address 192.168.2.1/24 on eth5
  4. Both eth2 and eth5 have devices with IP addresses 192.168.1.0/24
  5. Only eth5 have devices with IP addresses 192.168.2.0/24

With the above setup I want to have two separate DHCP servers:

  1. 1st DCHP server with pool 192.168.1.2-192.168.1.100 on eth2 only
  2. 2nd DCHP server with pool 192.168.2.2-192.168.2.100 on eth5 only
    But RouterOS does not allow DHCP server on slave interfaces.

Is there a way to do this ?

As a bonus:
Is there a way to assign DHCP pools/ IP subnets based on MAC address block mask (same manufacturer, ex. 11:22:33:xx:xx:xx) ?
The goal is to be able to separate device from different manufacturers in different subnets.
I know I can do static DHCP assignments base on MAC address but the goal is to use MAC address mask, not specific MAC addresses.

Thanks for the help.

Hi

is that line correct “1. bridge includes eth2 and eth3”?
Or did you mean eth5 instead of eth3?

Keep in mind that bridged interfaces behave as one! → it’s the same broadcast domain.

Fixed, thanks for the tip.

Not quite the answer I hoped for. But I somehow knew that this is the case, just wanted to be sure I’m not missing something.

And do you have any idea on the bonus part - MAC address block mask ?

It makes no sense,
The bridge is what is being dhcp served, not the ethernet interfaces.
if you want ether5 to have a different dhcp service than eth2, put it outside the bridge by itself (separate LAN/DMZ) or create another bridge and put it on that second bridge.