Change the default traffic route on Windows


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 if 10

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

And delete a created route with:
route -p delete

Originally from:


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

Comments are closed.