Change the default traffic route on Windows

Hello,

If you have multiple network cards, multiple connections to internet or you are using a VPN and you want that some of your traffic goes out by  using  a specific interface; then you will need the “route” command!

As easy as this:
route -p add [destiny.ip] [gateway] if [interface.number]

For example: (Interface number is optional?)
route -p add 209.68.27.16 192.168.1.1 if 10

You can get the interface number with this command:
route PRINT -4

And delete a created route with:
route -p delete 209.68.27.16

Originally from:
http://superuser.com/questions/457020/openvpn-only-route-a-specific-ip-addresses-through-vpn

Regards,
AC.

This entry was posted in Medium Technical and tagged , , , , . Bookmark the permalink.

Comments are closed.