Adding a permanent network route in Windows

It’s not that common to add a network route in windows, but if you have more than one network interface and there are many networks hidden over there, you will need to do it

The syntax is quite simple

route -p add the_network mask the_netmask the_gateway metric the_metric

As an example, we will use the following information:

the_network 192.168.254.144
the_netmask 255.255.255.240
the_gateway 192.168.203.158
the_metric 10

And the resulting command is:

route -p add 192.168.254.144 mask 255.255.255.240 192.168.203.158 metric 10

-p means the network will be added permanently in windows registry, if you want to play with this new network until the next reboot, don’t use it.
If you do not what to do with metric , simply use 10

To check the routing table, use the command

route print

No Comments yet »

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.