OVS - Problem with MTU 9000

Maz

Member
Apr 11, 2022
7
0
6
Hi,

The MTU over 1500 doesn't work for me
Thanks for your help


cat /etc/network/interfaces auto lo iface lo inet loopback auto enp24s0f0 iface enp24s0f0 inet static address xxx.xxx.xxx.xxx netmask 255.255.255.0 auto enp24s0f1 iface enp24s0f1 inet static address xxx.xxx.xxx.xxx netmask 255.255.255.0 auto eno1 iface eno1 inet manual auto eno2 iface eno2 inet manual auto eno3 iface eno3 inet manual auto eno4 iface eno4 inet manual auto bond0 iface bond0 inet manual ovs_bridge vmbr0 ovs_type OVSBond ovs_bonds eno1 eno2 ovs_options bond_mode=active-backup vlan_mode=native-untagged # ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast trunks=15, 80, 33, 60, 50, 100, 16, 70, 10, 30, 40 mtu 9000 auto bond1 iface bond1 inet manual ovs_bridge vmbr1 ovs_type OVSBond ovs_bonds eno3 eno4 ovs_options bond_mode=active-backup vlan_mode=native-untagged # ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast trunks=15, 80, 33, 60, 50, 100, 16, 70, 10, 30, 40 mtu 9000 #Creating Open vSwitch Bridge auto vmbr0 iface vmbr0 inet manual ovs_type OVSBridge ovs_ports bond0 vlan50 vlan16 mtu 9000 ##Creating Open vSwitch Bridge for bond1 auto vmbr1 iface vmbr1 inet manual ovs_type OVSBridge ovs_ports bond1 vlan16 vlan50 mtu 9000 #Creating Proxmox Intport for physical node 1 auto vlan50 iface vlan50 inet static ovs_type OVSIntPort ovs_bridge vmbr0 ovs_options tag=50 ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif address xxx.xxx.xxx.xxx netmask 255.255.255.0 gateway xxx.xxx.xxx.xxx mtu 9000 auto vlan16 iface vlan16 inet static ovs_type OVSIntPort ovs_bridge vmbr1 ovs_options tag=16 ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif address xxx.xxx.xx.xxx netmask 255.255.255.0 mtu 9000

# ifreload -a error: bond0 : bond0: up cmd '/etc/network/if-up.d/postfix' failed (illegal environment variable name) error: bond1 : bond1: up cmd '/etc/network/if-up.d/postfix' failed (illegal environment variable name)

#cat /sys/class/net/vmbr0/mtu 1500 # cat /sys/class/net/vmbr1/mtu 1500

# netstat -i Kernel Interface table Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg bond0 1500 0 0 0 0 13 0 0 0 BMRU bond1 1500 0 0 0 0 13 0 0 0 BMRU eno1 1500 13709 0 0 0 2127 0 0 0 BMRU eno2 1500 12027 0 0 0 13 0 0 0 BMRU eno3 1500 11083 0 0 0 4388 0 0 0 BMRU eno4 1500 7350 0 0 0 13 0 0 0 BMRU enp24s0f 1500 0 0 0 0 13 0 0 0 BMRU enp24s0f 1500 16 0 0 0 13 0 0 0 BMRU lo 65536 2958 0 0 0 2958 0 0 0 LRU vlan16 1500 3982 0 0 0 4371 0 0 0 BMRU vlan50 1500 4938 0 0 0 2021 0 0 0 BMRU vmbr0 1500 5623 0 0 0 13 0 0 0 BMRU

# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enp24s0f0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether b4:96:91:5c:19:38 brd ff:ff:ff:ff:ff:ff inet 192.168.80.151/24 scope global enp24s0f0 valid_lft forever preferred_lft forever inet6 fe80::b696:91ff:fe5c:1938/64 scope link valid_lft forever preferred_lft forever 3: enp24s0f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000 link/ether b4:96:91:5c:19:3a brd ff:ff:ff:ff:ff:ff inet 192.168.70.151/24 scope global enp24s0f1 valid_lft forever preferred_lft forever inet6 fe80::b696:91ff:fe5c:193a/64 scope link valid_lft forever preferred_lft forever 4: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovs-system state UP group default qlen 1000 link/ether e4:43:4b:98:8a:ec brd ff:ff:ff:ff:ff:ff altname enp25s0f0 inet6 fe80::e643:4bff:fe98:8aec/64 scope link valid_lft forever preferred_lft forever 5: eno2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovs-system state UP group default qlen 1000 link/ether e4:43:4b:98:8a:ed brd ff:ff:ff:ff:ff:ff altname enp25s0f1 inet6 fe80::e643:4bff:fe98:8aed/64 scope link valid_lft forever preferred_lft forever 6: eno3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovs-system state UP group default qlen 1000 link/ether e4:43:4b:98:8a:ee brd ff:ff:ff:ff:ff:ff altname enp26s0f0 inet6 fe80::e643:4bff:fe98:8aee/64 scope link valid_lft forever preferred_lft forever 7: eno4: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master ovs-system state UP group default qlen 1000 link/ether e4:43:4b:98:8a:ef brd ff:ff:ff:ff:ff:ff altname enp26s0f1 inet6 fe80::e643:4bff:fe98:8aef/64 scope link valid_lft forever preferred_lft forever 8: ovs-system: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 link/ether 0a:27:46:b7:c3:24 brd ff:ff:ff:ff:ff:ff 9: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether e4:43:4b:98:8a:ec brd ff:ff:ff:ff:ff:ff inet6 fe80::b0f6:5cff:fe96:6b4e/64 scope link valid_lft forever preferred_lft forever 10: bond0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether 66:4a:09:bc:e0:c9 brd ff:ff:ff:ff:ff:ff inet6 fe80::644a:9ff:febc:e0c9/64 scope link valid_lft forever preferred_lft forever 11: vmbr1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether e4:43:4b:98:8a:ee brd ff:ff:ff:ff:ff:ff inet6 fe80::d059:efff:fe22:3b4f/64 scope link valid_lft forever preferred_lft forever 12: bond1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether 76:d9:76:01:7e:a4 brd ff:ff:ff:ff:ff:ff inet6 fe80::74d9:76ff:fe01:7ea4/64 scope link valid_lft forever preferred_lft forever 13: vlan50: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether 9a:00:77:b5:50:d7 brd ff:ff:ff:ff:ff:ff inet 192.168.50.151/24 scope global vlan50 valid_lft forever preferred_lft forever inet6 fe80::9800:77ff:feb5:50d7/64 scope link valid_lft forever preferred_lft forever 14: vlan16: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN group default qlen 1000 link/ether 9e:cb:63:b6:41:5d brd ff:ff:ff:ff:ff:ff inet 192.168.16.151/24 scope global vlan16 valid_lft forever preferred_lft forever inet6 fe80::9ccb:63ff:feb6:415d/64 scope link valid_lft forever preferred_lft forevervmbr1 1500 4225 0 0 0 13 0 0 0 BMRU

