Community discussions

MikroTik App
 
ed28
just joined
Topic Author
Posts: 5
Joined: Tue Oct 15, 2024 10:22 am

wifi cfg not applied to wifi interface?

Tue Oct 15, 2024 10:24 am

Hi,

Followed this guide:
https://tangentsoft.com/mikrotik/wiki?n ... ns%20VLANs

/interface wifi configuration add
name=guestcfg ssid="Guest" \
datapath.client-isolation=yes \
security.authentication-types=wpa2-psk \
.passphrase=yourGuestPSKgoesHere

/interface wifi add
name=wifi2g configuration=guestcfg \
master-interface=wifi

Created these in GUI.
When Creating Config with passphrase an authentication type. Then creating the WiFi Interface the new interface shows up in device as no authentication requiered.
 
holvoetn
Forum Guru
Forum Guru
Posts: 6748
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: wifi cfg not applied to wifi interface?

Tue Oct 15, 2024 10:31 am

You need to show your complete wifi config for anyone to be able to tell where the problem is.

Terminal
/interface wifi
export file=anynameyouwish

Remove serial and passwds (just replace them so we know it's there)
Then post contents between [code] [/code] quotes
 
ed28
just joined
Topic Author
Posts: 5
Joined: Tue Oct 15, 2024 10:22 am

Re: wifi cfg not applied to wifi interface?

Tue Oct 15, 2024 1:08 pm

# 2024-10-15 13:03:39 by RouterOS 7.16.1
# software id = F38L-N3QP
#
# model = C52iG-5HaxD2HaxD
/interface wifi
set [ find default-name=wifi1 ] channel.skip-dfs-channels=10min-cac \
    configuration.country=Estonia .mode=ap .ssid=home_5G disabled=\
    no
set [ find default-name=wifi2 ] channel.skip-dfs-channels=10min-cac \
    configuration.country=Estonia .mode=ap .ssid=home disabled=no
add configuration.mode=ap .ssid=Guest2 disabled=no mac-address=\
    1A:FD:74:C3:5C:2B master-interface=wifi1 name=wifi3 \
    security.connect-priority=0
add configuration.mode=ap .ssid=Guest2 disabled=no mac-address=\
    1A:FD:74:C3:5C:2C master-interface=wifi2 name=wifi4 \
    security.connect-priority=0
/interface wifi configuration
add datapath.client-isolation=yes disabled=no name=guestcfg \
    security.authentication-types=wpa2-psk .encryption="" ssid=Guest
/interface wifi
add configuration=guestcfg configuration.mode=ap datapath.client-isolation=no \
    disabled=no mac-address=1A:FD:74:C3:5C:2D master-interface=wifi2 name=\
    Guest security.authentication-types=wpa2-eap .encryption=""

 
holvoetn
Forum Guru
Forum Guru
Posts: 6748
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: wifi cfg not applied to wifi interface?

Tue Oct 15, 2024 1:12 pm

Either apply settings on interface, either on configuration.
You have security defined in both places and different too.


/interface wifi configuration
add datapath.client-isolation=yes disabled=no name=guestcfg \
security.authentication-types=wpa2-psk .encryption="" ssid=Guest
/interface wifi
add configuration=guestcfg configuration.mode=ap datapath.client-isolation=no \
disabled=no mac-address=1A:FD:74:C3:5C:2D master-interface=wifi2 name=\
Guest security.authentication-types=wpa2-eap .encryption=""
 
ed28
just joined
Topic Author
Posts: 5
Joined: Tue Oct 15, 2024 10:22 am

Re: wifi cfg not applied to wifi interface?

Tue Oct 15, 2024 1:19 pm

That is because i tested what happens if i add but removed now and still logs in. I see the output does not have passphrase defined but in gui it shows passphrase defined.
 
ed28
just joined
Topic Author
Posts: 5
Joined: Tue Oct 15, 2024 10:22 am

Re: wifi cfg not applied to wifi interface?

Wed Oct 16, 2024 3:43 pm

Created new Configuration and Wifi in WebFig.
Still .passphrase= option does not show when looking at config in terminal.
Is this a bug?
 
holvoetn
Forum Guru
Forum Guru
Posts: 6748
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: wifi cfg not applied to wifi interface?

Wed Oct 16, 2024 3:49 pm

Be careful with webfig/winbox, an option folded open but not filled in, is something else then an option fold in.
The former is used but blank, the latter is not used.

Export should show you what's being used and what value is applied.
 
erlinden
Forum Guru
Forum Guru
Posts: 2622
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: wifi cfg not applied to wifi interface?

Wed Oct 16, 2024 3:53 pm

You can see it in WebFig? You did set the passphrase in WebFig?

If you add the configuration through terminal (either directly or through Winbox/WebFig), is it there?
 
ed28
just joined
Topic Author
Posts: 5
Joined: Tue Oct 15, 2024 10:22 am

Re: wifi cfg not applied to wifi interface?

Thu Oct 17, 2024 7:51 pm

You can see it in WebFig? Yes
You did set the passphrase in WebFig? Yes
If you add the configuration through terminal (either directly or through Winbox/WebFig), is it there? Not sure how to add only passphrase.

Who is online

Users browsing this forum: intelvtd and 8 guests