Community discussions

MikroTik App
 
User avatar
abbio90
Member
Member
Topic Author
Posts: 458
Joined: Fri Aug 27, 2021 9:16 pm
Location: Oristano
Contact:

CAPSMAN WiFi Wave2  [SOLVED]

Thu Nov 14, 2024 6:41 pm

I'm configuring capsman, I would like to ensure that when the user moves between the various cAPs the connection does not drop but roaming occurs. Does the configuration seem correct to you?
/interface wifi channel
add band=2ghz-ax disabled=no frequency=2412 name=channel1 skip-dfs-channels=disabled width=20/40mhz
add band=2ghz-ax disabled=no frequency=2437 name=channel6 skip-dfs-channels=disabled width=20/40mhz
add band=2ghz-ax disabled=no frequency=2462 name=channel11 skip-dfs-channels=disabled width=20/40mhz
add band=5ghz-ax disabled=no frequency=5260 name=channel52 width=20/40/80mhz
add band=5ghz-ax disabled=no frequency=5180 name=channel36 width=20/40/80mhz
add band=5ghz-ax disabled=no frequency=5500 name=channel100 width=20/40/80mhz
add band=5ghz-ax disabled=no frequency=5600 name=channel116 width=20/40/80mhz
/interface wifi datapath
add bridge=bridge-main disabled=no interface-list=LAN name=datapath-vlan1 vlan-id=1
add bridge=bridge-main client-isolation=yes disabled=no interface-list=GUEST name=datapath-vlan333 vlan-id=333
/interface wifi security
add authentication-types=wpa2-psk,wpa3-psk disabled=no encryption="" ft=yes ft-over-ds=yes name=security-private
add disabled=no ft=yes ft-over-ds=yes name=security-guest
/interface wifi configuration
add antenna-gain=0 channel=channel1 datapath=datapath-vlan1 disabled=no mode=ap name=cfg1-2.4Ghz-private security=security-private ssid="Al Convento Private"
add antenna-gain=0 channel=channel6 datapath=datapath-vlan1 disabled=no mode=ap name=cfg6-2.4Ghz-private security=security-private ssid="Al Convento Private"
add antenna-gain=0 channel=channel52 datapath=datapath-vlan1 disabled=no name=cfg52-5GHz-private security=security-private ssid="Al Convento Private"
add antenna-gain=0 channel=channel36 datapath=datapath-vlan1 disabled=no name=cfg36-5GHz-private security=security-private ssid="Al Convento Private"
add antenna-gain=0 channel=channel100 datapath=datapath-vlan1 disabled=no name=cfg100-5GHz-private security=security-private ssid="Al Convento Private"
add antenna-gain=0 channel=channel1 datapath=datapath-vlan333 disabled=no mode=ap name=cfg1-2.4Ghz-GUEST security=security-guest ssid="B&B Al Convento Ospiti"
add antenna-gain=0 channel=channel6 datapath=datapath-vlan333 disabled=no mode=ap name=cfg6-2.4Ghz-GUEST security=security-guest ssid="B&B Al Convento Ospiti"
add antenna-gain=0 channel=channel11 datapath=datapath-vlan333 disabled=no mode=ap name=cfg11-2.4Ghz-GUEST security=security-guest ssid="B&B Al Convento Ospiti"
add antenna-gain=0 channel=channel36 datapath=datapath-vlan333 disabled=no name=cfg36-5GHz-GUEST security=security-guest ssid="B&B Al Convento Ospiti"
add antenna-gain=0 channel=channel11 datapath=datapath-vlan1 disabled=no mode=ap name=cfg11-2.4Ghz-private security=security-private ssid="Al Convento Private"
add antenna-gain=0 channel=channel52 datapath=datapath-vlan333 disabled=no name=cfg52-5GHz-GUEST security=security-guest ssid="B&B Al Convento Ospiti"
add antenna-gain=0 channel=channel100 datapath=datapath-vlan333 disabled=no mode=ap name=cfg100-5GHz-GUEST security=security-guest ssid="B&B Al Convento Ospiti"
add antenna-gain=0 channel=channel116 datapath=datapath-vlan333 disabled=no name=cfg116-5GHz-GUEST security=security-guest ssid="B&B Al Convento Ospiti"
add antenna-gain=0 channel=channel116 datapath=datapath-vlan1 disabled=no name=cfg116-5GHz-private security=security-private ssid="Al Convento Private"
/interface wifi access-list
add action=reject allow-signal-out-of-range=4s disabled=no signal-range=-120..-77
/interface wifi cap
set discovery-interfaces=vlan1-LAN enabled=yes
/interface wifi capsman
set ca-certificate=auto enabled=yes interfaces=vlan1-LAN package-path="" require-peer-certificate=no upgrade-policy=none
/interface wifi provisioning
add action=create-dynamic-enabled comment="AP1 2.4ghz" disabled=no master-configuration=cfg1-2.4Ghz-private name-format=%I-2.4GHz radio-mac=D4:01:C3:F1:E6:B1 slave-configurations=cfg1-2.4Ghz-GUEST supported-bands=\
    2ghz-ax
add action=create-dynamic-enabled comment="AP3 2.4ghz" disabled=no master-configuration=cfg6-2.4Ghz-private name-format=%I-2.4GHz radio-mac=D4:01:C3:F1:D3:81 slave-configurations=cfg6-2.4Ghz-GUEST supported-bands=\
    2ghz-ax
