1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
A configuration with one ethernet (wire) interface and one hotplug Wi-Fi interface.
-----8<----------8<----------8<----------8<----------8<-----
auto bond0
iface bond0 inet dhcp
bond-slaves eth0
bond-mode 1
bond-miimon 100
bond-primary eth0
allow-hotplug wlan0
iface wlan0 inet manual
bond-master bond0
bond-mode 1
bond-miimon 100
bond-give-a-chance 10
wpa-bridge bond0
wpa-key-mgmt WPA-PSK
wpa-proto WPA
wpa-group CCMP
wpa-ssid my-ssid
wpa-psk "my-secret-password"
-----8<----------8<----------8<----------8<----------8<-----
You do not need an "iface eth0" stanza.
The "auto bond0" stanza is required, else bond0 won't be brought up.
The "wpa-bridge bond0" stanza is required to inform wpa_supplicant that Wi-Fi link-level packets will arrive on bond0, not on wlan0.
The "bond-give-a-chance 10" stanza is required to give a chance for Wi-Fi authentication to succeed.
|