HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux mail.btech-izolacje.pl 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
User: pewna6876 (1017)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //usr/share/doc/bridge-utils/examples/interfaces.hotplug.wifi
# This is an example to be used when the wifi interface is not available
# at boot, like a hotplug USB dongle or similar.
# If the device is available at boot, the hostapd.service can setup
# the interface without needing this.
# The hostapd.conf usually specifies bridge=br0 on this kind of setup.
# Remember to set BRIDGE_HOTPLUG=yes at /etc/default/bridge-utils
# In this setup the all would match typical ethernet cards and then
# we specify the wifi we want hotplugged.
# The second stanza of br0 is just for setting up the ipv6 parameters
# we don't specify bridge_ports there, we have specified it in the first
# stanza, but we set it to none to let bridge-utils know it is a bridge.

auto br0
iface br0 inet static
        address 192.168.2.250
        netmask 255.255.255.0
        bridge_ports all wlxMAC1
        bridge_stp off
        bridge_fd 2
        bridge_hw wlxMAC1
iface br0 inet6 static
        bridge_ports none
        address 2001:XXXX:XXXX::1
        netmask 64
        privext 2

allow-hotplug wlxMAC1
iface wlxMAC1 inet manual
        hostapd -i wlxMAC1 /etc/hostapd/hostapd-wifiX.conf