Here is my network diagram screenshot.28.jpg My PC is connected to switch TL-SG3424X_MASTER which is on Po5. Vlan 240 is for network administration. I would like root port to be spfplus1 and alternate port bonding. Sfpplus interface on both routers won't become root port. Switch configuration: TL-SG...
I found the solution!
The problem is in command ssh. /system/ssh... does not work in /system/script for remote router. /system/ssh-exec... should be used instead.
Yes, i am doing that. First in cli Screenshot_20220807-143558_Microsoft Remote Desktop.jpg Then in script Screenshot_20220807-144012_Microsoft Remote Desktop.jpg I tried something more simple also from cli and from script, but it also does not work from script and works from cli. Screenshot_20220807...
After executing the command in terminal it says:
Welcome back!
And i can see that peer is created.
I delete it and try again from system script.
No log on both routers.
The value of $publickey is: X7ZcanAGeG+G7/rZWDV4RoZ8vohzaUW9pdqEfkdiFRw= I set it in SMS sending to router with LTE interface (sim card for 3G). This part with setting the variable with SMS works. When i put this in a script then it does not work: /system/ssh address=192.168.240.9 user=dprnic comman...
I have no experience with Mikrotik scripting. This works from terminal but not as a script: /system/ssh address=192.168.240.9 user=dprnic command="[/interface/wireguard/peers/add interface=wireguard_users public-key=\"X7ZcanAGeG+G7/rZWDV4RoZ8vohzaUW9pdqEfkdiFRw=\" allowed-address=192....