Hi.
I have read following VLAN article: http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1
I know what VLAN is and how it works but I cannot make it work
I have following configuration on the AP:
[admin@MikroTik] > /interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE ACTUAL-MTU L2MTU MAX-L2MTU MAC-ADDRESS
0 RS ether1 ether 1500 1598 9214 74:00:00:00:00:E1
1 S ether2 ether 1500 1598 9214 74:00:00:00:00:E2
2 S wlan1 wlan 1500 1600 2290 74:00:00:00:00:E3
3 XS wlan2 wlan 1500 1600 2290 74:00:00:00:00:E4
4 wlan3 wlan 1500 1600 2290 76:00:00:00:00:E3
5 wlan4 wlan 1500 1600 2290 76:00:00:00:00:E4
6 wlan5 wlan 1500 1600 2290 76:00:00:00:00:E5
7 R ;;; defconf
bridge bridge 1500 1598 74:00:00:00:00:E1
8 R vlan1 vlan 1500 1594 74:00:00:00:00:E1
9 R vlan10 vlan 1500 1594 74:00:00:00:00:E1
10 R vlan20 vlan 1500 1594 74:400:00:00:00:E1
11 R vlan98 vlan 1500 1594 74:00:00:00:00:E1
12 R vlan99 vlan 1500 1594 74:00:00:00:00:E1
Vlan configuration:
[admin@MikroTik] > /interface vlan print
Flags: X - disabled, R - running
# NAME MTU ARP VLAN-ID INTERFACE
0 R vlan1 1500 enabled 1 bridge
1 R vlan10 1500 enabled 10 bridge
2 R vlan20 1500 enabled 20 bridge
3 R vlan98 1500 enabled 98 bridge
4 R vlan99 1500 enabled 99 bridge
[admin@MikroTik] > /interface vlan print detail
Flags: X - disabled, R - running
0 R name="vlan1" mtu=1500 l2mtu=1594 mac-address=74:00:00:00:00:E1 arp=enabled arp-timeout=auto loop-protect=default loop-protect-status=off loop-protect-send-interval=5s
loop-protect-disable-time=5m vlan-id=1 interface=bridge use-service-tag=no
1 R name="vlan10" mtu=1500 l2mtu=1594 mac-address=74:00:00:00:00:E1 arp=enabled arp-timeout=auto loop-protect=default loop-protect-status=off loop-protect-send-interval=5s
loop-protect-disable-time=5m vlan-id=10 interface=bridge use-service-tag=no
2 R name="vlan20" mtu=1500 l2mtu=1594 mac-address=74:00:00:00:00:E1 arp=enabled arp-timeout=auto loop-protect=default loop-protect-status=off loop-protect-send-interval=5s
loop-protect-disable-time=5m vlan-id=20 interface=bridge use-service-tag=no
3 R name="vlan98" mtu=1500 l2mtu=1594 mac-address=74:00:00:00:00:E1 arp=enabled arp-timeout=auto loop-protect=default loop-protect-status=off loop-protect-send-interval=5s
loop-protect-disable-time=5m vlan-id=98 interface=bridge use-service-tag=no
4 R name="vlan99" mtu=1500 l2mtu=1594 mac-address=74:00:00:00:00:E1 arp=enabled arp-timeout=auto loop-protect=default loop-protect-status=off loop-protect-send-interval=5s
loop-protect-disable-time=5m vlan-id=99 interface=bridge use-service-tag=no
I have 5 VLANs and 4 active SSID (test-5Ghz is disabled - home, children, etc.)
[admin@MikroTik] > /interface wireless print
Flags: X - disabled, R - running
0 name="wlan1" mtu=1500 l2mtu=1600 mac-address=74:00:00:00:00:E3 arp=enabled interface-type=IPQ4019 mode=ap-bridge ssid="test" frequency=auto band=2ghz-onlyn
channel-width=20/40mhz-XX secondary-channel="" scan-list=default wireless-protocol=802.11 vlan-mode=no-tag vlan-id=1 wds-mode=disabled wds-default-bridge=none
wds-ignore-ssid=no bridge-mode=enabled default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 hide-ssid=no security-profile=test
compression=no
1 X name="wlan2" mtu=1500 l2mtu=1600 mac-address=74:00:00:00:00:E4 arp=enabled interface-type=IPQ4019 mode=ap-bridge ssid="test5Ghz" frequency=auto band=5ghz-a/n/ac
channel-width=20/40/80mhz-XXXX secondary-channel="" scan-list=default wireless-protocol=802.11 vlan-mode=no-tag vlan-id=1 wds-mode=disabled wds-default-bridge=none
wds-ignore-ssid=no bridge-mode=enabled default-authentication=yes default-forwarding=yes default-ap-tx-limit=0 default-client-tx-limit=0 hide-ssid=no security-profile=test
compression=no
2 name="wlan3" mtu=1500 l2mtu=1600 mac-address=76:00:00:00:00:E3 arp=enabled interface-type=virtual master-interface=wlan1 mode=ap-bridge ssid="test-guest" vlan-mode=no-tag
vlan-id=98 wds-mode=disabled wds-default-bridge=bridge wds-ignore-ssid=no bridge-mode=enabled default-authentication=yes default-forwarding=yes default-ap-tx-limit=0
default-client-tx-limit=0 hide-ssid=no security-profile=test-guest
3 name="wlan4" mtu=1500 l2mtu=1600 mac-address=76:00:00:00:00:E4 arp=enabled interface-type=virtual master-interface=wlan1 mode=ap-bridge ssid="test2" vlan-mode=use-tag
vlan-id=20 wds-mode=disabled wds-default-bridge=bridge wds-ignore-ssid=no bridge-mode=enabled default-authentication=yes default-forwarding=yes default-ap-tx-limit=0
default-client-tx-limit=0 hide-ssid=no security-profile=test
4 name="wlan5" mtu=1500 l2mtu=1600 mac-address=76:00:00:00:00:E5 arp=enabled interface-type=virtual master-interface=wlan1 mode=ap-bridge ssid="test-iot" vlan-mode=no-tag
vlan-id=99 wds-mode=disabled wds-default-bridge=bridge wds-ignore-ssid=no bridge-mode=enabled default-authentication=yes default-forwarding=yes default-ap-tx-limit=0
default-client-tx-limit=0 hide-ssid=yes security-profile=test-iot
As you can see wlan3, wlan4 and wlan5 are virtual interfaces with master interface wlan1.
DHCP server is running per VLAN on router (router on the stick configuration). Not sure if important: pfsense physical device
AP connected to switch TP-Link so I have following:
CAP AP (eth1) —trunk—> TPLink —trunk—> pfsense
Only wlan1 works passing the DHCP. wlan3, wlan4 and wlan5 doesnt work. No DHCP but I can auth to all SSID
I am not sure about the configuration and I have couple of questions:
- Is the wlan3-5 configuration correct? Should that be configured as virtual interface with wlan1 as master interface (interface-type=IPQ4019)?
- Is it possible to assign VLAN on wlan1 interface (interface-type=IPQ4019) Cannot see such option in GUI.
- I cannot remove SSID from wlan1 so I assume the default VLAN1 is assigned to wlan1. I dont need VLAN1 as my home VLAN is VLAN20. What can I do?
- wlan3-5 VLAN Mode - should that be configured to no-tag or use-tag? My understanding is that SSID works as access port interface so it should be use-tag??
- how can I configure static IP to manage the AP let say on VLAN20. I can access the AP on VLAN1 but not on VLAN20
- should VLAN interfaces be assigned to bridge interface or to wlanX reflecting correlation between VLANX->wlanX so VLAN20->wlan4
Thanks


