CMD - Set Default Gateway

Environment
  • Microsoft Windows XP SP3
Procedures
Get interface name for change the default gateway of which one
netsh interface show interface
Set the default gateway of the interface, which should be the one shown by previous command, e.g. "Local Area Connection"
netsh interface ip set address "Local Area Connection" gateway=W.X.Y.Z gw=1