Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
informatique:systeme:matos:channel_bonding [2016/05/16 13:25] – [Mode de bonding supporté par le kernel Linux] bn8 | informatique:systeme:matos:channel_bonding [2024/02/05 10:44] (Version actuelle) – [Changer d'interface active] bn8 | ||
---|---|---|---|
Ligne 22: | Ligne 22: | ||
<note important> | <note important> | ||
+ | ===== Utilisation avec des VLANs ===== | ||
+ | |||
+ | < | ||
+ | auto bond0 | ||
+ | iface bond0 inet manual | ||
+ | slaves eth0 eth1 | ||
+ | bond-mode 802.3ad | ||
+ | bond-miimon 100 | ||
+ | bond-downdelay 200 | ||
+ | bond-updelay 200 | ||
+ | |||
+ | auto vlan1 | ||
+ | iface vlan1 inet static | ||
+ | vlan-raw-device bond0 | ||
+ | address 192.168.0.1 | ||
+ | network 255.255.255.0 | ||
+ | gateway 192.168.0.254 | ||
+ | | ||
+ | auto vlan2 | ||
+ | iface vlan2 inet static | ||
+ | vlan-raw-device bond0 | ||
+ | address 192.168.1.1 | ||
+ | network 255.255.255.0 | ||
+ | </ | ||
===== Mode de bonding supporté par le kernel Linux ===== | ===== Mode de bonding supporté par le kernel Linux ===== | ||
Ligne 35: | Ligne 59: | ||
====== Procédures ====== | ====== Procédures ====== | ||
+ | |||
+ | ===== État détaillé d'un bond ===== | ||
+ | |||
+ | <code bash>ip -d -s -s link ls dev bond0</ | ||
+ | |||
+ | ===== Création manuelle d'un bond ===== | ||
+ | |||
+ | < | ||
+ | # create the bonding interface with active-backup mode | ||
+ | ip link add name bond0 type bond mode active-backup | ||
+ | |||
+ | # add the under laying interfaces | ||
+ | # the interface, that has been added first, will be active | ||
+ | ip link set master bond0 dev eth1 | ||
+ | ip link set master bond0 dev eth0 | ||
+ | |||
+ | # enable the bonding interface | ||
+ | ip link set up dev bond0 | ||
+ | ip address add 192.168.100.1/ | ||
+ | |||
+ | # check the results: detailed info and statistics of bond0 | ||
+ | ip -s -s -d link ls dev bond0 | ||
+ | |||
+ | # check the state of ALL under laying interfaces | ||
+ | # with statistics and details | ||
+ | ip -s -s -d link ls master bond0 | ||
+ | |||
+ | # check the kernel logs | ||
+ | journalctl -kn 20 | ||
+ | </ | ||
+ | |||
+ | Source : https:// | ||
===== Changer d' | ===== Changer d' | ||
- | * Lister les interfaces : < | + | * Lister les interfaces : |
- | * Voir l' | + | * < |
- | * Changer d' | + | * ou : <code bash>ip link show master bond0</ |
+ | * Voir l' | ||
+ | * Changer d' | ||
+ | * < | ||
+ | * ou : <code bash>ip link set dev bond0 type bond active_slave eth1</ | ||
+ | |||
+ | ===== Supprimer/ | ||
+ | |||
+ | * Sortir '' | ||
+ | * Mettre '' |