I attached an sample config for Mikrotik VLANs. This config works Mikrotik Hapac2 router and I can’t guarantee that it will works correctly other Mikrotik router. I created this for my own purpose but everyone can modify it for their own purpose according to their own needs.
This config includes example:
three VLANs
BLUE for local network ethernet and 2 és 5GHz WiFi
GREEN for DMZ ethernet for server
BASE for only Guest WiFi
L2TP/IPSec VPN for remote client for admin
Pass trough openVPN to server for teleworker
IPSec Site-to-Site VPN for remote site
pppoe internet connection
asterisk mangle rules for VoIP on local network
firewall rules for bogon list, port scanning and ssh blacklist
Don’t use this config for import directly your router!
You need to change some specific parameters in config before you try to upload your router! Eg. user names, passwords, IP addresses, MAC Addresses, etc.
@pcunite’s topic provided a lot of help in creating the config: http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1
The forum members also helped a lot in this topic: http://forum.mikrotik.com/t/separated-vlans/159824/1
Special thanks to @anav for your the help.
Thanks and Regards
RouterSwitchAP_HAPac2.cfg.rsc (11.1 KB)