Sign in with
Sign up | Sign in
Your question
Solved

2 Net connections used at different times automatically

Last response: in Networking
Share
March 30, 2014 9:34:42 PM

Hi,

This might sound strange but I got 2 separate service providers. One of them offers unlimited usage between specified hours & the other is a limited service.

I am not sure that this can be done with load balancing (I might be wrong though).

Can anyone suggest me how this can be accomplished automatically (I have to swap RJ45 cables right now) ?

Thanks in advance

More about : net connections times automatically

March 31, 2014 9:31:36 AM

You can tell windows which adapter takes priority but you can not make it change the priority bassed on what time a day it is.

You can however create a batch file that will dissable adapter 1 and enable adapter 2 and then use task scheduler to have it autorun at the specified time.

If you have windows 7 you can use this format for the command:
netsh interface set interface "Local Area Connection" DISABLED

You will need to replace the quoted text with the name of the adapter..
m
0
l
March 31, 2014 9:44:08 AM

Mostly your issue I suspect is to get them physically connected all the time since no software can fix that. If you have 2 ethernet ports you can mess with the turning the adapters on and off. If not you will need to get creative. You will for example need to plug one router into the other one and assign the second a different IP. For example 192.168.1.1 and 192.168.1.2. You could then manipulate the 0.0.0.0 route with the ROUTE command changing which gateway it uses to get to the internet.
m
0
l
Related resources
March 31, 2014 9:49:47 PM

boosted1g said:
You can tell windows which adapter takes priority but you can not make it change the priority bassed on what time a day it is.

You can however create a batch file that will dissable adapter 1 and enable adapter 2 and then use task scheduler to have it autorun at the specified time.

If you have windows 7 you can use this format for the command:
netsh interface set interface "Local Area Connection" DISABLED

You will need to replace the quoted text with the name of the adapter..


bill001g said:
Mostly your issue I suspect is to get them physically connected all the time since no software can fix that. If you have 2 ethernet ports you can mess with the turning the adapters on and off. If not you will need to get creative. You will for example need to plug one router into the other one and assign the second a different IP. For example 192.168.1.1 and 192.168.1.2. You could then manipulate the 0.0.0.0 route with the ROUTE command changing which gateway it uses to get to the internet.


Can you suggest a decent router to which I can connect two ethernet ports ?
m
0
l
April 1, 2014 5:27:19 AM

They make a number of dual wan routers but the inexpensive ones tend be rather limited for the amount of money you have to pay. Of course almost any commercial cisco or juniper router can easily have multiple wan connections and is extremely flexible in its abilities.

I would buy something you can load dd-wrt on. It can run multiple wan and although somewhat tedious can do almost anything a commercial router can do.
m
0
l
April 2, 2014 8:10:54 AM

bill001g said:
They make a number of dual wan routers but the inexpensive ones tend be rather limited for the amount of money you have to pay. Of course almost any commercial cisco or juniper router can easily have multiple wan connections and is extremely flexible in its abilities.

I would buy something you can load dd-wrt on. It can run multiple wan and although somewhat tedious can do almost anything a commercial router can do.


Any model no you can suggest
m
0
l
April 2, 2014 2:05:52 PM

I know the asus ac68u has the feature but I think many of the older asus router also have this if you get the latest firmware....I don't know exactly though. Most the asus routers can load dd-wrt so its a pretty safe bet.

If you are looking commercial a cisco 2811 with a extra hwic- 4esw switch card can be had on ebay for a couple hundred dollars. You could also but any manged switch infront. The key is the 2811 only has 2 ethernet ports. Of course they sell other models but if you are willing to pay $500 a small juniper srx firewall is going to be a better buy.
m
0
l
April 3, 2014 4:56:31 AM

bill001g said:
I know the asus ac68u has the feature but I think many of the older asus router also have this if you get the latest firmware....I don't know exactly though. Most the asus routers can load dd-wrt so its a pretty safe bet.

If you are looking commercial a cisco 2811 with a extra hwic- 4esw switch card can be had on ebay for a couple hundred dollars. You could also but any manged switch infront. The key is the 2811 only has 2 ethernet ports. Of course they sell other models but if you are willing to pay $500 a small juniper srx firewall is going to be a better buy.


I have a budget of $100 max & I am not looking for commercial features.
m
0
l

Best solution

April 3, 2014 5:29:34 AM

When you talk that low a price you are going to have to go the dd-wrt method only fairly expensive routers have advanced features. It is not exactly hard you just have to read a lot of stuff and follow direction carefully. A mid prices tpilnk like the wdr4300 would be your best bet for dd-wrt but most tplink routers support dd-wrt if you link other models better.

Even if you use a router to run dd-wrt you will likely have to write your only script to cause it to change. If you are good at unix it is a simple cron job to schedule the script execution. dd-wrt can do everything you want but it needs to be thought of as a toolbox that you need to know how to use all the tools.

You can find dual wan routers by searching for that term but I have never seen one under $100.

I would go back to my first suggestion. Change the IP lan ip on the router to say 192.168.0.1 and 192.168.0.2 Plug the 2 routers together on their lan ports. Let the 192.168.0.1 do dhcp and disable the dhcp on the 192.168.0.2 router. This will make your 192.168.0.1 router be the main router. Now to switch you would do what you did before you would in effect unplug the ethernet cable but you do with a software command. You issue ROUTE DELETE 0.0.0.0 and then ROUTE ADD 0.0.0.0 mask 0.0.0.0 192.168.0.x depending which router you want to use. You could in theory automate this command with simple batch files.

Share
!