I need to provide a dhcp service that can serve up addresses from two different address pools depending on which bridge port, call them ports A and B, the request originates.
I need to have physical networks A and B bridged, rather than routed, because the two physical networks are sharing multicast traffic between them and so need to be on a single subnet.
With a single dhcp server, attached to the bridge, I give out IP addresses from a single pool and all works as expected.
The new requirement is to give out addresses from pool A to devices on physical network A, while devices on physical network B get their IP addresses from pool B.
I tried to make this happen by creating two dhcp servers, server-A with address pool A and server-B with address pool-B.
To do this I tried the following:
1) DHCP Server-A is configured on network A's interface.
2) DHCP Server-B is configured on the bridge.
3) Use Bridge filter action=drop on ports 67-68 on input chain for network A.
Step 3 does effectively keep dhcp requests from the devices on network A from reaching dhcp server-B. However, the requests originating on network A don't get any responses from dhcp server-A.
I suspect that it might not be 'legal' to configure a dhcp server on an interface which is a port on a bridge.
I've been using ROS since version 2 and this is the first time I've been unable to come up with a way to solve a problem.
If anyone can suggest a solution to this I would greatly appreciate it.
I'm using ROS 6.6 on a RB433.