Community discussions

MikroTik App
 
Msas
just joined
Topic Author
Posts: 5
Joined: Sat Apr 08, 2023 11:28 pm

Scripting second base

Sat Apr 08, 2023 11:34 pm

Hi, need help… I am a “novice” I scripting and networking., building a local nettwork..

I have 1 base and 4 clients up and running.. Ned to add a new base to cover a new sector.

What to change in my script?
Last edited by Msas on Sun Apr 09, 2023 12:11 am, edited 1 time in total.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2880
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Script

Sat Apr 08, 2023 11:42 pm

Start with this: viewtopic.php?t=45259
 
Msas
just joined
Topic Author
Posts: 5
Joined: Sat Apr 08, 2023 11:28 pm

Re: Script

Sun Apr 09, 2023 12:01 am

Thank you … the script is working on base1,,, but what to change on base 2?


interface bridge
add fast-forward=no name=bridge1
/interface wireless
set [ find default-name=wlan1 ] band=5ghz-onlyac channel-width=\
20/40/80mhz-Ceee country=norway disabled=no frequency=5500 installation=\
outdoor mode=ap-bridge nv2-preshared-key=Traug9318 nv2-security=\
enabled radio-name=Base-107578 ssid=Msas-107578 station-roaming=\
enabled wireless-protocol=nv2
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
add authentication-types=wpa2-psk eap-methods="" management-protection=\
allowed mode=dynamic-keys name=SnorlausLAN supplicant-identity="" \
wpa2-pre-shared-key=Traug9318
/interface bridge port
add bridge=bridge1 interface=wlan1
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=all
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/ip address
add address=192.168.88.200/24 comment="Managment IP" interface=bridge1 \
network=192.168.88.0
/ip cloud
set ddns-enabled=yes
/ip dns
set servers=1.1.1.1,1.0.0.1
/ip route
add distance=1 gateway=192.168.88.1
/system clock
set time-zone-name=Europe/Oslo
/system identity
set name=Base-Msas-107578
/system ntp client
set enabled=yes server-dns-names=\
no.pool.ntp.org,1.no.pool.ntp.org,2.no.pool.ntp.org
/system package update
set channel=long-term
/system routerboard settings
set auto-upgrade=yes
/system script
add dont-require-permissions=no name=ta-backup owner=admin policy=\
ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon source="/\
\_system backup save name=([:tostr [/ system identity get name]]);\r\
\n/ export file=([:tostr [/ system identity get name]]);\r\
\n/ export verbose file=(:put [:tostr [/ system identity get name;]].\"-ve\
rbose\");\r\
\n"
/tool romon
set enabled=yes secrets=MAX1212
Last edited by Msas on Sun Apr 09, 2023 12:42 am, edited 1 time in total.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2880
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Script

Sun Apr 09, 2023 12:03 am

Reread introduction part of using formatting codes in posts and apply.
Remove also security data as WiFi key etc.
 
Msas
just joined
Topic Author
Posts: 5
Joined: Sat Apr 08, 2023 11:28 pm

Re: Script

Sun Apr 09, 2023 12:06 am

Don that… not the right security data 😉
 
Msas
just joined
Topic Author
Posts: 5
Joined: Sat Apr 08, 2023 11:28 pm

Re: Script

Sun Apr 09, 2023 12:09 am

As I said, haven’t been working on networking in decades… so.. need som pointers.
 
User avatar
Amm0
Forum Guru
Forum Guru
Posts: 3460
Joined: Sun May 01, 2016 7:12 pm
Location: California

Re: Scripting second base

Mon Apr 10, 2023 3:38 pm

I could be as simple as changing the management address from 192.168.88.200 to 192.168.88.201, assuming this new "base"/AP connected to same switch with the 192.168.88.1 router as the first "base"/AP. Your wireless client on the other end of the new NV2 link need to use a different wireless "mode=" like "station" or "station-bridge" (instead of the ap-bridge used by the base).

Beyond that a diagram or better explanation help. Otherwise with one config file and no context, I'm just guessing at the answer.
 
Msas
just joined
Topic Author
Posts: 5
Joined: Sat Apr 08, 2023 11:28 pm

Re: Scripting second base

Wed Apr 12, 2023 1:24 am

Thank you for awnser..

No… The ip is changed… and the ssid, frequency….. but still….

Try to make a diagram, but this is simple stuff… just a switch and the bases… the send to multiple clients..
 
User avatar
Ca6ko
Long time Member
Long time Member
Posts: 500
Joined: Wed May 04, 2022 10:59 pm
Location: Kharkiv, Ukraine

Re: Scripting second base

Wed Apr 12, 2023 8:17 am

You want help and want forum users to guess the right answer for you.
Setting up two access points next to each other requires 3 times the wifi knowledge. We do not know your qualifications. So give us all the information you have. Draw a diagram, describe what you have done and what is not working.
We also need a scan of the air from both points/sectors.

Who is online

Users browsing this forum: adwlodaro, phascogale, stmx38, Valerio5000 and 75 guests