From 47076b24d3ea7d86b1b44d35d7fcfa07ca2f9530 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Sat, 27 Jun 2026 16:23:32 +0200 Subject: [PATCH] =?UTF-8?q?fix(netplan):=20mochabin=20=E2=80=94=20copper?= =?UTF-8?q?=20eth2=20as=202nd=20DHCP=20WAN=20candidate,=20out=20of=20br-la?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The image labelled eth0 (SFP+) as the only WAN; the single copper RJ45 (eth2/mvpp2-2) was trapped in br-lan, so an operator/uplink arriving on copper got no lease. Make both eth0 (SFP+) and eth2 (copper) DHCP WAN candidates (whichever is cabled gets the lease); br-lan keeps the switch LAN ports. Verified live on the c3box reference install. --- board/mochabin/netplan/00-secubox.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/board/mochabin/netplan/00-secubox.yaml b/board/mochabin/netplan/00-secubox.yaml index 39602939..0f58ac71 100644 --- a/board/mochabin/netplan/00-secubox.yaml +++ b/board/mochabin/netplan/00-secubox.yaml @@ -6,16 +6,21 @@ network: renderer: networkd ethernets: - # WAN — connecté à l'opérateur + # WAN candidate (SFP+, eth0) — connecté à l'opérateur via fibre/module SFP. eth0: dhcp4: true dhcp6: false optional: true - # LAN — ports GbE (DSA ou directs selon la config switch) + # LAN — port GbE switch (DSA 88E6341) eth1: optional: true + # WAN candidate (RJ45 cuivre, eth2 = mvpp2-2). Sur MOCHAbin le seul RJ45 + # direct ; sert d'uplink quand l'opérateur arrive en cuivre. Le port WAN + # câblé (eth0 SFP+ OU eth2 cuivre) obtient le bail DHCP ; l'autre reste idle. eth2: + dhcp4: true + dhcp6: false optional: true eth3: optional: true @@ -31,7 +36,7 @@ network: bridges: # Bridge LAN br-lan: - interfaces: [eth1, eth2, eth3, eth4] + interfaces: [eth1, eth3, eth4] addresses: [192.168.1.1/24] dhcp4: false parameters: