Trying to get openvswitch working but it wont bring up the physical interfaces

FellTarsier

New Member
Jul 2, 2024
4
0
1
So my configuration is as follows:
eno1 - trunk supporting vlans 101, 102, 103, and 200
eno2 - trunk supporting vlan 254
Server is connected to a Cisco Nexus 3064PQ configured in switchport mode trunk for both links with the appropriate vlans added on. There are no default tags for any of the VLANs so that must be added.

I have installed openvswitch and am attempting to migrate to that over the default way of doing things.

Here is my previous, before openvswitch configuration file in /etc/network/interfaces:

Code:
iface eno1 inet manual
    pre-up ethtool -G eno1 rx 4096 tx 4096
    offload-rx on
    offload-tx on
    rx 4096
    tx 4096
    mtu 9000

iface eno2 inet manual
    pre-up ethtool -G eno2 rx 4096 tx 4096
    offload-rx on
    offload-tx on
    rx 4096
    tx 4096
    mtu 9000

auto vmbr0
iface vmbr0 inet manual
    bridge-ports eno1
    bridge-stp on
    bridge-vlan-aware yes
    bridge-vids 2-4094
    mtu 9000

auto vmbr0.102
iface vmbr0.102 inet static
    address 10.0.2.31/24
    gateway 10.0.2.254
    mtu 9000

auto vmbr1
iface vmbr1 inet manual
    bridge-ports eno2
    bridge-stp off
    bridge_fd on
    bridge-vids 2-4094
    bridge-vlan-aware yes
    mtu 9000

auto vmbr1.254
iface vmbr1.254 inet static
    address 10.0.254.2/24
    mtu 9000

auto eno4
iface eno4
    address 10.0.201.2/24
    mtu 9000

And here is my current /etc/network/interfaces configuration file:

Code:
auto vmbr0
iface vmbr0 inet manual
    ovs_mtu 9000
    ovs_type OVSBridge
    ovs_ports eno1 vlan102

auto vmbr1
iface vmbr1 inet manual
    ovs_type OVSBridge
    ovs_ports eno2 vlan254
    ovs_mtu 9000

iface eno1 inet manual
    ovs_type OVSPort
    ovs_mtu 9000
    ovs_bridge vmbr0

iface eno2 inet manual
    ovs_type OVSPort
    ovs_mtu 9000
    ovs_bridge vmbr1

auto vlan102
iface vlan102 inet static
    address 10.0.2.31
    netmask 255.255.255.0
    gateway 10.0.2.254
    ovs_type OVSIntPort
    ovs_bridge vmbr0
    ovs_options tag=102
    ovs_mtu 9000

auto vlan254
iface vlan254 inet static
    address 10.0.254.2
    netmask 255.255.255.0
    ovs_mtu 9000
    ovs_type OVSIntPort
    ovs_bridge vmbr1
    ovs_options tag=254

I cannot get openvswitch to bring up eno1 and eno2 no matter what configuration options I use. Based on the proxmox wiki and several guides I've found online I believe my configuration to be correct but even after multiple reboots and poking around the wiki and forums I've been unable to get openvswitch to bring the interfaces up. An `ip link` shows them as DOWN. If I manually do a ip set link up <int> even then it still doesn't work, though the links do become active and show as up in both the cisco and on the host. I'm at a bit of a loss here and would appreciate any guidance I could get. Thanks!

Also note, I'm just trying to get vlans 102 and 254 working for now. I figure getting those going will be easy once I have the two important ones, 102 and 254 going.
 

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!