VLAN trunk to guest

BrainPain

New Member
Jul 22, 2020
2
0
1
23
Dear Community

I want to use tagged VLANs in my guest VM to directly add and remove VLANs in my pfSense.

Is this possible, to create a trunk?

The current configuration looks like the following:

Code:
auto lo
iface lo inet loopback

auto enp3s0
iface enp3s0 inet static
        address 192.168.1.10/24
        gateway 192.168.1.254
#Management

auto enp6s0f0
iface enp6s0f0 inet manual

auto enp6s0f1
iface enp6s0f1 inet manual

auto bond0
iface bond0 inet manual
        bond-slaves enp6s0f0 enp6s0f1
        bond-miimon 100
        bond-mode 802.3ad
        bond-xmit-hash-policy layer2

auto vmbr0
iface vmbr0 inet manual
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
 
The configuration you posted is already good AFAICT. Any VM connected to vmbr0 should be able to send and receive tagged packets.
 
When i create a new interface, i only used it with vlan tags. (One VLAN, one interface)

If i let the fileld "vlan trunk" blank, it is becomes a trunk?
 

Attachments

  • vmbr.PNG
    vmbr.PNG
    10.4 KB · Views: 118
Yes, without a VLAN tag all tagged and untagged traffic will be allowed (as long as the bridge is marked VLAN aware)
 
Be aware that your network card supports that amount of vlans, for example mellanox connectx 3 cards only supports a few vlans...