The Juju bridge script, when creating the bridge device, generally
leaves all iface options as it found them.

For example:

auto eth1.16
iface eth1.16 inet static
    address 10.245.184.100/24
    vlan-raw-device eth1
    mtu 1500
    vlan_id 16

becomes the following:

iface eth1.16 inet manual
    address 10.245.184.100/24
    vlan-raw-device eth1
    mtu 1500
    vlan_id 16

auto br-eth1.16
iface br-eth1.16 inet static
    address 10.245.184.100/24
    mtu 1500
    bridge_ports eth1.16
    bridge_stp off
    bridge_maxwait 0

Note: It doesn't propagate any bond options.

For example:

auto eth0
iface eth0 inet manual
    bond-lacp_rate slow
    bond-xmit_hash_policy layer2
    bond-miimon 100
    bond-master bond0
    mtu 1500
    bond-mode active-backup

[ skipping eth1 for clarity ]

auto bond0
iface bond0 inet dhcp
    bond-lacp_rate slow
    bond-xmit_hash_policy layer2
    bond-miimon 100
    mtu 1500
    bond-mode active-backup
    hwaddress 52:54:00:1c:f1:5b
    bond-slaves none

becomes the following when bridged:

auto eth0
iface eth0 inet manual
    bond-lacp_rate slow
    bond-xmit_hash_policy layer2
    bond-miimon 100
    bond-master bond0
    mtu 1500
    bond-mode active-backup

auto bond0
iface bond0 inet manual
    bond-lacp_rate slow
    bond-xmit_hash_policy layer2
    bond-miimon 100
    mtu 1500
    bond-mode active-backup
    hwaddress 52:54:00:1c:f1:5b
    bond-slaves none
    dns-nameservers 10.17.20.200
    dns-search maas19

auto br-bond0
iface br-bond0 inet dhcp
    mtu 1500
    hwaddress 52:54:00:1c:f1:5b
    bridge_ports bond0
    bridge_stp off
    bridge_maxwait 0
    dns-nameservers 10.17.20.200
    dns-search maas19

I generally propagated the existing options when creating the bridge
device. Should MTU be an exception now?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1565804

Title:
  ifup of vlan interfaces failing during networking start - RTNETLINK
  answers: File exists

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/1565804/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to