OVS 9k vs 1500 MTU

czechsys

Renowned Member
Nov 18, 2015
386
36
93
Hi,

i am using pve 5.1 with openvswitch, network is set to 9k MTU. Setup looks as this:

Code:
allow-auto ens2f2
iface ens2f2 inet manual
...
allow-vmbr1 bond1
iface bond1 inet manual
 ovs_bridge vmbr1
 ovs_type OVSBond
 ovs_bonds ens2f2 ...
 ovs_options lacp=active bond-mode=balance-tcp
 pre-up ( /sbin/ip link set mtu 9000 ens2f2 ....)
 up /sbin/ip link set mtu 9000 bond1

auto vmbr1
iface vmbr1 inet manual
 ovs_type OVSBridge
 ovs_ports bond1
 mtu 9000

So, everything is on 9k MTU. But...sometimes VM start with 1500 MTU (or, change to MTU 1500 via ip link from pve host) and OVS automatically switch to lowest MTU on vmbr1, so this is result:
Code:
ens2f2 - 9k
bond1 - 1500
vmbr1 - 9k
any internal port on vmbr1 - 1500

So communication fails. In OVS documentation is "mtu_request" option to disable automatic change, but it doesn't work on bond1. Any way how to block bond1 from changing MTU?

Or, any way to reconfig to standard linux bridges without needing to configure any vlan? I need OVS feature using any vlan without configuration on PVE hosts, just adding vlan tag in vm's network device config.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!