add route windows


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 -NextHop 192.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"
ping and traceroute

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

Test-NetConnection -traceroute x.x.x.x
show commands

netstat -rn

route print