Talk:LXD configuration for OSM Release THREE

From OSM Public Wiki
Revision as of 13:41, 10 November 2017 by Tierno (talk | contribs) (Created page with "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}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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