From 8a725ab5fe7d0ea0b0b1d8dc327ad38af120294a Mon Sep 17 00:00:00 2001 From: Damien Date: Thu, 23 Apr 2026 16:45:54 +0000 Subject: [PATCH] Drop 'gateway' directive from campus host interfaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BusyBox ifup translates 'gateway X' into 'ip route add default via X' and aborts the whole ifup run with RC=1 when that command fails with 'File exists' — which always happens on first boot because the docker management bridge has already installed its own default via eth0. As a result the 'post-up ip route replace default' was never executed and the host kept the management default. Remove the 'gateway' line so ifup only runs the idempotent 'post-up ip route replace default via ' and the fabric default wins. --- hosts/campus-host1_interfaces | 1 - hosts/campus-host2_interfaces | 1 - 2 files changed, 2 deletions(-) diff --git a/hosts/campus-host1_interfaces b/hosts/campus-host1_interfaces index c12d792..cfc500a 100644 --- a/hosts/campus-host1_interfaces +++ b/hosts/campus-host1_interfaces @@ -5,5 +5,4 @@ auto eth1 iface eth1 inet static address 10.60.60.101 netmask 255.255.255.0 - gateway 10.60.60.1 post-up ip route replace default via 10.60.60.1 diff --git a/hosts/campus-host2_interfaces b/hosts/campus-host2_interfaces index 64ab3b9..57e2c66 100644 --- a/hosts/campus-host2_interfaces +++ b/hosts/campus-host2_interfaces @@ -5,5 +5,4 @@ auto eth1 iface eth1 inet static address 10.60.70.102 netmask 255.255.255.0 - gateway 10.60.70.1 post-up ip route replace default via 10.60.70.1