Today when I was setting up a bonding interface, I put the followings in "/etc/rc.d/rc.netdevice":
Code:
#! /bin/sh
modprobe bonding mode=active-backup miimon=100 downdelay=200 updelay=200 primary=eth0
ifconfig bond0 up
ifenslave bond0 eth0
ifenslave bond0 wlan0
and these in "/etc/rc.d/rc.inet1.conf":
Code:
# Config information for eth0:
IFNAME[0]="wlan0"
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="no"
WLAN_MODE[0]=Managed
WLAN_WPA[0]="wpa_supplicant"
WLAN_WPACONF[0]="/etc/wpa_supplicant.conf -b bond0"
WLAN_WPADRIVER[0]="wext"
WLAN_WPAWAIT[0]=10
# Config information for eth1:
IFNAME[1]="bond0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""
It works as expected but my workaround to add the "-b" parameter to wpa_supplicant is certainly ulgy. Is there an elegant way of adding extra parameters to wpa_supplicant in "rc.inet1.conf"?
Similarly, I find it difficult to add options (such as --nolink) to dhcpcd.