How to use own gateway when it connected via EoIP?

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.

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.

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)

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