Hallo Freunde von xUbuntu.
Ich möchte gernen einen kleinen Cloud server mittels link-aggregation an unseren Netzwerkswitch binden. Leider komme ich jetzt nach allen tutorials in unserem, wie auch in externen wikis nicht mehr weiter.
Die Verbindung soll via 2x 1Gbit/s ethernet Kabeln nach dem standard 802.3ad auch bekannt als LACP oder mode 4 aufgebaut werden.
Beide Netzwerkschnittstellen können einen Link zum Switch aufbauen, wenn dieser nicht für LACP konfiguriert ist.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | sudo ifconfig enp7s0 Link encap:Ethernet HWaddr d0:50:99:c1:4d:3d inet addr:10.10.0.215 Bcast:10.10.1.255 Mask:255.255.254.0 inet6 addr: fe80::d250:99ff:fec1:4d3d/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:4433 errors:0 dropped:0 overruns:0 frame:0 TX packets:1515 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:818190 (818.1 KB) TX bytes:804432 (804.4 KB) Memory:df300000-df37ffff enp8s0 Link encap:Ethernet HWaddr d0:50:99:c1:4d:3e inet addr:10.10.0.216 Bcast:10.10.1.255 Mask:255.255.254.0 inet6 addr: fe80::d250:99ff:fec1:4d3e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1144 errors:0 dropped:0 overruns:0 frame:0 TX packets:19 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:99586 (99.5 KB) TX bytes:4410 (4.4 KB) Memory:df200000-df27ffff lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:160 errors:0 dropped:0 overruns:0 frame:0 TX packets:160 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:11840 (11.8 KB) TX bytes:11840 (11.8 KB) |
Die dazugehörige config
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto enp7s0 iface enp7s0 inet dhcp # The secondary auto enp8s0 iface enp8s0 inet dhcp |
Um das bonding einzurichten habe Ich die pakete ifenslave net-tools ethtool bmon installiert und das kernel module bonding geladen.
1 2 3 4 5 6 7 8 9 10 | sudo apt-get install ifenslave net-tools ethtool bmon Reading package lists... Done Building dependency tree Reading state information... Done ethtool is already the newest version (1:4.5-1). ifenslave is already the newest version (2.7ubuntu1). net-tools is already the newest version (1.60-26ubuntu1). bmon is already the newest version (1:3.8-2build1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. elias@EMT-cloud-server:~⟫ |
Danach habe ich die Schnittstellen enp7s0 und enp8s0 deaktiviert und die network config angepasst zu:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary and secondary network interfaces allow enp7s0 iface enp7s0 inet manual allow enp8s0 iface enp8s0 inet manual # The bonding interface auto bond0 iface bond0 inet dhcp bond-slaves enp7s0 enp8s0 bond-mode 4 bond-miimon 100 bond-updelay 200 bond-downdelay 200 |
und den Netzwerk stack gestoppt und neugestartet via
1 | sudo /etc/init.d/networking stop |
und
1 | sudo /etc/init.d/networking start |
Dann habe ich den Switch auf Dynamic Link Aggregation with LACP konfiguriert (Siehe Anhang) und das interface bond0 aktivert. Leider erhalte ich hier eine Fehlermeldung von meinem Server
1 2 3 4 | sudo ifup bond0 Waiting for slave to join bond0 (will timeout after 60s) No slave joint bond0, continuing anyway ... |
Darüber hinaus sehe ich, dass die Schnittstelle enp8s0 nicht aktiv ist. Bei enp7s0 kann ich es nicht genau sagen, da hier derzeit auch das Server Dashboard (mainboard webinterface) drüber läuft. Es scheint mir jedoch so, also ob die Netzwerkschnittstellen nicht aktiviert werden. Nach einem reboot lässt sich auch keine Verbindung aufbauen.
Wenn ich dann auf den Switch schaue, sehe ich auch, dass nur eine der beiden Schnittstellen aktiv ist (Siehe Anhang 2). Ich denke ich habe irgendwo einen Fehler gemacht, finde ihn aber nicht und komme ich nicht weiter, weil ich nicht weiß nach was ich suchen muss.
Ich würde mich sehr über eure Anregungen freuen. Vielen Dank für eure Hilfe.
Liebe Grüße, H.i.M