Setup 2 routers in same location when 1 pc use router A internet and second use Router B internet connection


I need to set up 2 routers in same network that are connected to 2 different internet providers, 1 of the PCs should get internet only from router A and the other PC should get internet from router B, both PC need to use same printer on the network and to be able to share files between them. What's the best way to configure this kind of network?

Eyal ShoabiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


Set PC1 to have a default gateway of Router1 and PC2 to have a default gateway of Router2.

You might want to use static IPs.

Eyal ShoabiAuthor Commented:
Thanks Alan, Physically I guess I need to connect one router to the other one? one router use 10.0.0.x the other use 192.168.1.x Should I set them up to same subnet?

Yes, you could plug them both into one switch and have their LAN sides on the same subnet.

Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Not sure why you would delete this question when I have already spent time answering?
Eyal ShoabiAuthor Commented:
The question may not be phrased correctly, I am able to work this with 2 network cards connected on same PC, I'm looking for setup with one network card.
Nothing above indicates a dual home setup - we have only discussed to machines, each with one NIC.
Alan's solution would work. However, you also additionally need to make sure that DHCP is turned off on at least one router (assuming you plan to connect some other machines and want them to use one particular connection).

There's no problem with the phrasing of your question. However, I would ask why the level of complexity to begin with. Wouldn't it be easier to have the shared files in one place, such as a NAS, and only have one internet connection? Seems like a waste to have 2 internet connections for a space with only 2 PCs.

What you failed to define is whether you plan to add more systems to that type of setup. I personally would take a different approach than what Alan suggested. So below I'm suggesting two approaches that would work also:

1) Replace BOTH of your routers with a small business unit (i.e. a Sonicwall) that can support multiple WAN connections. Then you can create rules. Upside: You consolidate to one unit. Downside: Upfront cost and complexity of creating rules forcing traffic to different internet connections (including needing to ensure that systems keep same IP address, etc)

Optional: Create 2 LANs, and have one PC on each. It doesn't matter which of the 2 LANs the printer resides on, as long as you make sure that the LANs have access to each. This approach gets rid of the need for static IP address for the computers.

2) Ensure that the 2 routers are in different IP ranges. Get a smart switch (a managed switch would work as well, but would cost you considerably more generally). Create VLANs on it, and allow inter-VLAN communication. Downside is the need to set up VLANs and ensuring communication across the two. Upside is no major changes at the routers or PCs themselves.
David SpigelmanPresident / CEOCommented:
Why on earth are you talking about dual-homing the machines and VLANs? Alan was right in the first place!

  • Both machines and routers can be in the same IP network. Even the same subnet.
  • Set up those two machines with static addresses in the subnet.
  • Manually set the default gateway on each machine. PC1 gets router A's address as default. PC2 gets router B's address as default.
  • The two machines will be able to see each other, and any other IP devices in the network, including networked printers. But PC1 will go to router A, and PC2 will go to router B, for their Internet connectivity.

I don't presume to know WHY this is important. If you say it is, I'll accept that. I also don't think the question was poorly worded. At least not enough that it should be deleted.
Eyal ShoabiAuthor Commented:
Thank you all for answering.

Will add some more clients to the network soon and also we need to be able to connect wireless to each of the routers for guests so disabling DHCP will make it more complicated to connect to the router that is disabled.

At the moment one router is set to 192.168.1.x and the other to 192.168.2.x clients connected with static address but we notice DNS errors from time to time, flushing the DNS solves the DNS errors.
Is the intention for staff to use one internet, and guests to use the other, then both sets of users share the printer and files?
Eyal ShoabiAuthor Commented:
It's not for guest purpose, all computers need to be able to share files and printer, 1 computer and possible more in future need to get out to the internet from specific router (which is monitored in service provider level) while the others use standard internet from the other router.
If you're going to be growing to an unknown scale, then I would use either of the suggestions that I provided. If you're only going to be having a small number of computers (10 or less), then Alan's solution is good enough. Regardless, I'm not a fan of dual homing.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hi Eyal,

Do you have the budget to upgrade to a new router like Masnrock suggested?

It won't be cheap (or at least, I suggest you don't go for cheap as you'll likely regret it down the track), but purchasing a single router that can handle dual WAN-side connections would be a good solution if you can afford it.


Good options provided.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.