How to add Static route in Windows

To add Static route in windows follow three simple steps are required-

  1. Open Command Prompt with administrative access.
  2. Use “route print” to check the routing
route print

3. To add a static route in Windows use below syntax.

route ADD destination_network MASK subnet_mask  gateway_ip metric_cost
route ADD 192.168.35.0 MASK 255.255.255.0 192.168.0.2
how to add static route in windows

The subnet_mask and metric_cost components are optional to the command. once you add a static route in windows, you can use command route print to view the routing in windows.

To delete a static route from windows use below commands

route delete destination_network

To delete the route with the destination network 192.168.35.0, all we’d have to do is type this command and hit Enter:

route delete 192.168.35.0

How to run tracetcp in windows

Leave a Reply

%d bloggers like this: