Would be nice if Proxmox add option to handle patch ports for OpenVSwitch in UI.
I achieved a working configuration by:
I achieved a working configuration by:
Code:
/etc/network/interfaces
auto lo
iface lo inet loopback
auto enp2s0
iface enp2s0 inet manual
ovs_type OVSPort
ovs_bridge vmbr0
auto vlan100
iface vlan100 inet static
address 192.168.100.254/24
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=100
auto vlan1000
iface vlan1000 inet static
address 192.168.1.254/24
gateway 192.168.1.1
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=1000
auto vlan172
iface vlan172 inet static
address 172.16.1.1/24
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=172
auto vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports enp2s0 vlan100 vlan1000 vlan172 patch0
auto patch0
iface patch0 inet manual
ovs_bridge vmbr0
ovs_type OVSPatchPort
ovs_patch_peer patch2
ovs_options vlan_mode=trunk trunk=5,10,100,1000
auto vmbr1
iface vmbr1 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
auto vmbr2
iface vmbr2 inet manual
ovs_type OVSBridge
ovs_ports patch2
auto patch2
iface patch2 inet manual
ovs_bridge vmbr2
ovs_type OVSPatchPort
ovs_patch_peer patch0