CMD - Set Default Gateway
Environment
Get interface name for change the default gateway of which one
- Microsoft Windows XP SP3
Get interface name for change the default gateway of which one
netsh interface show interfaceSet 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