how to add VLAN ID to packets from wireless interface?

I am using WiFi APs TP-Link TL-WA901ND and they have very useful function - they can add VLAN ID tag to each incoming packet from WiFi when it is forwarded to ethernet. I would like to achieve the same on RB751G - is it possible? Or is this possible on some other Mikrotik router?

hi,

you can add vlan tag on mikrotik wireless interface

Where exactly? I didn’t found anything about VLAN there (http://wiki.mikrotik.com/wiki/Manual:Interface/Wireless) I could create VLAN over wireless interface, but it is not what I need - at least I think.

I thought that maybe I could use switch rules, but the rules are defined for incoming ports (and new-vlan-id is available only on Atheros8316).

snap is attached for ref.
VLAN.jpg

This is not what I need. It just joins existing VLAN-marked wireless packets to ethernet port as bridge. If client (notebook, phone) connects to wireless interface, he will not be handled as VLAN.

Edit: I’ve realized that it may be useful if I do it on opposite direction - VLAN on ether bridged together with WiFi. I am going to try…

Yep, now it is working exactly how I need :slight_smile:

share your snaps for future config

thanks

Well, here is it…

  • This router is configured as an AP.
  • There is another AP (not mikrotik) connected to ether1.
  • There is a VLAN 242 on ether5 connected to hotspot on the main router.
  • All packets from both APs (integrated WiFi and another AP) should be transported to hotspot only.
    vlan-wifi.png