ovs-vsctl vs. /etc/network/interfaces

hansB

Member
Sep 24, 2019
1
0
6
54
hi,

i'm an absolute new in the world of proxmox, so i have a fundamental question about using ovs - yes i know ovs is not specific proxmox, but i will use it in a proxmox virtualization.
in which case i use ovs-vsctl and in wich case the classic interface configuration (/etc/network/interfaces).

the the main question, are there any commands to write the ovs-vsctl commands to the interface config file or thats absolut different thinks ?


so what i wanna do ?

i have two physical interfaces and one of the should be used as vlan trunk and the other with the untagged management.
internal are 3-4 vm which should only present a interface with untagged vlan as access port - so as i seen this can be tap Interfaces - right ?
but what are the recommented way to configure this envirionment ?

thanks a lot
 
Hi,

you have to use the interfaces file if you like that your settings stay persistent.
Here is the Doku for it [1].
If you need ovs features where no interface notification exist then you can use

Code:
[post|pre]-[up|down] ovs-vsctl .....

1.) https://pve.proxmox.com/wiki/Open_vSwitch