...
Code Block | ||
---|---|---|
| ||
[admin@MikroTik] > ip route print Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit # DST-ADDRESS PREF-SRC G GATEWAY DIS INTE... 0 A S 0.0.0.0/0 r 10.0.3.1 1 bridge1 1 ADC 1.0.1.0/24 1.0.1.1 0 bridge1 2 ADC 1.0.2.0/24 1.0.2.1 0 ether3 3 ADC 10.0.3.0/24 10.0.3.144 0 bridge1 4 ADC 10.10.10.0/24 10.10.10.1 0 wlan1 [admin@MikroTik] > |
...
You can specify multiple items as targets to some commands. Almost everywhere, where you can write the number of item, you can also write a list of numbers.
Code Block | ||
---|---|---|
| ||
[admin@MikroTik] > interface print Flags: X - disabled, D - dynamic, R - running |
...
# NAME TYPE MTU |
...
0 R ether1 ether 1500 1 R ether2 ether 1500 2 R ether3 ether 1500 3 R |
...
ether4 ether 1500 [admin@MikroTik] > interface set 0,1,2 mtu=1460 [admin@MikroTik] > interface |
...
print
Flags: X - disabled, D - dynamic, R - running
# NAME TYPE MTU
0 R ether1 ether 1460
1 R ether2 ether 1460
2 R ether3 ether 1460
3 R ether4 ether 1500
[admin@MikroTik] > |
Warning: Do not use Item numbers in scripts, it is not reliable way to edit items in scheduler. scripts, etc. Instead use find command. More info here also look at scripting examples.
...