Bonding / Teaming BONDING : http://linux-ip.net/html/ether-bonding.html https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec-comparison_of_network_teaming_to_bonding http://www.debianadmin.com/linux-ethernet-bonding-configuration.html # surtout pour détail des modes https://serverfault.com/questions/446911/what-are-the-differences-between-channel-bonding-modes-in-linux # idem (comparaison des différents modes) https://en.wikipedia.org/wiki/Link_aggregation https://en.wikipedia.org/wiki/Link_aggregation#Driver_modes # IDEM https://en.wikipedia.org/wiki/Link_aggregation#Limitations https://communities.cisco.com/docs/DOC-64730 https://github.com/Mellanox/mlxsw/wiki/Link-Aggregation http://www.voleg.info/linux-network-cheat.html : "If you plan mix VLAN and bonding technology, make bonding first, then split it into VLAN interfaces. Making bonding from VLAN interfaces will not work. Bonding makes deal with physical interfaces." ___________________ TEAMING : https://rhelblog.redhat.com/2014/06/23/team-driver/ "The bonding driver’s architecture is such that the control, management, and data paths are all managed in the kernel space… limiting its flexibility. The team driver is not trying to replicate or mimic the bonding driver, it has actually been designed to solve the same problem(s) using a wholly different design and different approach; an approach where special attention was paid to flexibility and efficiency. The best part is that the configuration, management, and monitoring of team driver is significantly improved with no compromise on performance, features, or throughput." https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/ch-configure_network_teaming Outil bond2team sur Red Hat 7 / CentOS 7 travaille à partir des fichiers /etc/sysconfig/network-scripts/ifcfg- MAIS COMME CELA N'EST PAS OBLIGATOIRE, la commande est également disponible sur Ubuntu Documentations : /usr/share/doc/teamd-1.25/example_configs/ sur Red Hat /usr/share/doc/libteam-utils/HOWTO.BASICS, /usr/share/doc/libteam-utils/examples/ sur Debian / Ubuntu (paquet libteam-utils) Ré-essayer avec nmtui pour voir si ça fonctionne (il m'a semblé) et si c'est le cas essayer de voir la ou les différences avec une mise en œuvre manuelle Le cas échéant demander à Lionel Sausin s'il a déjà mis en œuvre le teaming La suite est inspirée de https://github.com/Mellanox/mlxsw/wiki/Link-Aggregation NOTE : les commandes teamd et ip peuvent (devraient) être exécutées en tant qu'utilisateur lambda. MISE EN PLACE : teamd -t team0 -d -c '{"runner": {"name": "lacp"}}' # remplacer lacp par activebackup (par exemple) si le switch n'est pas configuré en conséquence VÉRIFICATION : lsmod | grep -e team NETTOYAGE : # ip link delete team0 CORRECT MAIS LA COMMANDE SUIVANTE EST DE LOIN PRÉFÉRABLE teamd -t team0 -k CAR IL Y A UN DÉMON teamd LANCÉ POUR CHAQUE INTERFACE team À GÉRER. modprobe -r team_mode_loadbalance # N'EST PAS PRIS EN CHARGE PAR LES COMMANDES QUI PRÉCÈDENT # NOTE : le nom du module (ou deS moduleS) est dépendant du type d'agrégation (le "runner") UNE FOIS L'INTERFACE team0 DISPONIBLE (APRÈS EXÉCUTION DE LA COMMANDE teamd) : ip link set dev enp0s29f7u1 master team0 ip link set dev enp0s29f7u4 master team0 ip link set dev team0 up teamdctl team0 state teamdctl team0 config dump RETRAIT D'UNE INTERFACE DU "TEAM" : ip link set dev enp0s29f7u4 nomaster POUR CRÉER/EXPLOITER UNE AUTRE INTERFACE team : teamd -t team6 -d -c '{"runner": {"name": "activebackup"}}' NETTOYAGE CORRESPONDANT : teamd -t team6 -k modprobe -r team_mode_activebackup