• Re: Probleme mit Kombination von VLAN und Bonding

    From Sylvia Pudimat@21:1/5 to All on Wed Dec 14 13:30:01 2022
    Hi,

    hatte neulich ein ähnliches Issue (mit active-backup config), die Lösung war wie folgt:

    auto lo
    iface lo inet loopback
    iface eno1 inet manual
    iface eno2 inet manual
    iface enp2s0f0np0 inet manual
    iface enp2s0f1np1 inet manual
    iface enp3s0f0 inet manual
    iface enp3s0f1 inet manual
    auto bond0
    iface bond0 inet manual
    bond-slaves eno1 eno2
    bond-miimon 100
    bond-mode active-backup
    bond-downdelay 200
    bond-updelay 200
    auto vmbr0
    iface vmbr0 inet manual
    bridge-ports bond0
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094
    # management ip on vlan 666
    auto vmbr0.666
    iface vmbr0.666 inet static
    address IP-Adresse
    gateway Gateway-IP

    Vielleicht hilft es.
    lg sylvia

    Am 14.12.2022 um 13:08 schrieb Christoph Pleger <Christoph.Pleger@cs.tu-dortmund.de>:

    Hallo,

    ich habe die folgenden beiden Konfigurationsdateien in /etc/network/interfaces.d/:

    Datei bond0:

    auto bond0
    iface bond0 inet manual
    bond-slaves eno1 eno2
    bond-mode 4
    bond-miimon 100
    bond-updelay 200
    bond-downdelay 200
    bond-lacp-rate 1
    bond-xmit-hash-policy layer2+3
    up ifconfig bond0 0.0.0.0 up

    Datei bond0.305:

    auto bond0.305
    iface bond0.305 inet static
    address xxx.xxx.xxx.xxx/24
    broadcast xxx.xxx.xxx.xxx
    gateway xxx.xxx.xxx.xxx
    vlan-raw-device bond0
    # dns-* options are implemented by the resolvconf package,
    # if installed
    dns-nameservers xxx.xxx.xxx.xxx
    dns-search cs.tu-dortmund.de

    Leider will bond0.305 beim Boot nicht hochfahren und wenn ich es
    manuell mit ifup versuche, kommt:

    ifup: unknown interface bond0.305

    Die Pakete ifenslave und vlan sind installiert. Hat jemand eine Idee,
    warum das Interface nicht starten will?

    Gruß
    Christoph




    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCAAdFiEE/LqLPnpec3BVXLqbno0pmt+BG5UFAmOZwAQACgkQno0pmt+B G5XykxAA3OmIuOVXeVfqwmdgngcx0E4BZGuH/5g2sEUo0PVQi0AhG0nVReUVCQpq dD2cFcdPe3chDKVeeYEPua6ny/8aHnd9js6IzLkUbdT/AOwwXTfSvaB9fYhkUUY8 4X3X0wgNjUtQzzYqesB2tHjFTcq9lN88vu9h+KUu68c12oHiUtBreVRU2Lskoj+i AQKN1XC4A5ESZ5f1c80P0ZxP+9YFNoWksHMz2IqG/Jiy+vsSRj8bsitAsz6/o1p8 U0trMlYL52kEoAKUtmxS6av71nuqr0jpcKvn+8KcnPuxVPyWiaxqQh6Qu99KskRL +yxdJPmA0QLoiwFlz/fVjwAVKzN83FUHK2Zi3xd7yUMsQmqzQTU4eUmVdQn1Ldkl XUtY5sEjq+qoKxbTGcJXjt5KVJ0w/QW41FHhDcAD/Cfy3Vb+eYF7/IXLxyWJo3nc qw1LCCY81ZBdetIJ0xTZWKmhrcZ/rhhD0aBFDbu0UMxK4TKX+bhOMPrjadniNjMi jAyx0efLerPvNuaCfcKXSDx9Br+egvZFxsvejRGTYyLIO/HDGeJkOZJLOIz08DL9 4McrttjBwOljj7ScAEsexkQcaeT+SMNCuLt7ebTnZB0W9M5dRJPhMixhLjY+uCOG 2sysIyrEjMPqCcQhIyO18hTtJppI7EnSNq7gFOqeKHaql5tlMdU=
    =syhV
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christoph Pleger@21:1/5 to All on Wed Dec 14 13:20:01 2022
    Hallo,

    ich habe die folgenden beiden Konfigurationsdateien in /etc/network/interfaces.d/:

    Datei bond0:

    auto bond0
    iface bond0 inet manual
    bond-slaves eno1 eno2
    bond-mode 4
    bond-miimon 100
    bond-updelay 200
    bond-downdelay 200
    bond-lacp-rate 1
    bond-xmit-hash-policy layer2+3
    up ifconfig bond0 0.0.0.0 up

    Datei bond0.305:

    auto bond0.305
    iface bond0.305 inet static
    address xxx.xxx.xxx.xxx/24
    broadcast xxx.xxx.xxx.xxx
    gateway xxx.xxx.xxx.xxx
    vlan-raw-device bond0
    # dns-* options are implemented by the resolvconf package,
    # if installed
    dns-nameservers xxx.xxx.xxx.xxx
    dns-search cs.tu-dortmund.de

    Leider will bond0.305 beim Boot nicht hochfahren und wenn ich es
    manuell mit ifup versuche, kommt:

    ifup: unknown interface bond0.305

    Die Pakete ifenslave und vlan sind installiert. Hat jemand eine Idee,
    warum das Interface nicht starten will?

    Gruß
    Christoph



    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEHeqYcooFjlnR4zwFcOXIip7d3fEFAmOZvKYACgkQcOXIip7d 3fEygxAAj1yl4XW2Zft4ziRzHeK2W/jFd/ltHhPIYI0cZ41IllAzghvyxAn8mV+T 7RKcIPW6P86zdBSR6L22qruPvGsTAtwda5KdqwtgJ6L+L5nJ342yvNG05w2JkuvB /I9oc+qshXwtM+5w4WPygLxBrbQRBeldP1K7F20azTmAICE3F3OUQxRGPhEb5dUB YDEKcroripZb8GMiXBaGpJMSBUNLyEJyF1o/vlPQwwM/CSmb4eNixS5dlu2BeQIL 94X2YF3k3wYo/eM5WPOTlvbXnxnvjGErwWzSmykLuWfhbMinWqyqPtoYzmpHiM+Z JlEI9br8Tnm7jFz74Q46zcddYQyx4hZGlr92l0Y7rC+NR3hZzQAfRE5U6ekxn0Ki VazpxeeqH5xjrnddlVLxb+eQyD5Y2Zq0/7iSLbfJqZIuUp4fi0+C1DFdhCgDOEb4 DrQ02rLBG9uPCmatIQr+JTJINmziiMx2+9QU5fX4dY4AXbpn/V5n9bthhUAzWk8O k1baYhFMwFi+YxQfqczbFWvf2UCqwBGifI85xeDwQUyFNm8bkkcSaUnyUr0+ZSgR qjdYbxZkRd224jG3qdHVv5rqsYxTPUiUOE00Guzwtir3OVJOeS6OsilPIv0ibn+a NfjpMkfFT5S1H/OxBsuHxzM3Us7v8pwCQmy/8DdfqpN/0q+bhWk=
    =ITcu
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christoph Pleger@21:1/5 to All on Wed Dec 14 15:10:01 2022
    Am Mittwoch, dem 14.12.2022 um 13:08 +0100 schrieb Christoph Pleger:
    Hallo,

    ich habe die folgenden beiden Konfigurationsdateien in /etc/network/interfaces.d/:

    Datei bond0:

    auto bond0
    iface bond0 inet manual
            bond-slaves eno1 eno2
            bond-mode 4
            bond-miimon 100
            bond-updelay 200
            bond-downdelay 200
            bond-lacp-rate 1
            bond-xmit-hash-policy layer2+3
            up ifconfig bond0 0.0.0.0 up

    Datei bond0.305:

    auto bond0.305
    iface bond0.305 inet static
            address xxx.xxx.xxx.xxx/24
            broadcast xxx.xxx.xxx.xxx
            gateway xxx.xxx.xxx.xxx
            vlan-raw-device bond0
            # dns-* options are implemented by the resolvconf package,
    # if installed
            dns-nameservers xxx.xxx.xxx.xxx
            dns-search cs.tu-dortmund.de

    Leider will bond0.305 beim Boot nicht hochfahren und wenn ich es
    manuell mit ifup versuche, kommt:

    Das Problem lag darin, dass in der /etc/network/interfaces stand:

    source-dir /etc/network/interfaces.d

    Diese Anweisung ist aber bzgl. der akzeptierten Namen der Dateien im Verzeichnis wählerischer als eine source-Anweisung, z.B. dürfen die
    Namen keine Punkte enthalten. Daher habe ich die Zeile durch

    source /etc/network/interfaces.d/* ersetzt und so das beschriebene
    Problem beseitigt.

    Allerdings funktioniert meine Netzwerkverbindung immer noch nicht. Ich
    pinge einen anderen Rechner im selben Subnetz an und kann per tcpdump
    auf Device bond0.305 sehen, dass über dieses Interface entsprechende ARP-Requests abgeschickt werden. Allerdings zeigt tcpdump keine
    eingehenden Antworten an. Wenn ich tcpdump aber auf Device bond0 laufen
    lasse, sehe ich sowohl die Anfragen als auch die Antworten. Anscheinend
    wird der eingehende Netzwerkverkehr nicht vom übergeordneten zum untergeordneten Netzwerk-Device weiter geleitet. Was könnte das Problem
    sein?

    Gruß
    Christoph

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEHeqYcooFjlnR4zwFcOXIip7d3fEFAmOZ1zoACgkQcOXIip7d 3fHnPQ//Yer7slkoEppxjHpvq53jIkBTgQUL/3UamMdPg0u3W2uO176kNiIEV4GL PsdSN8DQeMf74+tI5i7awoV+49IdJPFJeRqqt0LPAhOR8z25upn2nd/HPnl0BR+q dcEFPhkOAKsRWmGwQ+D6v6ghNrt3uHKAaKKqqborsc6aeFCxcejyRl5N/JvPXSBP bW+43iYjc3U/g3VBecEQnFeHdvepkiIC2NjiEmFFpbW2pZKGctBIV7gYjXWLwdEE zjN1vyetXzLAioZkAQXDpThO5kpbp4S5rQT+8+xTqoPOiNGsh+2h6lIpPXQHOJjv a+Xd8PVyQWkjiFUIvDtPBBIubjexkW8oO46zPekXxEfJeZ47I2IrtuemqWiadoL4 G/8yUGdH5CROXYdQPPYjdGThI/2FAWbm4XUoJPdObJseHvn2uq/EIwHgPyaMmQ01 GsWRtSszTyPdMUu5zVq1fnNJsFFCIGRH0nsRAzRwDHMi+OHhwE8dRTvyeMro5VET v7+mmzlIJG9n1b79xGOmvevyJstHmOSuLn40ZzZd0mZvMrsDwkoibbphCqgsay51 bhHegINvBMM66PKrDChpU0jcMsQUkgQ/E3KMgpG6R8s1pul0E4n9eLrzf4Crcge2 gsyL8zySKC6OrAVFZlBs8oudml3gCexJ48bbOSgzNEZA3KWV8WM=
    =Y8EN
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)