Bonding / Ubuntu 20.04

I recently installed Ubuntu 20.04 on a VM with 2 ethernet ports. I'm trying to bond those 2 ethernet ports, but I can't find the right way. For example, someone says without netplan, others with netplan, bond with bridge, etc.

I'm new in this, is there a way to do a simple bonding?

Update: I reached this point:

network:
version: 2
renderer: networkd
ethernets:
    eth1:
        dhcp4: false

    eth2:
        dhcp4: false

bonds:
    bond0:
        dhcp4: false
        interfaces:
        - eth1
        - eth2
        parameters:
            mode: balance-rr
            mii-monitor-interval: 100
bridges:
    br0:
        dhcp4: true
        interfaces:
        - bond0

And I can't get the IP for br0. The same happens if I only use bond0 without br0.

Thanks

0
задан 11 August 2020 в 12:27

1 ответ

Основываясь на вашей и моей собственной конфигурации, я могу представить, что может сработать что-то вроде этого:

network:
    version: 2
    renderer: networkd
    ethernets:
        eth1:
            dhcp4: false
        eth2:
            dhcp4: false
    bonds:
        bond0:
            dhcp4: false
            interfaces:
              - eth1
              - eth2
            parameters:
                mode: balance-rr
                mii-monitor-interval: 100
    bridges:
        br0:
            dhcp4: true
            gateway4: your.gate.way.addr
            interfaces:
              - bond0
0
ответ дан 11 August 2020 в 20:05

Другие вопросы по тегам:

Похожие вопросы: