ovs mtu 9000 with promox 5

hec

Renowned Member
Jan 8, 2009
278
18
83
Wien
www.vector-its.at
Which is the correct way to change the mtu of a bridge or a internal port to mtu 9000?

I can set the ports in the bond to mtu9000 but not the bridge or the vlan.

ovs-vsctl set int vlan50 mtu_request=9000
or
ovs-vsctl set int vmbr1 mtu_request=9000

does set the request size but mtu is still1500.

Code:
_uuid               : f14a1946-3646-45dc-bf14-062c5dbf246c
admin_state         : up
bfd                 : {}
bfd_status          : {}
cfm_fault           : []
cfm_fault_status    : []
cfm_flap_count      : []
cfm_health          : []
cfm_mpid            : []
cfm_remote_mpids    : []
cfm_remote_opstate  : []
duplex              : []
error               : []
external_ids        : {}
ifindex             : 14
ingress_policing_burst: 0
ingress_policing_rate: 0
lacp_current        : []
link_resets         : 1
link_speed          : []
link_state          : up
lldp                : {}
mac                 : []
mac_in_use          : "56:f8:db:59:11:f6"
mtu                 : 1500
mtu_request         : 9000
name                : "vlan50"
ofport              : 4
ofport_request      : []
options             : {}
other_config        : {}
statistics          : {collisions=0, rx_bytes=467637, rx_crc_err=0, rx_dropped=0, rx_errors=0, rx_frame_err=0, rx_over_err=0, rx_packets=5179, tx_bytes=280496, tx_dropped=0, tx_errors=0, tx_packets=2906}
status              : {driver_name=openvswitch}
type                : internal

Code:
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP mode DEFAULT group default qlen 1000
    link/ether c8:0a:a9:f1:6e:a4 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether c8:0a:a9:f1:6e:a5 brd ff:ff:ff:ff:ff:ff
4: eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 9000 qdisc mq master ovs-system state DOWN mode DEFAULT group default qlen 1000
    link/ether 68:05:ca:30:61:8c brd ff:ff:ff:ff:ff:ff
5: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether c8:0a:a9:f1:6e:a6 brd ff:ff:ff:ff:ff:ff
6: eth4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether c8:0a:a9:f1:6e:a7 brd ff:ff:ff:ff:ff:ff
7: eth5: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether c8:0a:a9:f1:6e:a8 brd ff:ff:ff:ff:ff:ff
8: eth6: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether c8:0a:a9:f1:6e:a9 brd ff:ff:ff:ff:ff:ff
9: eth7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq master ovs-system state UP mode DEFAULT group default qlen 1000
    link/ether 68:05:ca:30:61:8d brd ff:ff:ff:ff:ff:ff
10: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether c8:0a:a9:f1:6e:a4 brd ff:ff:ff:ff:ff:ff
11: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 7e:7c:4a:83:64:2f brd ff:ff:ff:ff:ff:ff
12: vmbr1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 68:05:ca:30:61:8c brd ff:ff:ff:ff:ff:ff
13: bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether f6:a7:71:92:f7:5a brd ff:ff:ff:ff:ff:ff
14: vlan50: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether 56:f8:db:59:11:f6 brd ff:ff:ff:ff:ff:ff

Any ideas?

The interface looks this now:
Code:
allow-vmbr1 bond0
iface bond0 inet manual
        ovs_bonds eth3 eth7
        ovs_type OVSBond
        ovs_bridge vmbr1
        pre-up ( ip link set eth3 mtu 9000 && ip link set eth7 mtu 9000 )
        ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast
        mtu 9000

auto vmbr0
iface vmbr0 inet static
        address  192.168.61.85
        netmask  255.255.255.0
        gateway  192.168.61.1
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

auto vmbr1
iface vmbr1 inet manual
        ovs_type OVSBridge
        ovs_ports bond0 vlan50
        mtu 9000

allow-vmbr1 vlan50
iface vlan50 inet static
        address  192.168.50.85
        netmask  255.255.255.0
        ovs_type OVSIntPort
        ovs_bridge vmbr1
        ovs_options tag=50
        mtu 9000

btw a configuration option from the gui would be nice for proxmox 5
 
Last edited:
the next released pve-kernel packages should fix this issue for OVS.