Ahojte u kamarata na penzione sa troška trapim s Roamingom AP. Mám tam 6 AP RBcAP-2n
Mám to zapojené nasledovne
Internet === RB2011UiAS-2HnD-IN ==== RB260GSP (3x RBcAP-2n {AP1-3} ) ===== RB260GSP === (3x RBcAP-2n {AP4-6} )
Takto mam spravenu konfiguraciu AP na všetkych 6 je rovnaka. pretože mi to nejde ako by som si prestavoval mam zapnute len 2 aby som si to vedel otestovať nejak rozumne.
Vo wireless som povolil CAPsMan
[admin@WIFI_1] > interface wireless cap print
enabled: yes
interfaces: wlan1
certificate: request
lock-to-caps-man: no
discovery-interfaces: ether1
caps-man-addresses:
caps-man-names:
caps-man-certificate-common-names:
bridge: Roaming
requested-certificate: CAP-4C5E0C6E1074
Potom ma pripoji na Managment CapsMan a objavi sa mi dalsi interfaces
[admin@WIFI_1] > interface wireless print
Flags: X - disabled, R - running
0 X ;;; managed by CAPsMAN
;;; channel: 2442/20-Ce/gn(20dBm), SSID: NetSkuska, CAPsMAN forwarding
name="wlan1" mtu=1500 mac-address=4C:5E:0C:6E:10:79 arp=enabled interface-type=Atheros AR9300 mode=station ssid="MikroTik" frequency=2412 band=2ghz-b channel-width=20mhz scan-list=default
wireless-protocol=any 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=default compression=no
1 X ;;; managed by CAPsMAN
;;; SSID: NetSkuska, CAPsMAN forwarding
name="wlan5" mtu=1500 mac-address=D4:CA:6D:DE:74:2B arp=enabled interface-type=virtual-AP master-interface=wlan1
a na koniec som to dal do bridgu
[admin@WIFI_1] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 D 10.255.0.254/24 10.255.0.0 ether1
A Hlavny router mam nastavený nasledovne:
CAPsMAN mam nastaveny takto:
/caps-man channel
add frequency=2412 name=channel1
add frequency=2437 name=channel6
/caps-man security
add authentication-types=wpa-psk encryption=tkip name=WPA passphrase=XXZZZZXX
/caps-man configuration
add channel.band=2ghz-b/g/n channel.width=20 country=slovakia datapath.bridge=Roaming guard-interval=long hide-ssid=no name=cfg1 security.authentication-types=wpa-psk,wpa2-psk security.encryption=aes-ccm \
security.group-encryption=aes-ccm security.passphrase=12doma34 ssid=NetSkuska
/caps-man interface
#
add arp=enabled configuration=cfg1 disabled=no l2mtu=1600 mac-address=4C:5E:0C:6E:10:79 master-interface=none mtu=1500 name=cap1 radio-mac=4C:5E:0C:6E:10:79
#
add arp=enabled configuration=cfg1 disabled=no l2mtu=1600 mac-address=D4:CA:6D:DE:74:2B master-interface=none mtu=1500 name=cap2 radio-mac=D4:CA:6D:DE:74:2B
/caps-man manager
set ca-certificate=auto certificate=auto enabled=yes
/caps-man provisioning
add action=create-dynamic-enabled master-configuration=cfg1 name-prefix=NetAP
Potom som cele dal do bridge
/interface bridge print
Flags: X - disabled, R - running
0 R name="Roaming" mtu=auto actual-mtu=1500 l2mtu=1598 arp=enabled mac-address=D4:CA:6D:B1:A5:28 protocol-mode=rstp priority=0x8000 auto-mac=yes admin-mac=00:00:00:00:00:00 max-message-age=20s
forward-delay=15s transmit-hold-count=6 ageing-time=5m
Spustil som nat
/ip firewall nat print
Flags: X - disabled, I - invalid, D - dynamic
0 ;;; default configuration
chain=srcnat action=masquerade to-addresses=0.0.0.0 src-address=10.255.0.0/24 out-interface=ether1-gateway log=no log-prefix=""
A este som spravil DHCP server
/ip dhcp-server print
Flags: X - disabled, I - invalid
# NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP
0 dhcp1 Roaming dhcp_pool1 10m
Problem mam nasledovný. Najskor mi to chodilo len na jedno AP. Musel som vypnut Channel frequency.
Potom mi to zacalo sa aspon pripajat na jednotlive AP.
To mi funguje ale teraz by som potreboval aby mi fungoval roaming. Ale tu niekde robim asi chybu. Ako spravit aby mi korektne preplo na AP s lepsim signalom ?
Skusil som nasledovne veci:
/caps-man access-list
add action=accept interface=all signal-range=-77..120
add action=reject interface=all signal-range=-120..-78
Nejak mi to nejde. Zapis by mal byt spravny.
Na nete som nasiel este jeden skript
:local MAXsignal "-78";
:local capsClientId;
:local capsClient;
:local capsClientSignal;
:foreach i in=[/caps-man registration-table find] do={
:set capsClientId [/caps-man registration-table get $i];
:set capsClient [/caps-man registration-table get $i mac-address];
:set capsClientSignal [/caps-man registration-table get $i rx-signal];
:if ("$MAXsignal" > $capsClientSignal) do={
/caps-man registration-table remove $i;
:log info "Caps script kick user $capsClient signal $capsClientSignal";
}
}
Ale ani s tymto skriptom mi to nechodi.
Ako to poriesiť aby to chodilo ? Skusal to niekto ? Alebo mate nejake ine nápady ako by sa to dalo poriesiť ?
Za kazdu radu vopred ďakujem
ESTE doplnim:
Raz sa pripoji na kazdu wifi, po cca10 min nie a nie sa na niektore AP pripojit. na jedno to ide na druhe nie a nie a pritom nastavenie je stale to iste
Michal