mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-23 02:51:55 +00:00
net: add metric to static IP address entries
The VPN interface is configure with a routing metric of 199. If VPN mode is enabled and we have static IP address configured (which is what we do on Windows) then all traffic would still go via eth0 and not, as expected, via the VPN interface. With this PR we set the metric for eth1 to 200, thus, if VPN mode enabled traffic will be routed over the VPN interface. This fix is a bit Uggh, but it's the simplest way to apply this late in the release cycle without requiring re-run of all OS X tests. We should fix this properly after this release. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
parent
14ace6d526
commit
6c8bcb150a
@ -37,6 +37,7 @@ start() {
|
||||
echo " address ${IP}" >> /etc/network/interfaces
|
||||
echo " netmask ${MASK}" >> /etc/network/interfaces
|
||||
echo " gateway ${GW}" >> /etc/network/interfaces
|
||||
echo " metric 200" >> /etc/network/interfaces
|
||||
fi
|
||||
|
||||
eend 0
|
||||
|
Loading…
Reference in New Issue
Block a user