Add VLAN on MikroTik | Social WiFi Academy (2024)

Sometimes you might want to separate your guest network from your private network. This guide will help you to set up a VLAN on your Social WiFi network, so that any Access Points connected on a particular physical interface and tagged with the same VLAN tag will relay proper packets where you want them to go.

Before you get started with this guide, you will need to configure Social WiFi service on your MikroTik router. Please refer to this guide in order to do so.

Your VLAN ID will also need to be configured on your Access Points and any switch located in between them and the MikroTik router. This setup will be different depending on your device manufacturer, model and operating system.

Run Social WiFi on a VLAN

The installation guide for MikroTik assumes that the hotspot service will be running on physical port 3, handling untagged traffic. Let's assume, that you want to instead have a hybrid port, where untagged traffic goes to default LAN network (no Social WiFi) and traffic tagged with VLAN ID 20 goes to the guest network (with Social WiFi enabled).

This article shows one of the available ways to configure a VLAN on a MikroTik device. There are at least 2 other ways to do it. "bridge vlan filtering" is the recommended one, unless you're after VLAN hardware offloading, in which case you need to consult examples specific to you MikroTik model.

Always make a backup of your configuration and download it to your computer, in case something goes wrong. Wrong VLAN configuration may cut you off from the router.

VLAN ID 20 is used an example, change the VLAN ID to the one appropriate in your case.

To add a VLAN using this method, please go to Interfaces->"+"->VLAN. Add the name, set your VLAN ID and set interface to "bridge".

Now, go to Bridge -> VLANs -> "+" and configure the VLAN filtering as follows:

Bridgebridge

VLAN IDs

20

Tagged

bridge, ether3

Adding "bridge" as tagged interface is important, it makes DHCP server and other CPU-related services work. More on that topic here: https://help.mikrotik.com/docs/display/ROS/Bridging+and+Switching#BridgingandSwitching-TaggedaccesswithVLANfiltering

Now, go to IP->Addresses, IP->DHCP-Server, IP->Hotspot and change interfaces from "sw" to "vlan20" for every single window opened as follows:

Now, go to Bridge->Ports and change "ether3" bridge from "sw" to "bridge":

If you're connecting through the MAC Address, keep in mind that you'll get kicked out from the WinBox after the next two changes. Just reconnect shortly after.

Now, go back to Bridge(1.) and turn on bridge VLAN filtering for "bridge" as follows. Make sure to leave "PVID" at 1.

Everything should be working by now. The last thing left to do is to delete the "sw" bridge, to do that go to the Interfaces->Interface, select the "sw" bridge and press X (3.).

Configuration from the example above to copy and paste to a terminal:

/interface vlan add interface=bridge name=vlan20 vlan-id=20/interface bridge vlan add bridge=bridge tagged=bridge,ether3 vlan-ids=20/ip address set [find interface=sw] interface=vlan20/ip hotspot set [find interface=sw] interface=vlan20/ip dhcp-server set [find interface=sw] interface=vlan20/interface bridge port set [find interface=ether3] bridge=bridge/interface bridge set bridge vlan-filtering=yes/interface bridge remove sw

Deprecated method of configuring VLAN on your MikroTik router

This method is simpler, but no longer recommended, due to possible issues in more complex networks. See: https://help.mikrotik.com/docs/display/ROS/Layer2+misconfiguration#Layer2misconfiguration-VLANinabridgewithaphysicalinterface

Interfaces -> Add -> VLAN

Name[your desired name]

VLAN ID

[your VLAN ID]

Interface

[interface on which your APs are connected]

Bridge -> Ports -> Add

Interface

[choose the VLAN you created]

Bridge

sw

OK

If your AP is connected on the port you configured (in this case, ethernet port 3) and has properly set VLAN tagging, then you should be free to enjoy Social WiFi service without impacting your main network!

Add VLAN on MikroTik | Social WiFi Academy (2024)
Top Articles
A dozen industries Amazon is poised to disrupt, including in financial services
Automated collections
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Pearson Correlation Coefficient
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Nfsd Web Portal
Selly Medaline
Latest Posts
Article information

Author: Twana Towne Ret

Last Updated:

Views: 6276

Rating: 4.3 / 5 (44 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Twana Towne Ret

Birthday: 1994-03-19

Address: Apt. 990 97439 Corwin Motorway, Port Eliseoburgh, NM 99144-2618

Phone: +5958753152963

Job: National Specialist

Hobby: Kayaking, Photography, Skydiving, Embroidery, Leather crafting, Orienteering, Cooking

Introduction: My name is Twana Towne Ret, I am a famous, talented, joyous, perfect, powerful, inquisitive, lovely person who loves writing and wants to share my knowledge and understanding with you.