Konfigurace 802.3ad LACP bonding na Ubuntu 18.04

creco

Konfigurace 802.3ad LACP bonding na Ubuntu 18.04
« kdy: 08. 06. 2019, 15:06:46 »
Přecházím z Ubuntu 14.04 na 18.04

Na ubuntu 14.04 jsem měl tuto konfiguraci bondingu která fungovala a rozkládala sítovou zátěž na všechny Eth:

iface bond0 inet static
        address 192.168.123.15
        netmask 255.255.255.0
        network 192.168.123.0
        broadcast 192.168.123.255
        dns-nameservers 8.8.8.8
        bond-mode 4
        bond-miimon 100
        bond-lacp-rate 1
        bond-downdelay 200
        bond-updelay 200
        bond-slaves p3p1 p3p2 p3p3
        bond-xmit_hash_policy layer3+4
        gateway 192.168.123.1


Pokusil jsem se tuto konfiguraci přenést na Ubuntu 18.04 ale přesto mi běží traffic pouze přes první Eth:

        bond0:
            addresses:
            - 192.168.123.15/24
            gateway4: 192.168.123.1
            interfaces:
            - ens2f0
            - ens2f1
            - ens2f2
            nameservers:
                addresses:
                - 8.8.8.8
                - 8.8.4.4
            parameters:
                lacp-rate: fast
                mode: 802.3ad
                mii-monitor-interval: 100
                ad-select: bandwidth
                all-slaves-active: true
                up-delay: 200
                down-delay: 200
                transmit-hash-policy: layer3+4

Nějaký nápad proč to běží pouze přes první Eth?

Děkuju


creco

Re:Konfigurace 802.3ad LACP bonding na Ubuntu 18.04
« Odpověď #1 kdy: 08. 06. 2019, 15:59:39 »
Vyřešeno. Nestačilo použít:

netplan apply

ale po restartu celého serveru se bond správně chytnul.

k3dAR

  • *****
  • 2 838
  • porad nemam telo, ale uz mam hlavu... nobody
    • Zobrazit profil
    • E-mail
Re:Konfigurace 802.3ad LACP bonding na Ubuntu 18.04
« Odpověď #2 kdy: 08. 06. 2019, 20:26:57 »
pokud by nekdo resil to same a nechtel pouzit netplan, staci:
Kód: [Vybrat]
sudo apt install ifupdown ifenslavea pouzit puvodni /etc/network/interfaces jen pro bond vynechat gateway (predpokladam pouziti bond na lan, s tim ze wan ma gw definovanou)