Community discussions

MikroTik App
 
hurymak
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 06, 2014 1:31 pm

2 isps, eoip question

Fri Oct 07, 2022 3:55 pm

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?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 9596
Joined: Tue Feb 25, 2014 12:49 pm
Location: 🇮🇹, my 💔 is in 🇺🇦

Re: 2 isps, eoip question

Fri Oct 07, 2022 4:18 pm

Why?
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.
 
hurymak
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 06, 2014 1:31 pm

Re: 2 isps, eoip question

Fri Oct 07, 2022 5:38 pm

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.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 9596
Joined: Tue Feb 25, 2014 12:49 pm
Location: 🇮🇹, my 💔 is in 🇺🇦

Re: 2 isps, eoip question

Fri Oct 07, 2022 6:20 pm

And obviously with only one DHCP server, you have only one Gateway.
I want it to be one big LAN.
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.
 
hurymak
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 06, 2014 1:31 pm

Re: 2 isps, eoip question

Sat Oct 08, 2022 10:33 am

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?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 9596
Joined: Tue Feb 25, 2014 12:49 pm
Location: 🇮🇹, my 💔 is in 🇺🇦

Re: 2 isps, eoip question  [SOLVED]

Sat Oct 08, 2022 10:54 pm

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.
 
hurymak
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 06, 2014 1:31 pm

Re: 2 isps, eoip question

Sun Oct 09, 2022 8:59 am

Thanks.
And how to block dhcp communication?
Using bridge filtr on eoip tunnel drop udp 67-68?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 9596
Joined: Tue Feb 25, 2014 12:49 pm
Location: 🇮🇹, my 💔 is in 🇺🇦

Re: 2 isps, eoip question

Sun Oct 09, 2022 2:43 pm

Is like you already understand how... ;)
 
AidanAus
Member Candidate
Member Candidate
Posts: 156
Joined: Wed May 08, 2019 7:35 am
Location: Australia
Contact:

Re: 2 isps, eoip question

Tue Oct 11, 2022 8:19 am

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 :)

Who is online

Users browsing this forum: No registered users and 12 guests