From a3f10d9841d5684d5445121bb370e19c6536f8c9 Mon Sep 17 00:00:00 2001 From: David Scott Date: Mon, 18 Apr 2016 18:45:32 +0100 Subject: [PATCH 1/2] In a dual NIC configuration, use eth1 for routing The NIC with the lowest metric is used for routing, while the NIC with the highest index is used for DNS. Set the metric of eth1 to 199, so it is higher-priority than eth0, so we use eth1 for everything in a dual NIC configuration. Signed-off-by: David Scott --- alpine/etc/network/interfaces | 1 + 1 file changed, 1 insertion(+) diff --git a/alpine/etc/network/interfaces b/alpine/etc/network/interfaces index 79c0fa716..786503a5e 100644 --- a/alpine/etc/network/interfaces +++ b/alpine/etc/network/interfaces @@ -8,3 +8,4 @@ iface eth0 inet dhcp auto eth1 iface eth1 inet dhcp udhcpc_opts -T 1 -A 3 + metric 199 From 012c212b1b059b00ac2fcd8045d4ad7c485dde52 Mon Sep 17 00:00:00 2001 From: David Scott Date: Mon, 18 Apr 2016 18:47:49 +0100 Subject: [PATCH 2/2] Revert "mdnstool: add support for a "hybrid" network mode" This reverts commit 67205f62d9802d0e2add0482a8331cfd71ac45fb. --- alpine/packages/mdnstool/etc/init.d/mdnstool | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/alpine/packages/mdnstool/etc/init.d/mdnstool b/alpine/packages/mdnstool/etc/init.d/mdnstool index 031324973..8de55f952 100755 --- a/alpine/packages/mdnstool/etc/init.d/mdnstool +++ b/alpine/packages/mdnstool/etc/init.d/mdnstool @@ -17,16 +17,11 @@ start() hostname -F /etc/hostname export HOSTNAME=$(hostname -s).local. - INTF=eth0 - if [ "$(mobyconfig get network)" = "hybrid" ]; then - INTF=eth1 - fi - start-stop-daemon --start --quiet \ --background \ --exec /sbin/mdnstool \ --make-pidfile --pidfile ${PIDFILE} \ - -- -if ${INTF} -hostname ${HOSTNAME} + -- -if eth0 -hostname ${HOSTNAME} eend $? "Failed to start mDNS server" }