Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | 2 routers, 2 internet connections, 1 LAN possible?

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Networking
Register FAQ Community Calendar

2 routers, 2 internet connections, 1 LAN possible?
Reply
 
Thread Tools
Old 20-05-2010, 01:34   #1
Chrysalis
cf.mega poster
 
Join Date: Sep 2003
Services: Gig1, Hub 5
Posts: 12,046
Chrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronze
Chrysalis is cast in bronze
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?
Chrysalis is offline   Reply With Quote
Advertisement
Old 20-05-2010, 15:38   #2
Tali
cf.addict
 
Join Date: Sep 2007
Location: West Mids
Posts: 286
Tali has a spectacular aura about themTali has a spectacular aura about themTali has a spectacular aura about themTali has a spectacular aura about them
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.
Tali is offline   Reply With Quote
Old 20-05-2010, 16:10   #3
jamiefrost
cf.geek
 
Join Date: Feb 2004
Services: V+, XL TV and Phone XXL BB
Posts: 812
jamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpackjamiefrost has a very nice sixpack
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
jamiefrost is offline   Reply With Quote
Old 20-05-2010, 16:55   #4
theoldbill
Guest
 
Services: 100mb VM (R27T2) & 2x 8mb Ipstream MAX dsl (Plusnet, IDnet)
Posts: n/a
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.
  Reply With Quote
Old 20-05-2010, 17:16   #5
Lord Nikon
Inactive
 
Join Date: Jun 2003
Location: NW UK
Posts: 3,546
Lord Nikon has a bronze arrayLord Nikon has a bronze arrayLord Nikon has a bronze array
Lord Nikon has a bronze arrayLord Nikon has a bronze arrayLord Nikon has a bronze arrayLord Nikon has a bronze arrayLord Nikon has a bronze arrayLord Nikon has a bronze arrayLord Nikon has a bronze arrayLord Nikon has a bronze arrayLord Nikon has a bronze arrayLord Nikon has a bronze arrayLord Nikon has a bronze array
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.
Lord Nikon is offline   Reply With Quote
Old 20-05-2010, 17:40   #6
theoldbill
Guest
 
Services: 100mb VM (R27T2) & 2x 8mb Ipstream MAX dsl (Plusnet, IDnet)
Posts: n/a
Re: 2 routers, 2 internet connections, 1 LAN possible?

Quote:
Originally Posted by Lord Nikon View Post
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.
On my LAN I have dynamic hosts so need one router with DHCP that's why I said leave one with it enabled - or were you correcting somebody else's post? Either way it works for me and I'm only trying to help
  Reply With Quote
Old 20-05-2010, 18:25   #7
Ignitionnet
Inactive
 
Join Date: Jun 2008
Location: Leeds, West Yorkshire
Age: 45
Posts: 13,996
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Re: 2 routers, 2 internet connections, 1 LAN possible?

Quote:
Originally Posted by Chrysalis View Post
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?
Oh they'll see each other easily enough, just not whatever is behind each one. Remember that they will both perceive themselves as being the gateway to the network 192.168.1.0/24 so will look for a directly connected device.

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.
Ignitionnet is offline   Reply With Quote
Old 21-05-2010, 02:43   #8
Chrysalis
cf.mega poster
 
Join Date: Sep 2003
Services: Gig1, Hub 5
Posts: 12,046
Chrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronze
Chrysalis is cast in bronze
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.
Chrysalis is offline   Reply With Quote
Old 21-05-2010, 04:50   #9
theoldbill
Guest
 
Services: 100mb VM (R27T2) & 2x 8mb Ipstream MAX dsl (Plusnet, IDnet)
Posts: n/a
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!
  Reply With Quote
Old 21-05-2010, 06:07   #10
Chrysalis
cf.mega poster
 
Join Date: Sep 2003
Services: Gig1, Hub 5
Posts: 12,046
Chrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronze
Chrysalis is cast in bronze
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.
Chrysalis is offline   Reply With Quote
Old 21-05-2010, 08:11   #11
Jon T
cf.mega poster
 
Join Date: Jun 2003
Location: Mansfield, Notts
Age: 44
Services: Virgin Media Telephone and 100Mb broadband, Sky Q
Posts: 1,996
Jon T has reached the bronze age
Jon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze ageJon T has reached the bronze age
Re: 2 routers, 2 internet connections, 1 LAN possible?

Quote:
Originally Posted by Chrysalis View Post
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.
A DHCP client will transmit a "DHCP discover" message to try and find any DHCP servers on the network, any DHCP servers on the network able to giv out an IP will then back an "offer", multiple DHCP servers may respond, so the client will then send a reqeust to one of the servers that responded. When a DHCP server recieves this request, IP configuration in then transmitted to the host.

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.
Jon T is offline   Reply With Quote
Old 21-05-2010, 08:31   #12
theoldbill
Guest
 
Services: 100mb VM (R27T2) & 2x 8mb Ipstream MAX dsl (Plusnet, IDnet)
Posts: n/a
Re: 2 routers, 2 internet connections, 1 LAN possible?

Quote:
Originally Posted by Chrysalis View Post

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.

Yes that's right!

  Reply With Quote
Old 22-05-2010, 06:20   #13
Chrysalis
cf.mega poster
 
Join Date: Sep 2003
Services: Gig1, Hub 5
Posts: 12,046
Chrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronze
Chrysalis is cast in bronze
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.
Chrysalis is offline   Reply With Quote
Old 23-05-2010, 17:51   #14
Matth
Inactive
 
Join Date: Mar 2004
Services: BB:M, TV:XL, Phone:M, Loyalty
Posts: 2,516
Matth has reached the bronze age
Matth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze age
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.
Matth is offline   Reply With Quote
Old 24-05-2010, 06:21   #15
Chrysalis
cf.mega poster
 
Join Date: Sep 2003
Services: Gig1, Hub 5
Posts: 12,046
Chrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronzeChrysalis is cast in bronze
Chrysalis is cast in bronze
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.
Chrysalis is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:54.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.