From a2153e44ef9e3ad8213bd5d32fc112706e7d4a4b Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Wed, 4 Jun 2025 09:48:22 +0200 Subject: [PATCH] init-ifupdown: use dhcp for bridge connection When you create a bridge between Wi-Fi hostap and Ethernet, it's more convenient to let the bridge take an appropriate dynamic IP from the DHCP server, than needing to configure a manual one. Signed-off-by: Hector Palacios --- .../ccimx6sbc/interfaces.br0.atheros.example | 4 +--- .../init-ifupdown-1.0/ccimx6sbc/interfaces.br0.example | 4 +--- .../init-ifupdown-1.0/ccimx9/interfaces.br0.example | 4 +--- .../init-ifupdown/init-ifupdown-1.0/interfaces.br0.example | 4 +--- 4 files changed, 4 insertions(+), 12 deletions(-) diff --git a/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6sbc/interfaces.br0.atheros.example b/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6sbc/interfaces.br0.atheros.example index 4b78aaca9..c2b671a6e 100644 --- a/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6sbc/interfaces.br0.atheros.example +++ b/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6sbc/interfaces.br0.atheros.example @@ -1,10 +1,8 @@ ## Example bridge between eth0 and wlan0 (Atheros AR6233) #auto br0 -#iface br0 inet static +#iface br0 inet dhcp # bridge_ports eth0 wlan0 -# address 192.168.42.50 -# netmask 255.255.255.0 # bridge_wpa_driver nl80211 # bridge_wpa_conf /etc/wpa_supplicant.conf # pre-up [ $(find /sys/devices -name modalias -print0 | xargs -0 sort -u -z | grep sdio:c00v0271d0301) ] diff --git a/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6sbc/interfaces.br0.example b/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6sbc/interfaces.br0.example index 34545bee0..ac9023c04 100644 --- a/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6sbc/interfaces.br0.example +++ b/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx6sbc/interfaces.br0.example @@ -1,8 +1,6 @@ ## Example bridge between eth0 and wlan1 (Qualcomm QCA65x4) #auto br0 -#iface br0 inet static +#iface br0 inet dhcp # bridge_ports eth0 wlan1 -# address 192.168.42.50 -# netmask 255.255.255.0 # pre-up [ $(find /sys/devices -name modalias -print0 | xargs -0 sort -u -z | grep sdio:c00v0271d050A) ] diff --git a/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx9/interfaces.br0.example b/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx9/interfaces.br0.example index 6cfe96a72..9f5ad5771 100644 --- a/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx9/interfaces.br0.example +++ b/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/ccimx9/interfaces.br0.example @@ -1,8 +1,6 @@ ## Example bridge between eth0 and uap0 (NXP IW612) #auto br0 -#iface br0 inet static +#iface br0 inet dhcp # bridge_ports eth0 uap0 -# address 192.168.42.50 -# netmask 255.255.255.0 # pre-up [ -d /proc/device-tree/wireless ] diff --git a/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces.br0.example b/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces.br0.example index b04f821dc..bbba3f077 100644 --- a/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces.br0.example +++ b/meta-digi-dey/recipes-core/init-ifupdown/init-ifupdown-1.0/interfaces.br0.example @@ -1,8 +1,6 @@ ## Example bridge between eth0 and wlan1 #auto br0 -#iface br0 inet static +#iface br0 inet dhcp # bridge_ports eth0 wlan1 -# address 192.168.42.50 -# netmask 255.255.255.0 # pre-up [ -d /proc/device-tree/wireless ]