======NIC bonding======
参考
*http://mkws.blogspot.jp/2012/12/raspberry-piusb-wifi.html
*https://wiki.debian.org/Bonding
ifenslaveの導入
# apt-get install ifenslave
# modprobe bonding
# lsmod | grep bonding
# vi /etc/modules
bonding
# vi /etc/modprobe.d/bonding.conf
alias bond0 bonding
options bond0 mode=1
(/etc/modprobe.d/bonding.conf で options bond0 mode=1はなくてもよさそう)
# vi /etc/network/interfaces
iface eth0 inet manual
#iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
#iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
bond-give-a-chance 10
auto bond0
iface bond0 inet dhcp
bond-mode 1
bond-miimon 100
slaves eth0 wlan0
bond-primary eth0
(active-backupを設定)
# vi /etc/dhcpcd.conf
denyinterfaces eth0 wlan0
# /etc/init.d/networking stop