3

I'm running Linux containers created by LXD on Ubuntu 14.04.05. I have a lxdbr0 interface setup, but its default MTU is 1500. How do I update it?

Esa Jokinen
  • 46,944
  • 3
  • 83
  • 129
bits
  • 131
  • 4

2 Answers2

1

At least in recent versions you can alter network interface configuration using the

lxc network set <network> key=value... [flags]

command.

E.g. to alter the MTU on an LXD-managed interface you might invoke

lxc network set lxdbr0 bridge.mtu=1234

Reference on things you can alter with the command: https://linuxcontainers.org/lxd/docs/master/networks

ojrask
  • 121
  • 5
0

ifconfig lxdbr0 mtu 9000 can be used to change the MTU.

Tero Kilkanen
  • 36,796
  • 3
  • 41
  • 63
  • 1
    Use `ip link set mtu 9000 dev lxbr0` instead. `ifconfig` is deprecated, and isn't even installed by default in the majority of modern distros. Be advised, this will only set your *running* configuration. However, if you have `ifconfig` installed, this will work. – Spooler Apr 20 '17 at 02:17