![]() |
2 routers, 2 internet connections, 1 LAN possible?
ok here is my current setup.
1 x VM connection. 1 x ukonline connection. router for ukonline ip 192.168.1.254 router for VM ip 192.168.1.1 so both routers same subnet. laptop connected to ukonline router desktop pc 1 connected to VM router xbox360 connected to VM router. desktop pc 2 connected to nowhere at the moment isnt often used My theory is I can very easily get my laptop and desktop pc 1 talking to each other simply by connecting a cable between both routers, since they all on the same subnet thats all I need to do. am I right or is something else required? |
Re: 2 routers, 2 internet connections, 1 LAN possible?
It's been a while since I did any networking but I think this should work. I can't remember whether you need to connect the routers together with a cross over cable or a normal cable, but whatever happens, the routers will need to be on different sub-nets.
eg UK Online 192.168.1.* VM 192.168.2.* However, you might not want to connect 2 routers together that are facing the internet as you may find that the traffic is all routed to one connection or the other. It all depends on the abilities of the router and whether you can set up the routing yourself. |
Re: 2 routers, 2 internet connections, 1 LAN possible?
The problem will be both routers trying to issue IP addresses and set themselves as the default gateway.
You will need to manually set the configurations for each PC otherwise I don;t think you will be able to guarantee which device connects to which internet connection. JJ |
Re: 2 routers, 2 internet connections, 1 LAN possible?
Turn DHCP off on one of the routers so only one allocates IPs and manually set whichever gateway you wish to use on each PC/device (or write a handy .bat script to make this as easy as picking from a basic menu!). Using a static IP for each PC and turning off the automatic assignments is the way to go.
I have 4 internet gateways here running no problem on the same LAN, works perfectly. |
Re: 2 routers, 2 internet connections, 1 LAN possible?
Wrong, whichever router is allocating IP via DHCP will set itself as default gateway. Both machines need to be set to manual IP, both routers need DHCP disabled, and the default gateway you set on each device will determine it's internet routing.
|
Re: 2 routers, 2 internet connections, 1 LAN possible?
Quote:
|
Re: 2 routers, 2 internet connections, 1 LAN possible?
Quote:
If you connect them via their respective LAN ports your internal network will be just fine, apart from where the devices are to get their DHCP leases from - both devices would respond to a broadcast discovery message, and the potential for IP addressing conflict as both are handing out IP leases in total ignorance of devices taking leases from the other. You could turn DHCP off on one of the devices then you need to mess around with static assignment, not ideal. I could go on, but the point is don't do it. Where there are 2 routers on a single subnet they are running some kind of redundancy protocol such as HSRP to avoid the problems your set up would cause and devices aren't taking IP leases from the router. You would need a dual-WAN router in between your LAN and the two routers, with a switch connecting to that dual-WAN router if there weren't enough ethernet ports available for your needs on the dual-WAN device. This would also have the bonus of allowing you to load balance between the connections. |
Re: 2 routers, 2 internet connections, 1 LAN possible?
thanks for the replies, so not as simple as I thought then. I did have concerns about my devices been confused over which internet connection to use which was why I didnt just go ahead and do it.
|
Re: 2 routers, 2 internet connections, 1 LAN possible?
It /IS/ simple.
I have a working setup as I said, with no problems! Just connect your patch cable between the two routers and it's done! If you need dhcp capability just make sure only one router has it enabled (decide which connection you want as your 'main' one for devices to use as default). For other machines use static IP and manually set the gateway yourself or do as I have and have a script you can run to pick the gateway from a menu as and when you want to change it - simple! |
Re: 2 routers, 2 internet connections, 1 LAN possible?
sorry didnt read your posts properly.
so I am guessing when a dhcp client connects to a network it scans for dhcp servers, as long as only one dhcp server exists there is no problem. The router which has dhcp disabled I then manually configure the machines that use it. I am also guessing I can even connect a device to the router that wont be its gateway? so as to avoid unneeded long runs of cable. |
Re: 2 routers, 2 internet connections, 1 LAN possible?
Quote:
In answer to your second question, think of a router as two devices in one, the router/gatway/NAT section, and a switch connected to that. So, if you have two routers connected together, your actually connecting the two switch's together. So yes, device's connecting to one router will be able to use the gateway of the other. |
Re: 2 routers, 2 internet connections, 1 LAN possible?
Quote:
Yes that's right! :) |
Re: 2 routers, 2 internet connections, 1 LAN possible?
I did as theoldbill said and works well.
my wireless on the laptop was set to dhcp and originally went over VM, then I manually reconfigured the gateway and was over ukonline, so I can now interswitch connections without physical work, very good. also can now access both routers from this pc as well as my laptop. |
Re: 2 routers, 2 internet connections, 1 LAN possible?
Using the "ROUTE" command in Windows, you can even send traffic over different routes from the same machine, by adding a route which puts a certain IP range to the other (not default gateway) router as the next hop.
|
Re: 2 routers, 2 internet connections, 1 LAN possible?
yeah looks similiar to unix route so I can even assign both gateways to 0.0.0.0 so if one connection goes down the other auto takes over.
|
All times are GMT +1. The time now is 22:26. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum