ifup bond0 will bring up the slaves automatically (as documentation says). Theoretically only the bond0 interface should have the auto attribute. The configuration is somewhat contrary to the documentation of interfaces, ifup and ifenslave and the examples under /usr/share/doc/ifenslave/examples/. The last verified version is Debian 9.8 (*). Note: The configuration above has been found working on Debian 6 and later versions. Modify the /etc/network/interfaces file: # Define slaves Without bonding each interface would have its own ip address. So the computer has one unique ip address under which it can be identified. The dhcp server will use this MAC to assign an ip address to the bond0 device. virtual) MAC address, different from the hardware defined MACs of eth0 or wlan0. The bonding device presents its own software-defined (i.e. wlan0) transparently, without any loss of network packages.Īfter reconnecting the network cable, ifenslave switches back to eth0 ("failover mode").įrom the outside (=network) view it doesn't matter which interface is active. If you pull the RJ45-plug, ifenslave switches over to the wireless interface (e.g. bond0).Īs long as the network cable is connected, its interface (e.g. Tie cable and wireless network interfaces (RJ45/WLAN) together to define a single, virtual (i.e. Modify the /etc/network/interfaces file: auto bond0įor more detail, see /usr/share/doc/ifenslave/README.Debian and /usr/src/linux/Documentation/networking/bonding.txt.Ĭonfiguration - Example 2 ("Laptop-Mode") Sometimes, ifdown doesn't work, in that case use ifconfig eth0 down. # ifdown eth0 (Repeat for all interfaces included in the bond) Shutdown / Unconfigure Existing Interfaces Additional Note For Debian Lenny On Sparcįirst install the ifenslave package, necessary to enable bonding: # apt-get install ifenslave.Configuration - Example 4 - (very complex server setup) with LACP Bonded trunk and VLANs split out of the trunk, different MTU's on the VLANs.Configuration - Example 3 ("Laptop mode", mostly as per documentation - Debian 9 "stretch").Configuration - Example 2 ("Laptop-Mode").Shutdown / Unconfigure Existing Interfaces.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |