openvswitch and proxmox. how am I -supposed- to do it

ltgcc

Member
Dec 28, 2021
12
1
8
64
So it has been a **long** time since I've done anything with the networking on my proxmox ve setup. For reasons that I have no recollection of (other than maybe 'sounds cool!') I went with openvswitch. I now need to do some vlan work.

When I open /etc/network/interfaces the first thing I see is:

Code:
   #network interface settings; autogenerated
   # Please do NOT modify this file directly, unless you know what
   # you're doing.

Which...is not what I remember. I'd swear I did it all in 'interfaces' when I set it up long ago.

So, given that I'm not supposed to use /etc/network/interfaces, how am I SUPPOSED to do networking?

Info:

pve-manager/8.2.7/3e0176e6bb2ade3b (running kernel: 6.8.12-2-pve)
 
Last edited:
I guess it could be the webpage 'host->network' selections, but that seems rather clumsy. Is there a more generally acceptable, maybe bashable way?

Obviously, I 'don't know what I'm doing' for the purposes of the interfaces file :D
 
Last edited:
with openvswitch, vlans are managed directly on the vm nic option.

in general, /etc/network/interfaces is only here to declare interfaces, management ip, bridges.
once it's done, generaly, you don't need to change it anymore.

Then simply declare vlan on vm nic.
 
Last edited: