You can view the routing table or add static route on a server using route.exe command.
The following command displays all the static and dynamic routes on a system:
Route print
see figure-1 for a sample output
![[Network-Tutorial]-How-to-view-and-add-static-routes-1 [Network-Tutorial]-How-to-view-and-add-static-routes-1](/./images/stories/windows/[Network-Tutorial]-How-to-view-and-add-static-routes-1.gif)
Figure-1 Route Print output
The syntax for adding a temporary static route is:
ROUTE [-f] [-p] [command [destination] [MASK netmask] [gateway] [METRIC metric] [IF interface]
Here is an example:
route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
To delete a route :
Route delete 157.0.0.0