Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In our office we have windows xp and 8 pc connected in network.We are using about 4 internet connections. But in pc only one default gateway is set.But if one internet connection is failed then internet will not be available and user has to change default gateway to another and try.

So instead of is there any method of adding all gateway and if one does not work(internet connection not available) other will take over it.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Windows most centrally supports "Dead Gateway Detection", however all of the gateways CAN NOT be connected to disjointed networks. That means if I send send a packet to 198.252.206.16 (the ip of superuser.com) to any gateway on the list the packet must be able to get through. If any of the gateways are their own special private network's you can not use them as one of the "Default Gateways" (But you can statically add a route with the route command).

Simply open the TCP/IP settings and click on the Advanced button

enter image description here

From there you can add as many gateways as you want.

enter image description here

If you have "better" gateways than others you can manually set the metric for each gateway, windows will attempt to use lower metric gateways first, here is a list of the values windows puts in if you leave the metric on "automatic metric"

share|improve this answer
    
Your solution works fine.But if one gateway does not work then it selects another gateway with higher metric.But if higher metric gateway does not work after sometime (and lower metrics starts working) then it does come back to lower metric gateway. Also if a gateway fails then it takes about 2 minutes to switch to another. –  IT researcher Sep 18 '13 at 7:02
    
That is correct, if you want better gateway handling then what XP can provide you will need to put a single router (perhaps a Linux box or other managed router) that acts a gateway for the whole network, then use whatever configuration that router supports for multiple gateways and it will choose the correct gateway to get on to the internet for the rest of the computers behind it. –  Scott Chamberlain Sep 18 '13 at 7:14
    
Can we configure only default gateway IP using "Routeadd" command? Here IP address for PC is fixed, and subnet mask too. Only the default gateway should change based on the command we pass. Is der any option like this? –  IT researcher Sep 18 '13 at 7:48
    
You could make some sort of daemon process that would hop gateways faster than the default behavior. –  Scott Chamberlain Sep 18 '13 at 13:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.