Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Add route

route ADD 192.168.65.0 MASK 255.255.255.0 192.168.64.1

route ADD 192.168.64.0 MASK 255.255.255.0 192.168.64.1



route delete x.x.x.x

route change
PowerShellhttps://docs.microsoft.com/en-us/powershell/module/nettcpip/new-netroute?view=windowsserver2022-ps

New-NetRoute -DestinationPrefix"192.168.64.10/32" -InterfaceIndex 3 -NextHop192.168.64.1

https://docs.microsoft.com/en-us/powershell/module/nettcpip/remove-netroute?view=windowsserver2022-ps

Remove-NetRoute -DestinationPrefix"192.168.64.10/32" -NextHop"192.168.64.1"
show commands

netstat -rn

route print