I have similar configuration on my RB951G: port ether5 is hybrid … untagged and VID 3999. THe untagged packets are translated to VID=2 and sent over trunk port to other devices. Port configuration which works for me is this:
/interface ethernet switch port
set 4 default-vlan-id=2 vlan-header=always-strip vlan-mode=secure
If I understood manuals correct, then option “vlan-header=always-strip” means that tags will get stripped on egress if VID is equal to default-vlan-id, else tags will stay.
Thanks. I tried this and as described by Mikrotik wiki this has no effect:
‘In Gigabit switch chips when “vlan-mode=secure”, it ignores switch port “vlan-header” options. VLAN table entries handle all the egress tagging/untagging and works as “vlan-header=leave-as-is” on all ports.’