I need a bounding device to test the devgroup support in nft.
Update: I only need add my wlan0 device into a group. It did it with ip link.
ip link set group 100 dev eth0
1 2 3
$ sudo ip link list group 23 3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT qlen 1000 link/ether e0:06:e6:c6:dc:89 brd ff:ff:ff:ff:ff:ff
It’s necessary this software:
ifenslave-2.6 package to enable bonding
Interface Configuration Files:
/etc/network/interfaces file contains network interface configuration information.
We use this interface configuration file from this link https://gist.github.com/mrvdb/3099065
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 33 34 35 36 37 38 39 40 41 42
# Regardless of how our topology looks, we'll need the local interface auto lo iface lo inet loopback # Configuration basics taken from: # http://www.kernel.org/doc/Documentation/networking/bonding.txt # Define the bonding master, which is ideally our only interface to the outside world # - define slaves as none initially, this helps with booting faster # - the primary line makes most sense here, but is not enough # - set the interface check interval to 100ms # - we activate 1 interface at a time for now, if one fails, the other takes over auto bond0 iface bond0 inet dhcp bond-slaves none bond-mode active-backup bond-primary eth0 bond-miimon 100 # Slave: wired ethernet connection port, typically our office connection # - critical that the type is set to 'manual' # - typically wired is the fasted connection, so make this the primary # - the primary line seems redundant but is needed here auto eth0 iface eth0 inet manual bond-master bond0 bond-primary eth0 # Slave: the wireless connection interface # - critical that the type is set to 'manual' # - interface roams under control of wpa_supplicant # - the primary line seems redundant but is needed here # - # - tell the interface that packets come in over bond0 instead of wlan0 # - the wpa conf file contains network definitions and other settings. auto wlan0 allow-hotplug wlan0 iface wlan0 inet manual bond-master bond0 bond-give-a-chance 10 bond-primary eth0 wpa-bridge bond0 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
The following is a sample file for wpa supplicant