Talk:LXD configuration for OSM Release THREE
From OSM Public Wiki
For the MTU configuration after LXD configuration I propose user to run the following:
# get main interface MTU DEFAULT_INTERFACE=$(route -n | awk '$1~/^0.0.0.0/ {print $8}') DEFAULT_MTU=$( ip addr show $DEFAULT_INTERFACE | grep -i -E "(MTU|mtu)(:| +)[0-9]+" -o | grep -E "[0-9]+" -o ) # set lxc MTU if diferent from 1500 [ "$DEFAULT_MTU" -ne 1500 ] && lxc profile device set default eth0 mtu $DEFAULT_MTU
Not needed to set mtu of lxdbr0 mtu xxxx. Just editing lxc default profile is enough and it is permanent