Community discussions

MikroTik App
 
vhs1240
just joined
Topic Author
Posts: 6
Joined: Tue Feb 08, 2022 9:18 pm

Virtual Wifi's are not appearing

Sun Feb 27, 2022 11:33 pm

I have a MT Hap AC2 and the virtual wifi's I created are not appearing..
What am I missing ?
# feb/27/2022 22:28:13 by RouterOS 7.1.3
# software id = XJIR-23KF
#
# model = RBD52G-5HacD2HnD
# serial number = E5780FA00097
/interface bridge
add name=bridge-vlan10
add name=bridge-vlan20
add name=bridge-vlan30
/interface ethernet
set [ find default-name=ether1 ] name=ether1-wan
set [ find default-name=ether2 ] name=ether2-vlan10
set [ find default-name=ether3 ] name=ether3-vlan20
set [ find default-name=ether4 ] name=ether4-vlan30
set [ find default-name=ether5 ] name=ether5-trunk
/interface wireless
set [ find default-name=wlan2 ] ssid=MikroTik
/interface vlan
add interface=ether5-trunk name=vlan10 vlan-id=10
add interface=ether5-trunk name=vlan20 vlan-id=20
add interface=ether5-trunk name=vlan30 vlan-id=30
/interface list
add name=WAN
add name=LAN
add name=DISCOVER
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name=main \
    supplicant-identity=""
add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name=iot \
    supplicant-identity=""
add authentication-types=wpa2-psk eap-methods="" mode=dynamic-keys name=guest \
    supplicant-identity=""
/interface wireless
set [ find default-name=wlan1 ] security-profile=main ssid=MikroTik
add disabled=no keepalive-frames=disabled mac-address=4E:5E:0C:EB:19:35 \
    master-interface=wlan1 multicast-buffering=disabled name=wlan-vlan10 \
    security-profile=main ssid=LTS39MT-Main wds-cost-range=0 \
    wds-default-cost=0 wps-mode=disabled
add disabled=no keepalive-frames=disabled mac-address=4E:5E:0C:EB:19:36 \
    master-interface=wlan1 multicast-buffering=disabled name=wlan-vlan20 \
    security-profile=iot ssid=LTS39MT-Iot wds-cost-range=0 wds-default-cost=0 \
    wps-mode=disabled
add disabled=no keepalive-frames=disabled mac-address=4E:5E:0C:EB:19:37 \
    master-interface=wlan1 multicast-buffering=disabled name=wlan-vlan30 \
    security-profile=guest ssid=LTS39MT-Guest wds-cost-range=0 \
    wds-default-cost=0 wps-mode=disabled
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip pool
add name=dhcp_pool-vlan10 ranges=10.10.10.2-10.10.10.254
add name=dhcp_pool-vlan20 ranges=20.20.20.2-20.20.20.254
add name=dhcp_pool-vlan30 ranges=30.30.30.2-30.30.30.254
/ip dhcp-server
add address-pool=dhcp_pool-vlan10 interface=bridge-vlan10 name=dhcp-vlan10
add address-pool=dhcp_pool-vlan20 interface=bridge-vlan20 name=dhcp-vlan20
add address-pool=dhcp_pool-vlan30 interface=bridge-vlan30 name=dhcp-valn30
/interface bridge port
add bridge=bridge-vlan10 interface=ether2-vlan10
add bridge=bridge-vlan10 interface=wlan-vlan10
add bridge=bridge-vlan10 interface=vlan10
add bridge=bridge-vlan20 interface=ether3-vlan20
add bridge=bridge-vlan20 interface=wlan-vlan20
add bridge=bridge-vlan20 interface=vlan20
add bridge=bridge-vlan30 interface=ether4-vlan30
add bridge=bridge-vlan30 interface=wlan-vlan30
add bridge=bridge-vlan30 interface=vlan30
/interface list member
add interface=ether1-wan list=WAN
add interface=bridge-vlan10 list=LAN
add interface=bridge-vlan20 list=LAN
add interface=bridge-vlan30 list=LAN
/ip address
add address=10.10.10.1/24 interface=bridge-vlan10 network=10.10.10.0
add address=20.20.20.1/24 interface=bridge-vlan20 network=20.20.20.0
add address=30.30.30.1/24 interface=bridge-vlan30 network=30.30.30.0
/ip dhcp-client
add interface=ether1-wan
/ip dhcp-server network
add address=10.10.10.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.10.10.1
add address=20.20.20.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=20.20.20.1
add address=30.30.30.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=30.30.30.1
/ip dns
set allow-remote-requests=yes
/ip firewall filter
add action=accept chain=input comment=\
    "defconf: accept established,related,untracked" connection-state=\
    established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
    invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=\
    "defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
    in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
    ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
    ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related hw-offload=yes
add action=accept chain=forward comment=\
    "defconf: accept established,related, untracked" connection-state=\
    established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" \
    connection-state=invalid
add action=drop chain=forward comment=\
    "defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" \
    ipsec-policy=out,none out-interface-list=WAN
/system clock
set time-zone-name=Europe/Brussels
/system routerboard settings
set cpu-frequency=auto
 
holvoetn
Forum Guru
Forum Guru
Posts: 5422
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Virtual Wifi's are not appearing

Mon Feb 28, 2022 9:23 am

Virtual interfaces can only work if the main interface is active.

The definition of the main interface wlan1 (and wlan2) is rather limited.
I do not see disabled=no on either of the wlan interfaces so are you sure those interfaces are active ? From what I see, I would think not.

Do you see SSID=MikroTik appearing (2.4GHz and 5Ghz) ?
(personal view: for testing it is better to split the names to e.g. MikroTik-2 and MikroTik-5, makes it more clear what is running and what not. You can always change it once setup is done. I know it can always be checked with a tool like Wifi Analyzer but I find it easier to see it straight away when connecting Wifi to a certain SSID)

In Winbox you should see if those interfaces are greyed. That's also an indication they are not active.

Who is online

Users browsing this forum: No registered users and 11 guests