add action=create-dynamic-enabled comment="AP1 - 5GHz" disabled=no master-configuration=cfg36-5GHz-private name-format=%I-5GHz radio-mac=D4:01:C3:F1:E6:B0 slave-configurations=cfg36-5GHz-GUEST supported-bands=5ghz-ax
add action=create-dynamic-enabled comment="hAP ax2 - 2.4Ghz" disabled=no master-configuration=cfg6-2.4Ghz-private name-format=%I radio-mac=D4:01:C3:E1:25:B1 slave-configurations=cfg6-2.4Ghz-GUEST supported-bands=\
    2ghz-ax
add action=create-dynamic-enabled comment="hAP ax2 - %5GHz" disabled=no master-configuration=cfg52-5GHz-private name-format=%I radio-mac=D4:01:C3:E1:25:B0 slave-configurations=cfg52-5GHz-GUEST
add action=create-dynamic-enabled disabled=no master-configuration=cfg100-5GHz-private name-format=FABIO-5GHZ radio-mac=78:9A:18:27:D2:A8 slave-configurations=cfg100-5GHz-GUEST supported-bands=5ghz-ax
add action=create-dynamic-enabled disabled=no master-configuration=cfg11-2.4Ghz-private name-format=FABIO-2GHZ radio-mac=78:9A:18:27:D2:A9 slave-configurations=cfg11-2.4Ghz-GUEST supported-bands=2ghz-ax
add action=create-dynamic-enabled comment=AP2-5GHz disabled=no master-configuration=cfg100-5GHz-private name-format=%I-5GHz radio-mac=D4:01:C3:F1:D2:ED slave-configurations=cfg100-5GHz-GUEST supported-bands=5ghz-ax
add action=create-dynamic-enabled comment=AP3-5GHz disabled=no master-configuration=cfg52-5GHz-private name-format=%I-5GHz radio-mac=D4:01:C3:F1:D3:80 slave-configurations=cfg52-5GHz-GUEST supported-bands=5ghz-ax
add action=create-dynamic-enabled comment=AP2-2.4GHz disabled=no master-configuration=cfg11-2.4Ghz-private name-format=%I-2.4GHz radio-mac=D4:01:C3:F1:D2:EE slave-configurations=cfg11-2.4Ghz-GUEST supported-bands=\
    2ghz-ax
 
holvoetn
Forum Guru
Forum Guru
Posts: 7256
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: CAPSMAN WiFi Wave2

Thu Nov 14, 2024 8:13 pm

At first sight it looks ok.

Have you tested it when moving around ?
You should see roaming messages in log file.
 
erlinden
Forum Guru
Forum Guru
Posts: 2900
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: CAPSMAN WiFi Wave2

Thu Nov 14, 2024 9:46 pm

As the complete bandwidth of 2.4GHz radio is 40MHz wide, I would advise to use bandwidth=20mhz. Roaming works better when you use non overlapping channels.

Don't use vlan id=1, instead use something above 1.

Don't set antenna-gain to 0, leave it default or set correctly.

Missing country, which makes it think/assume it is in Latvia.

As you probably added the VLAN's to the corresponding interface lists, it is probably not necessary to add the datapath to both the vlan and the interface list.
 
User avatar
abbio90
Member
Member
Topic Author
Posts: 458
Joined: Fri Aug 27, 2021 9:16 pm
Location: Oristano
Contact:

Re: CAPSMAN WiFi Wave2

Sat Nov 16, 2024 11:51 pm

Thanks for the advice, I'll do some field testing next week
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13458
Joined: Thu Mar 03, 2016 10:23 pm

Re: CAPSMAN WiFi Wave2

Sun Nov 17, 2024 11:31 am

As the complete bandwidth of 2.4GHz radio is 40MHz wide....
Not exactly true. WiFi 2.4GHz band extends from 2401MHz (lower boundary of channel 1) to 2473MHz (upper boundary of channel 11, relevant in NA) or 2483MHz (upper boundary of channel 13, relevant in EU and almost everywhere else than NA). Which gives 72MHz or 82MHz of bandwidth depending on country regulations.
For OFDM modulation (used in 802.11G and newer), channels are 2MHz narrower (1MHz on each boundary, center frequencies remain the same), yielding either 70MHz of bandwidth (in NA, allowing for three 20MHz channels or single 40MHz channel) or 80MHz of bandwidth (everywhere else, alliwing for four 20MHz channels or two 40MHz channels).

Sadly, given general US-centric internet (and social networks), internet is full of recipes to use channels 1-6-11 for WiFi which uses 70MHz sparsely and interferes with channel layout 1-5-9-13 which uses 80MHz effectively.
N.B. recipe to use channels sparselly (1-6-11) did make slight sense for 802.11B (because channel width was 22MHz and using dense channels 1-5-9(-13) would cause slight channel overlap).
 
User avatar
abbio90
Member
Member
Topic Author
Posts: 458
Joined: Fri Aug 27, 2021 9:16 pm
Location: Oristano
Contact:

Re: CAPSMAN WiFi Wave2

Sun Dec 08, 2024 3:20 pm

I've done some tests and it seems everything works perfectly.