Community discussions

MikroTik App
 
rea1ity
just joined
Topic Author
Posts: 24
Joined: Mon Jun 24, 2013 10:24 am

How to use own gateway when it connected via EoIP?

Wed Jun 15, 2016 8:17 pm

Hi I configured EoIP between two routers.
One of router located Asia it called Router A and other one located US it called Router B.
And main router is Router A and they have same private networks as like 192.168.0.0/24.
So they are connected well but I want configure Router B to be using own Router B gateway when it directly connected computers are using internet except using gateway of main Router A.
So there have too many lag occured when Router B network computers are used internet.
Is there have resolved this issue?
then please let me know it would be very appreciated.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4051
Joined: Wed May 11, 2011 6:08 pm

Re: How to use own gateway when it connected via EoIP?

Wed Jun 15, 2016 8:42 pm

Many people ask for this same solution as you have - it's very bad network design.

The way to do it (don't do it, though) is to configure DHCP at both routers, use bridge filters to block DHCP (udp ports 67-68) on the tunnel interface, and configure your two servers with pools of addresses that do not overlap with each other.

You should use routed connectivity between these networks instead of bridged connectivity.
Use (example) 192.168.1.0/24 in China, and 192.168.2.0/24 in USA.
Use 192.168.255.0/30 on the tunnel, and route IP between the two sites across the tunnel.
When given a spoon,
you should not cling to your fork.
The soup will get cold.
 
rea1ity
just joined
Topic Author
Posts: 24
Joined: Mon Jun 24, 2013 10:24 am

Re: How to use own gateway when it connected via EoIP?

Wed Jun 15, 2016 10:17 pm

Many people ask for this same solution as you have - it's very bad network design.

The way to do it (don't do it, though) is to configure DHCP at both routers, use bridge filters to block DHCP (udp ports 67-68) on the tunnel interface, and configure your two servers with pools of addresses that do not overlap with each other.

You should use routed connectivity between these networks instead of bridged connectivity.
Use (example) 192.168.1.0/24 in China, and 192.168.2.0/24 in USA.
Use 192.168.255.0/30 on the tunnel, and route IP between the two sites across the tunnel.
Thank you for your wise answer.
It would be better network.
Now I recognized I was wrong configured.
 
jarda
Forum Guru
Forum Guru
Posts: 7602
Joined: Mon Oct 22, 2012 4:46 pm

Re: How to use own gateway when it connected via EoIP?

Wed Jun 15, 2016 10:47 pm

You even don't need to use an intermediate network to route through. Just put on one of the distant ends the ip of the local network and use it as gateway.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4051
Joined: Wed May 11, 2011 6:08 pm

Re: How to use own gateway when it connected via EoIP?

Wed Jun 15, 2016 11:45 pm

You even don't need to use an intermediate network to route through. Just put on one of the distant ends the ip of the local network and use it as gateway.
That works with IPIP tunnels and GRE, but I don't think you can do that with EoIP... (I could be wrong though)
When given a spoon,
you should not cling to your fork.
The soup will get cold.
 
jarda
Forum Guru
Forum Guru
Posts: 7602
Joined: Mon Oct 22, 2012 4:46 pm

Re: How to use own gateway when it connected via EoIP?

Thu Jun 16, 2016 7:27 am

I use this approach with l2tp tunnels and with direct connections over the wifi and ethernets.

Who is online

Users browsing this forum: accarda, jewelaziz, one2zero and 117 guests