Skip to content

Instantly share code, notes, and snippets.

@werty1st
Created May 31, 2014 22:23
Show Gist options
  • Save werty1st/4bf4a72b732cbf960f79 to your computer and use it in GitHub Desktop.
Save werty1st/4bf4a72b732cbf960f79 to your computer and use it in GitHub Desktop.
bond
apt-get install ifenslave
echo "bonding" >> /etc/modules
cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo eth0 wlan0 bond0
iface lo inet loopback
# Do not receive dhcp on eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0 wlan0
# Manually connect wireless to AP
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant0.conf
bond-master bond0
bond-primary eth0 wlan0
# Request dhcp ip for bonded interface
iface bond0 inet dhcp
bond_mode balance-alb
#active-backup
bond-miimon 100
bond-primary eth0
slaves eth0 wlan0
xbmcwz@xbmcwz-All-Series:~$ cat /etc/wpa_supplicant0.conf
network={
ssid="XXX"
bssid=XX:XX:XX:XX:XX:XX
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="XXX"
}
xbmcwz@xbmcwz-All-Series:~$ cat /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq
[ifupdown]
managed=false
[keyfile]
unmanaged-devices=mac:XXX;mac:XXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment