If I have a simple vlan setup such as a hEX (i.e., with WAN on ether1) and an AP (e.g., Netmetal).
The hEX has vlan32 for management and connectivity to the AP; and vlan2 for wifi-guest (coming in from AP).
This is a totally simplified/stripped down version, just so I can ask the question (at the end of the post).
On the hEX:
Code: Select all
/interface bridge add name=bridge vlan-filtering=yes
/interface vlan
add comment="Cameras VLAN22" interface=bridge name=vlan-cameras vlan-id=22
add comment="Guest WiFi VLAN2" interface=bridge name=vlan-guest vlan-id=2
/interface bridge port
add bridge=bridge frame-types=admit-only-vlan-tagged \
ingress-filtering=no interface=ether2
/interface bridge vlan
add bridge=bridge tagged=bridge,ether2 vlan-ids=2
On the AP:
Code: Select all
/interface bridge add frame-types=admit-only-vlan-tagged name=bridge vlan-filtering=yes
/interface vlan interface=bridge name=vlan-mgmt vlan-id=32
/interface bridge port
add bridge=bridge interface=ether1
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged \
interface=wifi-ssid pvid=32
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged \
interface=wifi-guest pvid=2
/interface bridge vlan
add bridge=bridge tagged=bridge,ether1 vlan-id=32
add bridge=bridge tagged=ether1 untagged=wifi-guest vlan-id=2
My question is:
On the AP, vlan32 is tagged for both bridge and ether1.
But, vlan2 is tagged only for ether1.
Is this correct? Either yes or no, why?
Does the answer to this lie with the question of whether vlan2 frames need to be processed by the CPU, which is accomplished by tagging bridge? But, because the AP is not acting as a router, the CPU is not necessary?