2 isps, eoip question

I have 2 mikrotik devices.
Office1:
isp = internet through pppoe, static public ip, lets say xxx.xxx.xxx.111
ip firewall nat src nat masquarade out interface ppoe1

Office 2:
same,
isp = internet through pppoe static public ip, lets say xxx.xxx.xxx.222
ip firewall nat src nat masquarade out interface ppoe1

office 1 and office 2 are connected because there have to be one lan, so
in both all eth ports are bridged (isp gives internet through sfp),
in both bridges there is eoiptunnel.

Everything works fine, lan is visible, but in office 1 internet goes through xxx.xxx.xxx.111
and i want in office 2 for internet to go through xxx.xxx.xxx.222,
but it does not, it goes through office 1 ip: xxx.xxx.xxx.111.

So when i go to ip location website to chck my ip, i have the same on both offices,
xxx.xxx.xxx.111

but i should have
xxx.xxx.xxx.111 in office 1
and
xxx.xxx.xxx.222 in office 2.

Why and how to change it?

Miss any relevant detail and both sanitized export.

You have only one dhcp server?
If not, block all dhcp request than can travel between eoips on bridge filter.

If yes, this is the problem.

If not, because all device have fixed IPs, the problem can be the wrong configuration of the nat, or wrong gateway on devices.

If both routers have same internal LAN IP, is another problem.

Yes, i have dhcp server on this router in office 1.
And i want it that way, that office 2 gets IP from dhcp in office 1.
Through eoip and it works ok. I want it to be one big LAN.

And obviously with only one DHCP server, you have only one Gateway.

I got that.

If you don’t put two separate DHCP servers (or other possible solutions) and block DHCP communications between the two parts of the LAN, you don’t resolve.

And this dhcp Network can be the same in office 1 as in office 2?
For example office 1 192.168.0.0/16
And office 2
192.168.0.0/16?
What if there will be same IP on both sites?
And will one Network be visible to second?

On 1st dhcp you use, on ip pool, for example 192.168.1.x/16 and on 2nd 192.168.2.x/16
On 1st dhcp you have 192.168.1.1 (/16) as gateway, but on 2nd you have 192.168.2.1 (/16) as gateway
Each office go on internet with proper gateway and bot LAN are fully connected, and act as one, except for dhcp/bootp services.

Thanks.
And how to block dhcp communication?
Using bridge filtr on eoip tunnel drop udp 67-68?

Is like you already understand how… :wink:

Might also be worth going to ip/dhcp-server/alerts and setting up something there to catch any leaks to make 100% sure your filter rules are set up correctly as well as notify you if anyone edits them/gets rid of them :slight_smile: