Question:
How to change default Gateway?
Ajju
2009-05-25 04:01:34 UTC
For example i have two Default gateway. one is 192.168.0.1 and second is 192.168.1.1, Some PC having default gateway 192.168.0.1 and some have 192.168.1.1 and if i do view network connection from one pc which has default gateway 192.168.0.1 , iam only find those PCs having default gateway 192.168.0.1 and same for those who has 192.168.1.1 default gateway. What i want to do i want to put all PCs on single default gateway(192.168.1.1) . IS there any solution for the same????

and every PC getting its IP address automatically for example if a PC has default gateway 192.168.1.1 its ip address is 192.168.1.10 and if a PC has default gateway 192.168.0.1 its ip address is 192.168.0.23 ..

so iam looking for a good solution

Thanks very much
Five answers:
Tracy L
2009-05-25 05:41:20 UTC
Well, you have two routers. One with 192.168.1.1 and one with 192.168.0.1 those HAVE to be the gateways. If you want them to be able to "SEE" each others networks, you have to change the SUBNET mask so they are in the same network. You don't change the gateways,just the subnet mask.

If you change to a 255.255.254.0 subnet mask then all addresses from 192.168.0.1 to 192.168.1.255 will be in the same network.

A 255.255.255.0 subnet = 256 addresses only.

Check the following two sites for assistance

http://www.subnet-calculator.com/subnet.php?net_class=B

and

http://learntosubnet.com



The other option is to use RIP one on each router to set the other routers network into the routing table... which is probably a better solution. Routing tables are available on most routers.



Depending on the number of machines and the reasons for two networks, you could also set the second router as a simple bridge so that all run on the same IP range.



Since you didn't say.. I will leave you with both options.
2016-05-27 20:39:23 UTC
I think you meant to type a different IP address for the second gateway. You wrote that both are 192.168.0.1 above. Anyway... easiest solution would be: a) assign a unique address on the same subnet to each of the routers. b) disable DHCP on the second router. Make sure the first router's DHCP knows that the second router owns the IP address you gave it, and will never hand it out to, say, your PC. c) add static routes on the first router, using it as a second default gateway. In other words, route 0.0.0.0/0 through the second router, but with a high metric, so the normal default route is used in preference. d) Route traffic for the second company's DNS servers through the second connection. Otherwise, their DNS servers won't let you access them. e) Make sure your router and/or computers will use the secondary connection's DNS if the first connection's DNS isn't available. You've given WAY too little information (router make/model, internet companies, operating systems, computers in use, etc.) for a truly step by step guide, but hopefully this will get you going quickly. p.s.: if you're going to pay for two broadband connections, you should look into getting them bonded. You'd be much better off with a router like a Draytek Vigor. You can plug a 3g USB modem into these, and if the broadband goes down, they'll dial in over the mobile connection instead.
2009-05-25 04:30:18 UTC
Don't try to change the default gateway at any time as it may lead to temporary disconnection of internet which i had suffered. Then also if you wish to change it go to Control Panel > Network Connections > right click on the Local Area Connection icon > Select Properties > in the window that opens double click the Internet Protocol option in the list > Select Use the following IP address and give the values of IP address and default gateway. Subnet mask value will appear as it is > Click on OK.
vamsi krishna
2009-05-25 04:27:27 UTC
ip address must differ from other pc, but default gateway can be same. if you are using system with net sharing then you have to face this default gateway problem. when you share net to others then on all other system the default gateway to be 192.168.0.1, but ips must differ as you mention
heishman
2016-10-04 18:16:59 UTC
192.168 0.1 Default Gateway


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...