0

On my Ubuntu servers (16.04) I used to create a bonding between 2 interfaces and set 2 adresses on it from 2 different vlan.

I can't manage to create the same configuration with Netplan for my new servers, I only see examples with 1 bonding and 1 address, or 2 vlan but no bonding...

Here is the interface file file I would like to reproduce :

auto enp61s0f0
    iface enp61s0f0 inet manual
    bond-master bond0
    mtu 9000
auto enp61s0f1
    iface enp61s0f1 inet manual
    bond-master bond0
    mtu 9000
auto bond0
    iface bond0 inet manual
    bond-mode balance-xor
    bond-miimon 100
    bond-slaves none
    mtu 9000
auto bond0.170
    iface bond0.170 inet static
    vlan-raw-device bond0
    address 192.168.170.190
    netmask 255.255.255.0
    network 192.168.170.0
    broadcast 192.168.170.255
    gateway 192.168.170.1
    dns-nameservers 192.168.170.100 192.168.170.101
    dns-search network.lan
    mtu 9000
auto bond0.186
    iface bond0.186 inet static
    vlan-raw-device bond0
    address 192.168.186.225
    netmask 255.255.255.0
    network 192.168.186.0
    broadcast 192.168.186.255
    mtu 9000

Do you have any idea how I could do it ?

Thank you !

Ludwig

0

https://netplan.io/examples#vlans gives an example of multiple vlans on the same link. This works the same whether the "link" is a physical ethernet device or a bond, you just change the interface name in the config.

0

Thank you for your answer ! I actually used vlan as you mentioned but it is still not working, my bondings are created but no IP is set on them.

Since I'm using console port via IPMI and I'm not allowed to post picture I've uploaded a screenshot of my config on imgur, if maybe you notice something wrong on it :

01-netcfg.yaml

Thank you !

Ludwig

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.