How to add static routes in Windows Server 2008 R2

Download PDF

– Open CMD (elevated only – Run As Administrator)
– To display existing routes type: route print

EXAMPLE:
route add 1.1.1.10 mask 255.255.255.255 10.0.1.1
Where first destination IP, mask if single IP than /32 (.255) and then the next hop (other server)

So the example would be:
route add 192.168.10.15 mask 255.255.255.255 192.168.10.254

– To delete the route: route delete 192.168.10.15

IF YOU WISH TO SPECIFY THE INTERFACE ROUTE WILL USE DO THIS:
route add 192.168.10.15 mask 255.255.255.255 192.168.10.254 if 1 (where 1 is the interface number). You can see the interface numbers when route print.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply