I have an ethernet interface, e.g eth0
, and I want to allow traffic of both main network and "guest" network to flow through eth0 interface, but the traffic of guest network would be VLAN tagged with VID 10, and the main network traffic is remained untagged.
So I created a new bridge device br-guest
, also created a VLAN interface eth0.10
bound to eth0
and add eth0.10
to br-guest
.
config device 'eth0_10'
option name 'eth0.10'
option ifname 'eth0'
option type '8021q'
option vid '10'
config interface 'guest'
option bridge_empty '1'
option defaultroute '0'
option type 'bridge'
option ifname 'eth0.10'
On the wireless side, I have a wireless interface wifi2
for the guest SSID. wifi2
is also added to br-guest
:
bridge interfaces
br-guest eth0.10
wifi2
My problem is the packet from guest wifi client already have a VLAN tag with VID 10 when it comes to wifi2
, so when it is forwarded outside via eth0.10
, it will add 1 more VLAN tag with the same VID, which is not what I want.
How can I tell eth0.10
to stop adding 1 more tag if the packet has already been tagged with VID 10?