Hi,
I've been trying to configure jumbo frames for bridged veth devices. It seems that the bridge device (vmbr1 in my case) takes the smallest MTU of any device connected to it. The first part, setting MTU on the physical device, seems to be solved by putting in /etc/network/interfaces on the host:
Note the pre-up line.
Furthermore, I set the MTU inside the container /etc/network/interfaces:
where eth1 is the veth device connected to vmbr1.
However, the MTU on the bridge goes down to 1500 as soon as I add the host side veth device (veth100102.1) to the bridge. It seems that you also need to set the MTU in the host:
I cannot, however, find a way to make this automatic. The openvz tools and vznetaddbr script don't seem to make any provision (as far as I can find) for setting the mtu on the host side veth interface. How is one supposed to manage this?
Thanks
Neilen
I've been trying to configure jumbo frames for bridged veth devices. It seems that the bridge device (vmbr1 in my case) takes the smallest MTU of any device connected to it. The first part, setting MTU on the physical device, seems to be solved by putting in /etc/network/interfaces on the host:
Code:
auto vmbr1
iface vmbr1 inet manual
bridge_ports eth4
bridge_stp off
bridge_fd 0
pre-up ifconfig eth4 mtu 9000
Note the pre-up line.
Furthermore, I set the MTU inside the container /etc/network/interfaces:
Code:
auto eth1
iface eth1 inet static
address 10.0.0.12
netmask 255.255.255.0
mtu 9000
where eth1 is the veth device connected to vmbr1.
However, the MTU on the bridge goes down to 1500 as soon as I add the host side veth device (veth100102.1) to the bridge. It seems that you also need to set the MTU in the host:
Code:
ifconfig veth100102.1 mtu 9000
I cannot, however, find a way to make this automatic. The openvz tools and vznetaddbr script don't seem to make any provision (as far as I can find) for setting the mtu on the host side veth interface. How is one supposed to manage this?
Thanks
Neilen