Change gateway on windows 7 from command line

networkingwindows 7

I am trying to find how to change the default gateway on a Windows 7 machine from the DOS prompt.

Thanks!

Best Answer

Not sure if things have changed with Windows 7 but on XP you could just do something like this.

route add 0.0.0.0 mask 0.0.0.0 192.168.0.1