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 <hector.palacios@digi.com>
This commit is contained in:
Hector Palacios 2025-06-04 09:48:22 +02:00
parent 24aef482ef
commit a2153e44ef
4 changed files with 4 additions and 12 deletions

View File

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

View File

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

View File

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

View File

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