Bonding

Hallo,
ich habe bonding nach dieser Anleitung eingerichtet docs.univention.de/computers-3.1.html#idp288928. Bekomme leider Fehler.

Konfig:[code]interfaces/bond0/address: 192.168.0.1
interfaces/bond0/broadcast: 192.168.0.255
interfaces/bond0/netmask: 255.255.255.0
interfaces/bond0/network: 192.168.0.0
interfaces/bond0/options/1: bond-slaves eth0 eth1
interfaces/bond0/options/2: bond-mode 1
interfaces/bond0/options/3: bond-miimon 100
interfaces/bond0/options/4: bond-primary eth0 eth1
interfaces/bond0/start: true

interfaces/eth0/type=manual
interfaces/eth0/start=false

interfaces/eth1/type=manual
interfaces/eth1/start=false[/code]

Wenn ich Networking neu starte kommt dieser Fehler:Failed to enslave eth0 to bond0. Is bond0 ready and a bonding interface ? Failed to enslave eth1 to bond0. Is bond0 ready and a bonding interface ? Illegal operation: The specified slave interface 'eth0' is already a slave Master 'bond0', Slave 'eth0': Error: Enslave failed Illegal operation: The specified slave interface 'eth1' is already a slave Master 'bond0', Slave 'eth1': Error: Enslave failed

Das Kernel Modul bonding es auch geladen.

lg

Gibt es schon was Neues?

Hallo,

die Meldungen klingen ja irgendwie als wäre bonding da schon eingerichtet. Hattest du schon manuell ein bonding konfiguriert und versuchst das jetzt in UCR abzubilden? Evtl. muss man das dann vorher deaktivieren.
Bei mir funktioniert das Beispiel aus der Doku auf jeden Fall auf Anhieb (hatte vorher kein bonding).

emg

eigentlich nicht, bin nach der doku vorgegangen. wo kann ich noch nachsehen ob ein bonding schon konfiguriert ist?

Hallo,

um zu prüfen ob (und wie) bereits ein Bonding-Interface konfiguriert/aktiviert ist:cat /proc/net/bonding/*
Ggf. helfen auch die Ausgaben von

ip addr show / ifconfig -a ifenslave-2.6 -a -v cat /etc/network/interfaces

Um das Bonding-Interface direkt aktivieren zu können ist es notwendig dass die UCR-Variablen wie in der Dokumentation angegeben in einem Aufruf gesetzt werden:[code]grep -v ‘^#’ <<END_CONFIG | xargs -d ‘\n’ ucr set

Configure physical interfaces

interfaces/eth0/type=manual
interfaces/eth0/start=false
interfaces/eth1/type=manual
interfaces/eth1/start=false

Configure IP on bond

interfaces/bond0/start=true
interfaces/bond0/address=192.168.0.1
interfaces/bond0/broadcast=192.168.0.255
interfaces/bond0/netmask=255.255.255.0
interfaces/bond0/network=192.168.0.0
interfaces/primary=bond0

Connect physical interfaces to bond

interfaces/bond0/options/1=bond-slaves eth0 eth1

Use active-backup mode

interfaces/bond0/options/2=bond-mode 1

Check MII link status very 100 ms

interfaces/bond0/options/3=bond-miimon 100

Do not prefer any interface over the other

interfaces/bond0/options/4=bond-primary eth0 eth1
END_CONFIG[/code]

Mit freundlichen Grüßen
Janis Meybohm

Mastodon