Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| linux:ethernet-bonding-konfiguration-ieee-802.3ad-lacp [2011/11/03 23:24] – angelegt st | linux:ethernet-bonding-konfiguration-ieee-802.3ad-lacp [2016/01/08 17:43] (aktuell) – [Verfahren bei Linux] st | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== Ethernet bonding Konfiguration IEEE 802.3ad (LACP) ====== | ||
| + | |||
| + | Bei Ethernet bonding geht es um ein Verfahren zur Bündelung mehrerer physikalischer LAN-Schnittstellen zu einem logischen Kanal. LACP (=Link Aggregation Control Protocol) ist ein Netzwerkprotokoll nach IEEE 802.3ad zur dynamischen Bündelung von physikalischen Netzwerkverbindungen. | ||
| + | |||
| + | Außerdem sind folgende Bezeichnungen gängig: | ||
| + | * Bonding, im [[linux: | ||
| + | * Etherchannel, | ||
| + | * Link Aggregation (LAG), bei IEEE | ||
| + | * Port Aggregation, | ||
| + | * Trunking, bei Sun Microsystems, | ||
| + | * Bündelung, als deutscher Begriff für die Ethernet-Kanal-Bündelung. | ||
| + | |||
| + | **Ziele** der Bündelung sind im Allgemeinen eine höhere mögliche Übertragungsgeschwindigkeit und/oder höhere Verfügbarkeit. | ||
| + | |||
| + | Grundlegende Verfahren: | ||
| + | |||
| + | * Roundrobin: Hier werden alle zur Verfügung stehenden Leitungen abwechselnd der Reihe nach benutzt. | ||
| + | * DA-Trunking: | ||
| + | * SA-Trunking: | ||
| + | * SA-DA-Trunking: | ||
| + | * Adaptives-Trunking: | ||
| + | * Dynamisches-Trunking: | ||
| + | |||
| + | |||
| + | ===== Links ===== | ||
| + | |||
| + | |||
| + | * [[https:// | ||
| + | * [[wp> | ||
| + | * [[wp> | ||
| + | * [[wpde> | ||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | |||
| + | |||
| + | ===== Verfahren bei Linux ===== | ||
| + | |||
| + | ^ Modus Name ^ Nummer ^ Switch-config-Änderung nötig? ^ Ziel ^ Funktion ^ | ||
| + | | balance-rr | 0 | N | load balancing und Fehlertoleranz | ||
| + | | active-backup | 1 | N | Fehlertoleranz | ||
| + | | balance-xor | 2 | N | load balancing und Fehlertoleranz | ||
| + | | broadcast | 3 | N | Fehlertoleranz | ||
| + | | 802.3ad | 4 | J | load balancing | mehrere Schnitstellen mit gleichen Charakteristiken (Geschwindigkeit/ | ||
| + | | balance-tlb | 5 | N | adaptives load balancing und Fehlertoleranz | ||
| + | | balance-alb | 6 | N | adaptives load balancing und Fehlertoleranz | ||
| + | |||
| + | ==== Einstellungen ==== | ||
| + | |||
| + | aptitude install ifenslave-2.6 | ||
| + | Bei neueren System heißt das Paket etwas anders: | ||
| + | aptitude install ifenslave | ||
| + | |||
| + | Beispiel: | ||
| + | Zwei Netzwerkkarten em1 und em2, im Fehlerfall (Switchausfall, | ||
| + | |||
| + | Die Datei ''/ | ||
| + | < | ||
| + | auto em1 | ||
| + | iface em1 inet manual | ||
| + | bond-master bond0 | ||
| + | bond-primary em1 | ||
| + | bond-mode active-backup | ||
| + | |||
| + | auto em2 | ||
| + | iface em2 inet manual | ||
| + | bond-master bond0 | ||
| + | bond-primary em1 | ||
| + | bond-mode active-backup | ||
| + | |||
| + | auto bond0 | ||
| + | iface bond0 inet static | ||
| + | address x.x.x.x | ||
| + | netmask 255.255.255.0 | ||
| + | network y.y.y.0 | ||
| + | broadcast y.y.y.255 | ||
| + | gateway y.y.y.1 | ||
| + | # dns-* options are implemented by the resolvconf package, if installed | ||
| + | dns-nameservers z1.z1.z1.z1 z2.z2.z2.z2 | ||
| + | |||
| + | bond_mode active-backup | ||
| + | bond-slaves none | ||
| + | bond_miimon 100 # monitoring frequency in ms | ||
| + | bond_downdelay 200 # wait time before disabling or enabling an interface in ms | ||
| + | bond_updelay 200 | ||
| + | </ | ||
| + | Primary anzeigen: <code bash>cat / | ||
| + | Slaves anzeigen: <code bash>cat / | ||
| + | Aktiver Slave: <code bash>cat / | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | #! /bin/sh | ||
| + | |||
| + | echo " | ||
| + | echo " | ||
| + | echo " | ||
| + | |||
| + | r=$(pidof dhclient) | ||
| + | test -n " | ||
| + | |||
| + | r=$(pidof wpa_supplicant) | ||
| + | test -n " | ||
| + | </ | ||
| + | |||
| + | <code bash>cat / | ||
| + | < | ||
| + | Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) | ||
| + | |||
| + | Bonding Mode: fault-tolerance (active-backup) | ||
| + | Primary Slave: em1 (primary_reselect always) | ||
| + | Currently Active Slave: em1 | ||
| + | MII Status: up | ||
| + | MII Polling Interval (ms): 100 | ||
| + | Up Delay (ms): 200 | ||
| + | Down Delay (ms): 200 | ||
| + | |||
| + | Slave Interface: em1 | ||
| + | MII Status: up | ||
| + | Speed: 1000 Mbps | ||
| + | Duplex: full | ||
| + | Link Failure Count: 1 | ||
| + | Permanent HW addr: 84: | ||
| + | Slave queue ID: 0 | ||
| + | |||
| + | Slave Interface: em2 | ||
| + | MII Status: up | ||
| + | Speed: 1000 Mbps | ||
| + | Duplex: full | ||
| + | Link Failure Count: 1 | ||
| + | Permanent HW addr: 84: | ||
| + | Slave queue ID: 0 | ||
| + | </ | ||
| + | |||
| + | |||
| + | Ein Um- und zurückschwenken auf die Slave-Leitung und wieder zurück sieht so aus: | ||
| + | < | ||
| + | bnx2 0000: | ||
| + | bond0: link status down for active interface em1, disabling it in 200 ms | ||
| + | bond0: link status definitely down for interface em1, disabling it | ||
| + | bond0: making interface em2 the new active one | ||
| + | bnx2 0000: | ||
| + | bond0: link status up for interface em1, enabling it in 200 ms | ||
| + | bond0: link status definitely up for interface em1, 1000 Mbps full duplex | ||
| + | bond0: making interface em1 the new active one | ||
| + | </ | ||
| + | |||
| + | |||
| + | siehe auch: https:// | ||
| + | |||
| + | * 2 oder mehr Bonding-Geräte: | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Anwendung bei Windows ===== | ||
| + | |||
| + | FIXME | ||