Adding static route to your Windows Server 2003, XP or Vista.

Here is the command to list the network routes on your Windows 2003 server, XP, or Vista computer.

c:\route print

To add a static route to your server or computer use the route add command.

c:\route add -P 172.182.200.0 mask 255.255.255.0 172.182.200.1

In the above example a route to subnet 172.182.200.0 via gateway 172.182.200.1 is added. The -P option makes the route permanent, so it will stick even after rebooting the server or PC.

Be Sociable, Share!

2 comments for “Adding static route to your Windows Server 2003, XP or Vista.

  1. davinder singh
    March 1, 2012 at 6:58 am

    hi all,

    i have one window 2003 server which have two lan cards one is connect with my local (192.168.1.1) network & other one (202.164.56.30) is connect with my isp (internet service provider)

    can anybody tell me how to add route so that my local network can access or ping my isp network threw server

  2. s vasu
    February 25, 2012 at 2:47 am

    i have one pc i would like to connect two connections 1. local connection 2. internet how can i connect

Leave a Reply

Your email address will not be published. Required fields are marked *