This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
informatique:linux:bonding [2016/02/25 14:30] pteu |
informatique:linux:bonding [2016/11/14 16:18] (current) pteu |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ======Bonding====== | + | Page déplacée ici : [[informatique:linux:reseau#bonding_agregat|Réseau sous Linux : bonding/agrégat]] |
- | + | ||
- | //brouillon// | + | |
- | + | ||
- | Le **bonding** sous Linux c'est un agrégat de ports, c'est-à-dire l'association logique de plusieurs interfaces réseau physiques pour en créer une logique, plus rapide et/ou plus fiable. C'est l'équivalent de l'//etherchannel// en terminologie Cisco ou du //sharing// chez Extreme Networks. Sous Linux on utilise souvent le protocole LACP (802.3ad) pour grouper ces interfaces entre elles et dialoguer avec l'équipement d'en face. | + | |
- | + | ||
- | + | ||
- | =====Configuration sous centOS===== | + | |
- | + | ||
- | Fichiers de configuration : | + | |
- | * sous Debian/Ubuntu : ''/etc/network/interfaces'' | + | |
- | * sous Redhat/CentOS : ''/etc/sysconfig/network/ifcfg-bond0'' | + | |
- | + | ||
- | Pour fonctionner, on doit disposer de une ou plusieurs interfaces physiques similaires en terme de type et de débit. Par exemple eth2 et eth3 : | + | |
- | <code bash> | + | |
- | # eth2 | + | |
- | DEVICE=eth2 | + | |
- | BOOTPROTO=none | + | |
- | ONBOOT=yes | + | |
- | HWADDR=00:e0:ed:xx:xx:x2 | + | |
- | MASTER=bond0 | + | |
- | SLAVE=yes | + | |
- | TYPE=Ethernet | + | |
- | USERCTL=no | + | |
- | + | ||
- | # eth3 | + | |
- | DEVICE=eth3 | + | |
- | BOOTPROTO=none | + | |
- | ONBOOT=yes | + | |
- | HWADDR=00:e0:ed:xx:xx:x3 | + | |
- | MASTER=bond0 | + | |
- | SLAVE=yes | + | |
- | TYPE=Ethernet | + | |
- | USERCTL=no | + | |
- | </code> | + | |
- | + | ||
- | Exemple de configuration : | + | |
- | <code bash> | + | |
- | DEVICE='bond0' | + | |
- | BONDING_MASTER='yes' | + | |
- | BONDING_MODULE_OPTS='mode=802.3ad miimon=100' | + | |
- | BONDING_SLAVE0='eth2' | + | |
- | BONDING_SLAVE1='eth3' | + | |
- | BOOTPROTO='static' | + | |
- | BROADCAST='' | + | |
- | ETHTOOL_OPTIONS='' | + | |
- | IPADDR='10.1.8.200/24' | + | |
- | MTU='1500' | + | |
- | NAME='82599EB 10-Gigabit Network Connection' | + | |
- | NETWORK='' | + | |
- | REMOTE_IPADDR='' | + | |
- | STARTMODE='auto' | + | |
- | USERCONTROL='no' | + | |
- | </code> | + | |
- | + | ||
- | =====Diagnostique===== | + | |
- | + | ||
- | <code bash> | + | |
- | cat /proc/net/bonding/bond0 | + | |
- | + | ||
- | Ethernet Channel Bonding Driver: v3.5.0 (November 4, 2008) | + | |
- | + | ||
- | Bonding Mode: IEEE 802.3ad Dynamic link aggregation | + | |
- | Transmit Hash Policy: layer2 (0) | + | |
- | MII Status: up | + | |
- | MII Polling Interval (ms): 100 | + | |
- | Up Delay (ms): 0 | + | |
- | Down Delay (ms): 0 | + | |
- | + | ||
- | 802.3ad info | + | |
- | LACP rate: slow | + | |
- | Aggregator selection policy (ad_select): stable | + | |
- | Active Aggregator Info: | + | |
- | Aggregator ID: 1 | + | |
- | Number of ports: 2 | + | |
- | Actor Key: 33 | + | |
- | Partner Key: 101 | + | |
- | Partner Mac Address: 74:8e:f8:xx:xx:x1 | + | |
- | + | ||
- | Slave Interface: eth2 | + | |
- | MII Status: up | + | |
- | Link Failure Count: 0 | + | |
- | Permanent HW addr: 00:e0:ed:xx:xx:x2 | + | |
- | Aggregator ID: 1 | + | |
- | + | ||
- | Slave Interface: eth3 | + | |
- | MII Status: up | + | |
- | Link Failure Count: 1 | + | |
- | Permanent HW addr: 00:e0:ed:xx:xx:x3 | + | |
- | Aggregator ID: 1 | + | |
- | </code> | + | |
- | + | ||
- | =====Références===== | + | |
- | + | ||
- | * [[https://www.kernel.org/doc/Documentation/networking/bonding.txt|Linux Ethernet Bonding Driver HOWTO]] sur kernel.org | + |