VLAN tagging configuration

lemontree

New Member
Jun 24, 2018
2
0
1
45
Hello folks,
i'm having trouble configuring vlan tagging on my proxmox. I have followed many configurations that i found on the wiki, this forum and other and i have been unable to get it working.
Here's my configuration...
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual

iface enp0s20f0u3u5 inet manual

allow-ovs vmbr1

allow-vmbr1 eno2
iface eno2 inet manual
ovs_type OVSPort
ovs_bridge vmbr1
ovs_options tag=1 vlan_mode=native-untagged

auto vmbr0
iface vmbr0 inet static
address 172.16.0.100
netmask 255.255.255.0
gateway 172.16.0.1
bridge_ports eno1
bridge_stp off
bridge_fd 0
#MGMT

auto vmbr1
iface vmbr1 inet manual
ovs_type OVSBridge
ovs_ports eno2 vlan1 vlan14

allow-vmbr1 vlan1
iface vlan1 inet static
address 172.16.0.199
netmask 255.255.255.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=1
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif

allow-vmbr1 vlan14
iface vlan14 inet static
address 172.16.14.26
netmask 255.255.255.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=14
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif

Your help is most appreciated... also i just tried OVS but if there's another easier suitable way, please advise.

Greatly appreciate it,
 
allow-vmbr1 eno2
iface eno2 inet manual
ovs_type OVSPort
ovs_bridge vmbr1
ovs_options tag=1 vlan_mode=native-untagged

Should eno2 work as a trunk? Then I'd rather remove the ovs options!
allow-vmbr1 vlan1
iface vlan1 inet static
address 172.16.0.199
netmask 255.255.255.0
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=1
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif


Try it without ovs_extra_set, respectively: let the configuration made via WEB-GUI unchanged.


Currently you use ovs - take care about the proper ovs version, the current one for Proxmox 5 is



openvswitch-switch: 2.7.0-2


If you try linux bridges: also in that case configure it just via WEB-GUI.
 

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!