2 routers 1 switch

maxknight

Honorable
Nov 16, 2013
1
0
10,510
i have 2 routers with two different internet connection connected to 1 switch.problem is when i used router 1 on games, it seems that everytime someone will use my second connection which is router 2 for surfing, my games got lag.im confused because i have two connection with two different gateway. one is 192.168.1.1 and the other one is 192.168.1.2...is there something wrong with the switch? i mean 3 months ago it run smoothly.and now it seems that all the time this lag keeps bothering me everytime someone will use my connection 2...what can you suggest?
 
It should work fine, even the cheapest switches on the market claim to be able to run all ports at full speed simultaneously.

I would suspect data is somehow crossing and using the wrong router. I am assuming you are using assigned ip and gateway manually so it is hard to say how that can happen.

To test you could do something not recommended. Change the subnet on the 2nd router and overlap the networks. You would use say 192.168.2.x for your second network and of course assign the router on the second network 192.168.2.1 or something. This is the poor mans vlan. Because they use different broadcast address the networks cannot see each other or communicate even though they flow over the same cable/switch.


If this still happens then it has to be broadcast traffic overloading either the router or your PC. You will need to run something like wireshark on your pc to see if you can figure out what is doing it.


You could also as a test on router 1 only allow traffic from a single ip address to pass if it has any firewall options.
 

nuix0923

Honorable
Nov 19, 2013
80
0
10,660
take the switch out of the picture? why do you need to overlap 2 routers(2 different broadcasts) to 1 switch? what am i misunderstanding here? details plz!
 

sg4rb0

Honorable
Dec 4, 2012
214
0
10,760


Probably the safest way, considering the capabilities of your hardware, is just to setup 2 different default gateway IP addresses. So set router 1 to use 192.168.0.1/24, and router 2 to use 192.168.1.1/24. Then you can hard-set half of the client PCs to use 192.168.0.1 as their gateway address, and the other half to 192.168.1.1.

You will also have to add a route on each router. So router 1 needs a static route to 192.168.0.0/24 via the interface connecting to the switch, and router 2 needs a static route to 192.168.1.0/24 via the switch.

Good luck!