Changing the default gateway from the Windows commandline

By Druss , 17 December, 2020

The command to use is route. Use route --help and route print for information and then use the following command to change the gateway from 192.168.0.1 to 192.168.1.1.

route change 0.0.0.0 MASK 0.0.0.0 192.168.1.1

Good luck :)

All times are UTC. All content licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.