Specifying a Default Gateway
My network setup isnt exactly ideal. I have two routers; one (192.168.1.1) provides wireless connectivity and the other (192.168.1.2) connects to the Internet. My wireless boxes can only connect to the Internet if their default gateway is set to 192.168.1.2, which is fine. But for some reason, doing exactly the same with Windows 7 doesnt work. Ipconfig tells me that I have two gateways, 192.168.1.1 and 192.168.1.2, which I think is causing the problem. Ipconfig on all my other boxes shows just the one (correct) gateway. Ive tried using route to remove the unwanted gateway listing but it tells me the requested operation requires elevation, which is strange because my account is an administrator type. Can anyone help me remove this gateway listing? Or might this not be the problem?
January 17th, 2009 7:29pm

Are you using two NICs in the Windows 7 computer?Also, when you addded your route, do you mean adding a pesistent static route to the route table using "route - p add..."?Shon
Free Windows Admin Tool Kit Click here and download it now
January 17th, 2009 7:37pm

I am using two NICs, but the connection troubleshooting thingy suggested I disable it nice to see it was actually giving useful help unlike previous Windows flavours!Id added 192.168.1.2 as the default gateway in the NIC properties. Doing that had created two default gateway entries. Both were listed under ipconfig, and static routes for both were visible through route print.Anyway, problem solved! I finally discovered the run as administrator option. That let me delete the extra static route windows had kindly created for me. Et voila! It works! P.S. Internet Explorer seems to run incredibly slowly yet Firefox is fine
January 17th, 2009 8:34pm

Yes you are only supposed to configure one NIC with a default gateway, I am not sure if that is well documentet or not.Exellent, glad you got it working.Shon
Free Windows Admin Tool Kit Click here and download it now
January 17th, 2009 10:43pm

I had only configured the one NIC with a gateway. This problem still persisted even with the other NIC fully disabled in the BIOS. It still amuses me that there were two default gateways.Unfortunately my solution seems to only be temporary; the second gateway reappears when the computer is restarted, so I have to manually remove it every bloody time. Oh well...
January 17th, 2009 10:51pm

What do I do when I want to set a different gateway than what is assigned by DHCP? When I go to properties and assign a static default gateway, doing ipconfig lists both gateways (the DHCP assigned gateway and the static gateway). I need to go through the static gateway when testing settings before applying those settings to the DHCP assigned gateway. Example: Gateway A :192.168.0.1 - DHCP assigned Gateway B :192.168.0.10 - static I normally go through 192.168.0.1 for everyday use at work. When we want to make a change to the firewall on 192.168.0.1 we make the changes on 192.168.0.10 first to test them out. So I go into tcp properties and change my gateway from 192.168.0.1 to 192.168.0.10. When I do this on a Windows 7 machine, and I do a tracert to make sure I'm going through 192.168.0.10 it still has me going through 192.168.0.1. For some reason (setting) the DHCP is overriding the static settings. I can do a work around of doing route delete 0.0.0.0 mask 0.0.0.0 192.168.0.1 to get rid of the gateway entry, but doing a /release and /renew or just rebooting will add the DHCP gateway back in and have it override the static entry. This was never a problem on my XP machine and kinda makes network testing a royal pain now that I'm on a Windows 7 machine.
Free Windows Admin Tool Kit Click here and download it now
December 16th, 2009 11:03pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics