MTU not applied to a bridge
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Netplan |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 18.04
in a setup like this
```
...
ens6:
dhcp4: no
mtu: 9000
match:
ens7:
dhcp4: no
mtu: 9000
match:
bonds:
bondA:
dhcp4: no
mtu: 9000
- ens6
- ens7
bridges:
br-bondA:
dhcp4: no
- bondA
```
After netplan apply br-bondA keeps MTU 1500, bondA and physical interfaces are at 9000.
Looks like netplan apply does not change bridge MTU at all. I could set it with ip link to whatever value, then netplan apply and mtu is not changed.
It looks like only ip link or system restart (when bridge is recreated) allow to change MTU on this bridge
steps to reproduce
5: ens6: <BROADCAST, MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
6: ens7: <BROADCAST,
network:
macaddress: '18:02:18:34:33:49'
set- name: ens6
macaddress: '18:02:18:34:33:59'
set- name: ens7
version: 2
ethernets:
...
ens6:
dhcp4: false
match:
mtu: 1500
ens7:
dhcp4: false
match:
mtu: 1500
adding bondA
ens6:
macaddress: '18:02:18:34:33:49'
set- name: ens6
macaddress: '18:02:18:34:33:59'
set- name: ens7
interfaces :
- ens6
- ens7
dhcp4: false
match:
mtu: 1500
ens7:
dhcp4: false
match:
mtu: 1500
bonds:
bondA:
dhcp4: false
mtu: 2000
netplan apply MULTICAST, SLAVE,UP, LOWER_UP> mtu 2000 qdisc fq_codel master bondA state UP group default qlen 1000 MULTICAST, SLAVE,UP, LOWER_UP> mtu 2000 qdisc fq_codel master bondA state UP group default qlen 1000 MULTICAST, MASTER, UP,LOWER_ UP> mtu 2000 qdisc noqueue state UP group default qlen 1000
5: ens6: <BROADCAST,
6: ens7: <BROADCAST,
7: bondA: <BROADCAST,
adding br-bondA
ens6:
macaddress: '18:02:18:34:33:49'
set- name: ens6
macaddress: '18:02:18:34:33:59'
set- name: ens7
interfaces :
- ens6
- ens7
interfaces:
- bondA
dhcp4: false
match:
mtu: 1500
ens7:
dhcp4: false
match:
mtu: 1500
bonds:
bondA:
dhcp4: false
mtu: 2000
bridges:
br-bondA:
dhcp4: false
mtu: 3000
netplan apply MULTICAST, SLAVE,UP, LOWER_UP> mtu 2000 qdisc fq_codel master bondA state UP group default qlen 1000 MULTICAST, SLAVE,UP, LOWER_UP> mtu 2000 qdisc fq_codel master bondA state UP group default qlen 1000 MULTICAST, MASTER, UP,LOWER_ UP> mtu 2000 qdisc noqueue master br-bondA state UP group default qlen 1000 MULTICAST, UP,LOWER_ UP> mtu 2000 qdisc noqueue state UP group default qlen 1000 <= MTU not set to 3000
5: ens6: <BROADCAST,
6: ens7: <BROADCAST,
7: bondA: <BROADCAST,
8: br-bondA: <BROADCAST,
later another tests
ip l set br-bondA mtu 8888 MULTICAST, SLAVE,UP, LOWER_UP> mtu 9000 qdisc fq_codel master bondA state UP group default qlen 1000 MULTICAST, SLAVE,UP, LOWER_UP> mtu 9000 qdisc fq_codel master bondA state UP group default qlen 1000 MULTICAST, UP,LOWER_ UP> mtu 8888 qdisc noqueue state UP group default qlen 1000 <= set correctly MULTICAST, MASTER, UP,LOWER_ UP> mtu 9000 qdisc noqueue master br-bondA state UP group default qlen 1000
5: ens6: <BROADCAST,
6: ens7: <BROADCAST,
7: br-bondA: <BROADCAST,
8: bondA: <BROADCAST,
ip l set br-bondA mtu 8887 MULTICAST, SLAVE,UP, LOWER_UP> mtu 9000 qdisc fq_codel master bondA state UP group default qlen 1000
5: ens6: <BROADCAST,
6: en...