incus exec c0 -- ip addr ls dev eth0 | grep mtu
15: eth0@if16: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
I tried restarting incus and containers unsuccessfully.
It seems the mtu profile value is not considered…
Any hint?
Right, so your container has its own eth0 device set in the configuration, overriding the one from the profile. That eth0 doesn’t have an mtu property set, so it’s using the default value of 1500.
Hello,
When I try to edit the configuration instead of profile, I get the following message:
Erreur lors de la lecture de la configuration : Invalid devices: Device validation failed for "eth0": Cannot use "mtu" property in conjunction with "network" property
Press enter to open the editor again or ctrl+c to abort change
I have the same request with the ability to change the vlan tag either via profile or configuration.
A bit of explanation:
I have finally found a way to solve my MTU problem. PMTU doesn’t work with an IPSec + VXLAN tunnel. I added a POSTROUTING rule for traffic flowing out of this tunnel with defined MTU values for IPv4 and IPv6. There is no more need to change the MTU value at the container interface level anymore.