Linux Link Aggregation: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
K (Thomas.will verschob die Seite Netzwerkkarten bündeln nach Linux Link Aggregation)
 
(11 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 
=Installation=
 
=Installation=
  sudo apt-get install ifenslave
+
  apt-get install ifenslave-2.6
*Für das manuelle updaten, die neue x86 oder x64 Version downloaden und per dpkg installieren.
 
sudo dpkg -i /tmp/ifenslave-2.6_1.1.0-15ubuntu1_i386.deb
 
sudo dpkg -i /tmp/ifenslave-2.6_1.1.0-15ubuntu1_amd64.deb
 
 
=Weitere nützliche Tools=
 
=Weitere nützliche Tools=
 
  sudo apt-get install net-tools ethtool bmon  
 
  sudo apt-get install net-tools ethtool bmon  
=Integrität und Funtkionscheck
+
=Integrität und Funtkionscheck=
 
  root@crank:~# mii-tool
 
  root@crank:~# mii-tool
 
  eth4: negotiated 1000baseT-FD flow-control, link ok
 
  eth4: negotiated 1000baseT-FD flow-control, link ok
 
  eth5: negotiated 1000baseT-FD flow-control, link ok
 
  eth5: negotiated 1000baseT-FD flow-control, link ok
 +
 
=/etc/network/interfaces=
 
=/etc/network/interfaces=
 
  auto bond0
 
  auto bond0
Zeile 41: Zeile 39:
 
         post-up ifup eth1
 
         post-up ifup eth1
 
         post-up ifup eth2
 
         post-up ifup eth2
 
+
 
  iface eth1 inet manual
 
  iface eth1 inet manual
 
         bond-master bond0
 
         bond-master bond0
Zeile 47: Zeile 45:
 
  iface eth2 inet manual
 
  iface eth2 inet manual
 
         bond-master bond0
 
         bond-master bond0
 
+
 
 
 
  auto lan
 
  auto lan
 
  iface lan inet static
 
  iface lan inet static
Zeile 63: Zeile 60:
 
         post-down ifdown bond0
 
         post-down ifdown bond0
  
=Infos=
+
=check=
 +
<pre>
 +
xinux@doom:/proc$ cat /proc/net/bonding/bond0
 +
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
 +
 
 +
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: fast
 +
Min links: 0
 +
Aggregator selection policy (ad_select): stable
 +
Active Aggregator Info:
 +
Aggregator ID: 1
 +
Number of ports: 2
 +
Actor Key: 17
 +
Partner Key: 33
 +
Partner Mac Address: 00:23:eb:b1:07:e6
 +
 
 +
Slave Interface: eth2
 +
MII Status: up
 +
Speed: 1000 Mbps
 +
Duplex: full
 +
Link Failure Count: 0
 +
Permanent HW addr: 00:15:17:78:68:17
 +
Aggregator ID: 1
 +
Slave queue ID: 0
  
*Mode0 = balance-rr [Round-Robin-Verfahren -> umso mehr Upload-Gesamtbandbreite, denn diese werden auf die übrigen freien Schnittstellen aufgeteilt]
+
Slave Interface: eth1
*Mode1 = active-backup [Nur eine Schnittstelle ist aktiv, im Fehlerfalle wird eine der anderen im Verbund genutzt]
+
MII Status: up
*Mode4 = 802.3ad [die Bündelung mehrerer Schnittstellen mit gleichen Übertragungseinstellungen, um eine höhere Bandbreite zu erhalten. Es kann nur ein Switch verwendet werden, dieser muss 802.3ad unterstützen]
+
Speed: 1000 Mbps
 +
Duplex: full
 +
Link Failure Count: 0
 +
Permanent HW addr: 00:15:17:78:68:16
 +
Aggregator ID: 1
 +
Slave queue ID: 0
 +
</pre>
  
  
*slaves: Welche Schnittstellen diesem Bond zugehörig sind, "all", falls alle.
+
=bonding-problem=
*bond_mode: 0 bis 6 oder Names des Modus, in dem der bonding-Treiber arbeiten soll.
+
*[[nfs-bonding-problem]]
*bond_miimon: Das bonding-Modul überprüft alle 100ms den Link-Status aller gebündelten Schnittstellen.
+
*[[libvirt-bin-problem]]
*bond_updelay: Wenn eine Schnittstelle als (wieder) aktiv erkannt wird, werden 200ms abgewartet, ehe der bonding-Treiber das interface wieder in den Verbund integriert, ansonsten sofort.
 
*bond_downdelay: Gibt es einen Übertragungsfehler oder Aussetzer, so betrachtet das bonding-Modul die Schnittstelle erst nach 200ms als verloren und entfernt diese aus dem bond, ansonsten sofort.
 
  
 +
=Infos=
 +
*[[Bonding]]
  
*Quelle http://wiki.ubuntuusers.de/Netzwerkkarten_b%C3%BCndeln
+
=Quellen=
*Quelle http://www.howtogeek.com/52068/how-to-setup-network-link-aggregation-802-3ad-on-ubuntu/
+
*http://wiki.ubuntuusers.de/Netzwerkkarten_b%C3%BCndeln
 +
*http://www.howtogeek.com/52068/how-to-setup-network-link-aggregation-802-3ad-on-ubuntu/

Aktuelle Version vom 31. März 2023, 07:52 Uhr

Installation

apt-get install ifenslave-2.6

Weitere nützliche Tools

sudo apt-get install net-tools ethtool bmon 

Integrität und Funtkionscheck

root@crank:~# mii-tool
eth4: negotiated 1000baseT-FD flow-control, link ok
eth5: negotiated 1000baseT-FD flow-control, link ok

/etc/network/interfaces

auto bond0
iface bond0 inet static
        address 172.27.233.100
        netmask 255.255.255.0
        bond-mode  802.3ad
        bond-miimon 100
        bond-lacp-rate 1
        bond-slaves none
auto eth4
iface eth4 inet manual
        bond-master bond0   
auto eth5
iface eth5 inet manual
        bond-master bond0 

Link aggregation

Bonding mit Lanbridge

iface bond0 inet manual
        bond-mode  802.3ad
        bond-miimon 100
        bond-lacp-rate 1
        bond-slaves none
        post-up ifup eth1
        post-up ifup eth2

iface eth1 inet manual
        bond-master bond0

iface eth2 inet manual
        bond-master bond0

auto lan
iface lan inet static
        address 192.168.241.180
        netmask 255.255.248.0
        gateway 192.168.240.100
        dns-nameservers 192.168.241.21
        dns-domain xinux
        bridge_ports bond0
        bridge_stp on
        bridge_fd 0
        bridge_maxwait 0
        pre-up ifup bond0
        post-down ifdown bond0

check

xinux@doom:/proc$ cat /proc/net/bonding/bond0 
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

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: fast
Min links: 0
Aggregator selection policy (ad_select): stable
Active Aggregator Info:
	Aggregator ID: 1
	Number of ports: 2
	Actor Key: 17
	Partner Key: 33
	Partner Mac Address: 00:23:eb:b1:07:e6

Slave Interface: eth2
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:15:17:78:68:17
Aggregator ID: 1
Slave queue ID: 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 00:15:17:78:68:16
Aggregator ID: 1
Slave queue ID: 0


bonding-problem

Infos

Quellen