2 routers, 1 switch

uditseth18

Reputable
Jan 3, 2015
4
0
4,510
Right now i have two Internet connections at my office, connected with two routers.
So what i need is to use a switch and connect those two routers and six desktops, such that i can switch my devices between the two networks without doing it manually(plugging LAN cables).
Is there any way?

Thanks for your support.
 
Solution
The way a computer knows how to get to the internet is with the default gateway.

This is either set by the DHCP server or manually in the TCPIP setting for the nic card. You have 2 ways to accomplish this. You can either go in and set static ip and gateway settings in the tcpip settings in the nic card or you can use the route command.

I tend to like to use the route command. Launch a cmd window in admin mode and type

ROUTE DELETE 0.0.0.0
ROUTE ADD 0.0.0.0 mask 0.0.0.0 192.168.1.2

It will change it to the secondary connection. Just do the same using 192.168.1.1 to go to the other router.
The simplest way is to assign one router the standard say 192.168.1.1 gateway and let it be the DHCP server. This means it will use that router as the main connection to the internet. The other router assign say 192.168.1.2 and make sure you turn off dhcp on this router and exclude this ip from the first routers pool.

So to move your pc you either use the ROUTE command from the CMD prompt to replace the 0.0.0.0 route or you change the gateway ip in the network settings on the devices.
 

uditseth18

Reputable
Jan 3, 2015
4
0
4,510


First of all, thanks for your reply.I have some queries about the layout,
I am little bit confused on how should I be able to use 2nd Internet connection?
 
The way a computer knows how to get to the internet is with the default gateway.

This is either set by the DHCP server or manually in the TCPIP setting for the nic card. You have 2 ways to accomplish this. You can either go in and set static ip and gateway settings in the tcpip settings in the nic card or you can use the route command.

I tend to like to use the route command. Launch a cmd window in admin mode and type

ROUTE DELETE 0.0.0.0
ROUTE ADD 0.0.0.0 mask 0.0.0.0 192.168.1.2

It will change it to the secondary connection. Just do the same using 192.168.1.1 to go to the other router.
 
Solution

TRENDING THREADS