Community discussions

MikroTik App

Search found 11 matches

bypxcorp
我的6月20日2022 1:25 am
论坛:Scripting
Topic:Problem with array constant
Replies:6
Views:477

Re: Problem with array constant

You mentioned v6, on v7 it works differently, it's this way by design. I don't know how is :set command implemented inside ros v6 and v7, in fact probably only few people know that. But it does'n matter - it should assign value of second parameter to first one. In manual there is exactly written: &...
bypxcorp
我的6月20日2022 12:54 am
论坛:Scripting
Topic:Problem with array constant
Replies:6
Views:477

Re: Problem with array constant

Still not change that is work exactly as expected, what is your problem? totally wrong result of script right result should be a=2;b=1;c=1 a=1;b=2;c=1 a=1;b=1;c=2 Just found that in ros v7.3.1 it works correctly (and if set is with : doesn't matter to): :foreach i in={"a";"b";&q...
bypxcorp
我的6月20日2022 12:38 am
论坛:Scripting
Topic:Problem with array constant
Replies:6
Views:477

Re: Problem with array constant

missing : here: "; set"
Yes that is typo in command, but it works exactly same way with and without : - in both cases parser not complain about syntax error and behavior is exactly same.
bypxcorp
我的6月20日2022 12:18 am
论坛:Scripting
Topic:Problem with array constant
Replies:6
Views:477

Problem with array constant

Hello I have problem with reusing associative array initializer in loop - first pass works OK, but next passes initialization not working. It is also reproducible in terminal console: :foreach i in={"a";"b";"c"} do={:local x [:toarray ""]; :set x {"a"...
bypxcorp
Tue May 10, 2022 8:19 am
论坛:Scripting
Topic:error handling with /import
Replies:1
Views:373

error handling with /import

Hello I am importing script from another script. Import itself working but I woul like to add some error handling. So I tried: :do { /import file-name="somescript.rsc" } on-error={ :log warning "script failed" } But this way it work only when import command failed itself (importe...
bypxcorp
Sun Aug 05, 2018 9:15 pm
论坛:Announcements
Topic:v6.42.6 [current]
Replies:102
Views:59187

Re: v6.42.6 [current]

Hello, I upgrade CRS125 from 6.41.3 to 6.42.6 and found excesive packet lost on fasttracked connections (I use CRS to do NAT between two logical networks/IP ranges). When I disable fasttrack connection rule in forward chain of IP firewall then everything works, when I enable it drops packets (and no...
bypxcorp
Thu Jun 29, 2017 10:30 pm
论坛:General
Topic:RB3011 UiAS switch1/2-cpu vlan-header mode problem
Replies:10
Views:2480

Re: RB3011 UiAS switch1/2-cpu vlan-header mode problem

Mickey: Maybe this is because RB3011 and RB2011 have different internal connection between CPU and switches (RB3011 have two links to each switch and RB2011 only one to each). I don't find any configuration of switch that works, so I have to bridge access ports to VLANs in CPU instead of switch (to ...
bypxcorp
Fri Jun 16, 2017 11:25 am
论坛:General
Topic:RB3011 UiAS switch1/2-cpu vlan-header mode problem
Replies:10
Views:2480

Re: RB3011 UiAS switch1/2-cpu vlan-header mode problem

Hello, in test setup all devices other than computer was mikrotiks (HAPac lite) with 6.40rc19 or rc21, spanning tree is disabled everywhere on bridges (but I check it again for sure). Changing brg_mngmt MAC to generated one was first thing that I tried - but without success (it only changed which de...
bypxcorp
Fri Jun 16, 2017 9:34 am
论坛:General
Topic:RB3011 UiAS switch1/2-cpu vlan-header mode problem
Replies:10
Views:2480

Re: RB3011 UiAS switch1/2-cpu vlan-header mode problem

Hello, it is not my intent to do in my own strage way, but understand what I am doing, so I expected no only "do it this way" but also why it should be done this way/what happend inside switch chipset. I think that networking isn't "black magic", or at least shouldn't be - networ...
bypxcorp
Thu Jun 15, 2017 10:58 pm
论坛:General
Topic:RB3011 UiAS switch1/2-cpu vlan-header mode problem
Replies:10
Views:2480

Re: RB3011 UiAS switch1/2-cpu vlan-header mode problem

Access port (ether 5) have such setting: set 4 default-vlan-id=200 vlan-header=always-strip vlan-mode=secure If I understand principe of settings for tagging inside switch it is necessary to explicitly add tags to packet which came from access port to trunk port So for trunk and CPU port I need to s...
bypxcorp
Thu Jun 15, 2017 8:30 pm
论坛:General
Topic:RB3011 UiAS switch1/2-cpu vlan-header mode problem
Replies:10
Views:2480

RB3011 UiAS switch1/2-cpu vlan-header mode problem

Hello i have problems with packet tagging on RB3011. I configured VLANs on both switch chips a set switch1-cpu and switch2-cpu port to secure mode and header add if missing. Then I instantiate VLAN 200 interfaces on both master ports and bridget it together. In this configuration I observe significa...