I've found script examples on the forum working for eth interfaces but not for wireless.
Code: Select all
/inter wireless monitor [find name="wlan1"] once do={:global avoid1 $"frequency" }
How solve?
Thanks.
/inter wireless monitor [find name="wlan1"] once do={:global avoid1 $"frequency" }
:global wlan1freq [/int wire get wlan1 frequency]
:global wlan2freq [/int wire get wlan2 frequency]
:global wlan1freq [/int wire get [find default-name=wlan1] frequency]
:global wlan2freq [/int wire get [find default-name=wlan2] frequency]
:global wlan1freq [/int wire get wlan1 frequency]
:global wlan2freq [/int wire get wlan2 frequency]
:global failoverF1 5500
:global failoverF2 5600
:if (!((($wlan1freq - $wlan2freq) < -20) || (($wlan1freq - $wlan2freq) > 20)) ) do={
:if ($wlan2freq=$failoverF1) do={
/int wire set wlan2 frequency=$failoverF2
} else={
/int wire set wlan2 frequency=$failoverF1
}
}
1 ;;; ap bridge
name="wlan2" mtu=1500 mac-address=00:1B:B1:04:BA:4A arp=enabled interface-type=Atheros AR5213 mode=ap-bridge ssid="MTLO"
frequency=5510 band=5ghz-a channel-width=10mhz scan-list=5495-5520 wireless-protocol=nstreme antenna-mode=ant-a wds-mode=dynamic
wds-default-bridge=bridge1 wds-ignore-ssid=yes bridge-mode=enabled default-authentication=yes default-forwarding=yes default-ap-tx-l
default-client-tx-limit=0 hide-ssid=no security-profile=crs_2018 compression=no
[admin@mMTLO1] /interface wireless> monitor
wlan1 wlan2 do file interval numbers
[admin@mMTLO1] /interface wireless> monitor wlan2
;;; ap bridge verso Monte Grappa - Pol H 287
status: running-ap
band: 5ghz-10mhz
frequency: 5500MHz
wireless-protocol: nstreme
noise-floor: -101dBm
overall-tx-ccq: 26%
registered-clients: 0
authenticated-clients: 0
polling: yes
csma-disabled: no
current-tx-powers: 6Mbps:15(15/15),9Mbps:15(15/15),12Mbps:15(15/15),18Mbps:15(15/15),24Mbps:15(15/15),36Mbps:15(15/15),48Mbps:14(14/14),54Mbps:13(13/13)
notify-external-fdb: no
[admin@mMTLO1] /interface wireless>
/int wire monitor wlan1 once do={ :global wlan1freq $channel }
/int wire monitor wlan2 once do={ :global wlan2freq $channel }
:set $wlan1freq [:pick $wlan1freq -1 [:find $wlan1freq "/" -1]]
:set $wlan2freq [:pick $wlan2freq -1 [:find $wlan2freq "/" -1]]
:global failoverF1 5500
:global failoverF2 5520
:if (!((($wlan1freq - $wlan2freq) < -10) || (($wlan1freq - $wlan2freq) > 10)) ) do={
:if ($wlan2freq=$failoverF1) do={
/int wire set wlan2 frequency=$failoverF2
} else={
/int wire set wlan2 frequency=$failoverF1
}
}
I do hope this is a standalone network not connected to internet.ROs 6.19
OfftopicI do hope this is a standalone network not connected to internet.ROs 6.19
If its connected to internet, you should upgrade. 6.19 are very old an have many security flaws.
OfftopicI do hope this is a standalone network not connected to internet.ROs 6.19
If its connected to internet, you should upgrade. 6.19 are very old an have many security flaws.
I updated firmware but ROs dfs is a nightmare due to false "radar detected" and too long waiting times; I had only two options, move to Ubiquiti or came back to 6.19 and manage dfs by my own through script. Network is not connected to internet.
/interface wireless
set wlan1 country=debug frequency-mode=superchannel tx-power-mode=all-rates-fixed tx-power=15 wps-mode=disabled station-roaming=disabled
:) no... the user "el berto" consider offtopic the dfs problem :))It's not off topic.
1. Most here are on 6.47+, so this is what they know about.
2. Much has change since 6.19 so config are not the same (master/slave gone)
3. You put your system at risk if its connected to internet. (even worse if you do remote admin )
It's fun to see the superchannel "solution" recommended; often no-one mentions it, possibly in the hope that if we never speak its name Mikrotik won't remove it.Paste this on terminal:Code: Select all/interface wireless set wlan1 country=debug frequency-mode=superchannel tx-power-mode=all-rates-fixed tx-power=15 wps-mode=disabled station-roaming=disabled