• Bullseye und bonding

    From lists@zxt10d.de@21:1/5 to All on Wed Nov 9 09:30:01 2022
    Guten Morgen Liste,

    ich versuche mit den aktuellen Programmversionen unter Bullseye ein
    bonding zu konfigurieren, aber ohne dauerhaften Erfolg.

    Die Einträge in /etc/network/interfaces siehen (anonymisiert) wie folgt aus: source /etc/network/interfaces.d/*

    # The loopback network interface
    auto lo
    iface lo inet loopback

    auto eno1
    iface eno1 inet static
    address d.e.f.110
    netmask 255.255.255.128
    network d.e.f.0
    broadcast d.e.f.127
    gateway d.e.f.1
    dns-nameservers ns3 ns4
    dns-search xxx.tld.de

    auto bond0
    iface bond0 inet static
    address a.b.c.2
    netmask 255.255.255.240
    network a.b.c.0
    broadcast a.b.c.15
    gateway a.b.c.1
    dns-nameservers ns1 ns2 ns3
    dns-search xxx.tld.de
    bond-mode balance-rr
    bond-slaves eno3 eno4
    bond-miimon 100
    bond-downdelay 200
    bond-updelay 200

    Ein "systemctl restart networking" gefolgt von einem "journalctl -xe"
    erbringt:
    Nov 09 08:25:21 R720xd ifup[2340810]: RTNETLINK answers: File exists
    Nov 09 08:25:21 R720xd ifup[2340791]: ifup: failed to bring up eno1
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {RX} 1473 packets 165473
    bytes
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {TX} 0 packets 0 bytes
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {newlink} index 11
    address 24:6E:96:0C:BD:4A mtu 1500
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {newlink} index 11
    operstate 2 <DOWN>
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {RX} 1473 packets 165473
    bytes
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {TX} 0 packets 0 bytes
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {newlink} index 11
    address 24:6E:96:0C:BD:4A mtu 1500
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {newlink} index 11
    operstate 2 <DOWN>
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {RX} 1473 packets 165473
    bytes
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {TX} 0 packets 0 bytes
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {newlink} index 11
    address 24:6E:96:0C:BD:4A mtu 1500
    Nov 09 08:25:21 R720xd connmand[124278]: bond0 {newlink} index 11
    operstate 2 <DOWN>
    Nov 09 08:25:21 R720xd kernel: bond0: option mode: unable to set because
    the bond device has slaves
    Nov 09 08:25:21 R720xd ifup[2340816]:
    /etc/network/if-pre-up.d/ifenslave: 39: echo: echo: I/O error
    Nov 09 08:25:21 R720xd ifup[2340821]: ifquery: unknown interface eno3
    Nov 09 08:25:21 R720xd ifup[2340829]: ifquery: unknown interface eno4
    Nov 09 08:25:21 R720xd ifup[2340838]: RTNETLINK answers: File exists
    Nov 09 08:25:21 R720xd ifup[2340791]: ifup: failed to bring up bond0

    Ändere ich die Konfiguration in:
    auto eno3
    iface eno3 inet manual
    bond-master bond0

    auto eno4
    iface eno4 inet manual
    bond-master bond0

    auto bond0
    iface bond0 inet static
    address a.b.c.2
    netmask 255.255.255.240
    network a.b.c.0
    broadcast a.b.c.15
    gateway a.b.c.1
    dns-nameservers ns1 ns2 ns3
    dns-search xxx.tld.de
    bond-mode balance-rr
    bond-miimon 100
    bond-downdelay 200
    bond-updelay 200

    gefolgt von "systemctl restart networking" gefolgt von einem "journalctl
    -xe" ergibt dann:
    Nov 09 08:32:23 R720xd ifup[2354487]: RTNETLINK answers: File exists
    Nov 09 08:32:23 R720xd ifup[2354468]: ifup: failed to bring up eno1
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {RX} 1473 packets 165473
    bytes
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {TX} 0 packets 0 bytes
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {newlink} index 11
    address 24:6E:96:0C:BD:4A mtu 1500
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {newlink} index 11
    operstate 2 <DOWN>
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {RX} 1473 packets 165473
    bytes
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {TX} 0 packets 0 bytes
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {newlink} index 11
    address 24:6E:96:0C:BD:4A mtu 1500
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {newlink} index 11
    operstate 2 <DOWN>
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {RX} 1473 packets 165473
    bytes
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {TX} 0 packets 0 bytes
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {newlink} index 11
    address 24:6E:96:0C:BD:4A mtu 1500
    Nov 09 08:32:23 R720xd connmand[124278]: bond0 {newlink} index 11
    operstate 2 <DOWN>
    Nov 09 08:32:23 R720xd ifup[2354493]:
    /etc/network/if-pre-up.d/ifenslave: 39: echo: echo: I/O error
    Nov 09 08:32:23 R720xd kernel: bond0: option mode: unable to set because
    the bond device has slaves
    Nov 09 08:32:23 R720xd ifup[2354499]: RTNETLINK answers: File exists
    Nov 09 08:32:23 R720xd ifup[2354468]: ifup: failed to bring up bond0

    Ein "systemctl stop connman" mit anschließendem "systemctl restart
    networking" erbringt zwar das "ifup: failed to bring up eno1"
    verschwindet (und eno1 auch wieder nutzbar ist), aber die bond0
    Problematik bleibt bestehen ...
    Also entweder:
    Nov 09 09:12:06 R720xd ifup[2431415]:
    /etc/network/if-pre-up.d/ifenslave: 39: echo: echo: I/O error
    Nov 09 09:12:06 R720xd kernel: bond0: option mode: unable to set because
    the bond device has slaves
    Nov 09 09:12:06 R720xd postfix/postfix-script[2431426]: refreshing the
    Postfix mail system
    Nov 09 09:12:06 R720xd ifup[2431434]: RTNETLINK answers: File exists
    Nov 09 09:12:06 R720xd ifup[2431172]: ifup: failed to bring up bond0

    oder:
    Nov 09 09:13:22 R720xd ifup[2434127]:
    /etc/network/if-pre-up.d/ifenslave: 39: echo: echo: I/O error
    Nov 09 09:13:22 R720xd kernel: bond0: option mode: unable to set because
    the bond device has slaves
    Nov 09 09:13:22 R720xd ifup[2434133]: RTNETLINK answers: File exists
    Nov 09 09:13:22 R720xd ifup[2434113]: ifup: failed to bring up bond0

    Hat jemand einen Tip, oder eine unter Bullseye nutzbar Konfig?

    Mit Dank und Gruß
    Torsten

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Michael_B=C3=B6hm?=@21:1/5 to All on Wed Nov 9 10:30:01 2022
    Am Mi., 9. Nov. 2022 um 09:20 Uhr schrieb lists@zxt10d.de <lists@zxt10d.de>:

    Guten Morgen Liste,

    ich versuche mit den aktuellen Programmversionen unter Bullseye ein
    bonding zu konfigurieren, aber ohne dauerhaften Erfolg.
    ...
    Hat jemand einen Tip, oder eine unter Bullseye nutzbar Konfig?


    Hatte damals beim distupgrade befürchtet dass ich Probleme bekommen wg den
    in den Release Notes erwähnten Bugs zu ifenslave [1]. Aber ich hatte Glück und keine Probleme. Hab auf div. Servern Bonding ohne Probleme am laufen,
    hier mal ein Beispiel:

    ---
    auto lo
    iface lo inet loopback

    auto bond0
    iface bond0 inet static
    address x.x.x.x/24
    gateway x.x.x.x
    dns-nameservers x.x.x.x x.x.x.x x.x.x.x
    dns-search name.domain
    slaves eno1 eno2
    bond-mode 1
    bond-miimon 100
    bond-updelay 200
    bond-downdelay 200
    ---

    Das ist wirklich alles, keine weitere Konfiguration für die Slave
    Interfaces. In der Form stehen dann noch weitere Bonds da drin, bei den folgenden ist nur kein Gateway angegeben.

    [1] https://www.debian.org/releases/bullseye/amd64/release-notes/ch-information.de.html#rc-bugs

    <div dir="ltr"><div dir="ltr">Am Mi., 9. Nov. 2022 um 09:20 Uhr schrieb <a href="mailto:lists@zxt10d.de">lists@zxt10d.de</a> &lt;<a href="mailto:lists@zxt10d.de">lists@zxt10d.de</a>&gt;:<br></div><div class="gmail_quote"><blockquote class="gmail_quote"
    style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Guten Morgen Liste,<br>

    ich versuche m