i have two offices. The local LAN 192.168.0.0/24 is bridged between both offices. (eoip tunnel + eth ports)
Office1 provides the DHCP server and the default gateway.
Now i would like clients in Office2 to use the local internet, instead of going through the brigde. It seems an easy task, but i can’t get it to work, nor can i find sufficient information on google.
The offices are not small, there is constant change and the IP addresses of the clients need to be the same on both ends. So a local DHCP server at Office2 should be avoided.
Split the addresses for both sides, use DHCP server and pool 10-130 for first router and use dhcp server with pool2 131-250 on second router.The bridge address for router1 192.168.0.1 and for second router 192.168.0.254.Finaly use bridge filter to choose prefered dhcp servers :
/interface bridge filter
add action=drop chain=forward dst-port=68 ip-protocol=udp mac-protocol=ip src-address=!192.168.0.1/32 … this rule is for first bridge
/interface bridge filter
add action=drop chain=forward dst-port=68 ip-protocol=udp mac-protocol=ip src-address=!192.168.0.254/32 … this rule is for second bridge
This is my setup when i make site to site transparent bridge with EoIP and bridges, but using local internet for every site!
This rules also serves to protect against other unregulated dhcp servers in the LAN.