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

Hello,

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?

Thanks.
Eyal ShoabiAsked:
Who is Participating?
 
masnrockCommented:
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.
1
 
AlanConsultantCommented:
Hi,

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.

Alan.
2
 
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?
0
Network Scalability - Handle Complex Environments

Monitor your entire network from a single platform. Free 30 Day Trial Now!

 
AlanConsultantCommented:
Hi,

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

Alan.
1
 
AlanConsultantCommented:
Not sure why you would delete this question when I have already spent time answering?
0
 
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.
0
 
AlanConsultantCommented:
Nothing above indicates a dual home setup - we have only discussed to machines, each with one NIC.
0
 
masnrockCommented:
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.
1
 
d0ughb0yPresident / 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.
1
 
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.
0
 
masnrockCommented:
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?
1
 
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.
0
 
AlanConsultantCommented:
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.

Thanks,

Alan.
0
 
AlanConsultantCommented:
Good options provided.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.