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.

About Andrew Lin

Hi, I have always wanted to creat a blog site but never had the time. I have been working in Information Technology for over 15 years. I specialize mainly in networks and server technologies and dabble a little with the programming aspects. Andrew Lin

View all posts by Andrew Lin →