# pveversion -v proxmox-ve: 7.1-1 (running kernel: 5.13.19-6-pve) pve-manager: not correctly installed (running version: 7.1-11/8d529482) pve-kernel-helper: 7.1-13 pve-kernel-5.13: 7.1-9 pve-kernel-5.11: 7.0-10 pve-kernel-5.4: 6.4-5 pve-kernel-5.0: 6.0-11 pve-kernel-5.13.19-6-pve: 5.13.19-14 pve-kernel-5.13.19-3-pve: 5.13.19-7 pve-kernel-5.13.19-1-pve: 5.13.19-3 pve-kernel-5.11.22-7-pve: 5.11.22-12 pve-kernel-5.11.22-4-pve: 5.11.22-9 pve-kernel-5.4.128-1-pve: 5.4.128-2 pve-kernel-5.4.119-1-pve: 5.4.119-1 pve-kernel-5.4.60-1-pve: 5.4.60-2 pve-kernel-5.4.44-2-pve: 5.4.44-2 pve-kernel-5.0.21-5-pve: 5.0.21-10 pve-kernel-5.0.15-1-pve: 5.0.15-1 ceph-fuse: 14.2.21-1 corosync: 3.1.5-pve2 criu: 3.15-1+pve-1 glusterfs-client: 9.2-1 ifupdown: residual config ifupdown2: 3.1.0-1+pmx3 ksm-control-daemon: 1.4-1 libjs-extjs: 7.0.0-1 libknet1: 1.22-pve2 libproxmox-acme-perl: 1.4.1 libproxmox-backup-qemu0: 1.2.0-1 libpve-access-control: 7.1-6 libpve-apiclient-perl: 3.2-1 libpve-common-perl: not correctly installed libpve-guest-common-perl: 4.1-1 libpve-http-server-perl: 4.1-1 libpve-storage-perl: 7.1-1 libqb0: 1.0.5-1 libspice-server1: 0.14.3-2.1 lvm2: 2.03.11-2.1 lxc-pve: 4.0.11-1 lxcfs: 4.0.11-pve1 novnc-pve: 1.3.0-2 openvswitch-switch: 2.15.0+ds1-2+deb11u1 proxmox-backup-client: 2.1.5-1 proxmox-backup-file-restore: 2.1.5-1 proxmox-mini-journalreader: 1.3-1 proxmox-widget-toolkit: 3.4-7 pve-cluster: 7.1-3 pve-container: 4.1-4 pve-docs: 7.1-2 pve-edk2-firmware: 3.20210831-2 pve-firewall: 4.2-5 pve-firmware: 3.3-6 pve-ha-manager: not correctly installed pve-i18n: 2.6-2 pve-qemu-kvm: 6.1.1-2 pve-xtermjs: 4.16.0-1 qemu-server: 7.1-4 smartmontools: 7.2-pve2 spiceterm: 3.2-2 swtpm: 0.7.1~bpo11+1 vncterm: 1.7-1 zfsutils-linux: 2.1.2-pve1
 
try the below for ovs.

ovs_mtu 9000
Thanks,

Do you have any idea about this error

# ifreload -a error: bond0 : bond0: up cmd '/etc/network/if-up.d/postfix' failed (illegal environment variable name) error: bond1 : bond1: up cmd '/etc/network/if-up.d/postfix' failed (illegal environment variable name)
 
please remmeber in the case ovswitch ovs_mtu 9000 in the vmbrX internal port X e interface Physics changel isrequired the mtu 9000 ovs_mtu 9000
 

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!