Drop 'gateway' directive from campus host interfaces

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 <fabric-gw>' and the fabric default wins.
This commit is contained in:
2026-04-23 16:45:54 +00:00
parent 46c68b42bd
commit 8a725ab5fe
2 changed files with 0 additions and 2 deletions

View File

@@ -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