This question was asked almost 3 years ago today and still, nobody has responded. It is a valid question.
In my situation, I have Zentyal connected to a bridge that does content filtering. The vlan tags can pass through it, but I have absolutely no control over the switches or switch configuration. What I've been given is a a network where some clients are separated onto vlan20, which comes into zentyal with the tag, and everything else runs on vlan10, but it's all untagged.
That means, if I setup the internal interface (eth0) to be a trunk, I can send/recv traffic on Vlan20, by adding that vlan interface, but because I can't set a static ip on the eth0 (since it's in trunk mode), I can't access the traffic on the untagged vlan.
I tried adding the vlan interface manually, but even though I could ping it, it didn't show up in the Zentyal interface for me to enable DHCP etc. Editing config files directly, I know I can achieve this by setting up /etc/network/interfaces like below, so I figure we can trick Zentyal into allowing it, but I haven't figured out yet where to look.
Does anyone have a suggestion (outside of modifying switch port config)?
example /etc/network/interfaces that does what I want
auto eth0.20 eth0
allow-hotplug eth1
iface eth0 inet static
address 192.168.0.254
netmask 255.255.254.0
broadcast 192.168.1.255
iface eth0.20 inet static
vlan_raw_device eth0
address 192.168.3.254
netmask 255.255.255.0
broadcast 192.168.3.255
iface eth1 inet static
address 88.88.88.89
netmask 255.255.255.248
broadcast 88.88.88.95
gateway 88.88.88.94