I have installed openvpn client on my pc (windows 7) and I have two tap network adapters. In this way I can open two openvpn connections at the same time. What I would like to understand is how it's decided each connection I open which tap adapter will be chosen. The first available network adapter is chosen or some other logic exists?
Asked
Active
Viewed 654 times
1 Answers
0
The OS will choose the route (and thus interface) with the lowest metric. To tweak which interface is used you can push a route with a particular metric; for example
push route "10.10.10.0 255.255.255.0 10.0.0.2 1"
from the man page
--route network/IP [netmask] [gateway] [metric]

Friedrich 'Fred' Clausen
- 2,388
- 23
- 26
-
And in the default case, with same metrics, i'm not sure which one wins. Maybe the first that appeared in the routing table. – LatinSuD Sep 09 '14 at 12:20