Add vlans from trunk port

Nov 13, 2019
33
0
11
34
hello everybody

im new in prxomox I want to connect one physical port from my server to my switch that use trunk port and in this trunk port there is three vlans ,including the vlan that related with proxmox
I tired to made it by OVS inPort but nothing happened , please help me
 
this config that I use


iface eno4 inet manual

allow-vmbr1 vlan56
iface vlan56 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=56

allow-vmbr1 vlan852
iface vlan852 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=852

allow-vmbr1 vlan39
iface vlan39 inet manual
ovs_type OVSIntPort
ovs_bridge vmbr1
ovs_options tag=39

auto vmbr0
iface vmbr0 inet manual
bridge-ports none
bridge-stp off
bridge-fd 0


allow-ovs vmbr1
iface vmbr1 inet static
address 10.10.40.4
netmask 28
gateway 10.10.40.1
ovs_type OVSBridge
ovs_ports eno1 vlan56 vlan852 vlan39
 
Hi,
is there a reason why you use Open vSwitch?

If not I would recommend you to use ifupdown2 with Linux bridges.

The config would look like this

bridge-vids are the allowed VLANs.
bridge-pvid is the default VLAN that is used when untaged packages come in.

Code:
iface eno1 inet manual

auto vmbr1
iface vmbr1
    address 10.10.40.4
    netmask 28
    gateway 10.10.40.1
    bridge-ports eno1
    bridge-vids 56 852 39
    bridge-pvid 56
    bridge-vlan-aware yes

Don't forget to install ifupdown2 because of this config work only with it
 
Hi,
is there a reason why you use Open vSwitch?

If not I would recommend you to use ifupdown2 with Linux bridges.

The config would look like this

bridge-vids are the allowed VLANs.
bridge-pvid is the default VLAN that is used when untaged packages come in.

Code:
iface eno1 inet manual

auto vmbr1
iface vmbr1
    address 10.10.40.4
    netmask 28
    gateway 10.10.40.1
    bridge-ports eno1
    bridge-vids 56 852 39
    bridge-pvid 56
    bridge-vlan-aware yes

Don't forget to install ifupdown2 because of this config work only with it
so you mean I just install ifupdown2 and copy this config !!!

I need the command to install ifupdown2
 
apt install ifupdown2
 
As I wrote all packages without a tag get this VLAN tag
 
What did you set in the switch?
 

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!