Specifies the item before which to place all items being moved (they are placed at the end of the list
if the second argument is omitted).
find - The find command has the same arguments as set, and an additional from argument which
works like the from argument with the print command. Plus, find command has flag arguments like
disabled, invalid that take values yes or no depending on the value of respective flag. To see all
flags and their names, look at the top of print command's output. The find command returns internal
numbers of all items that have the same values of arguments as specified.
edit - this command is in every place that has set command, it can be used to edit values of
properties, exempli gratia:
[admin@MikroTik] ip route> print Flags: A - active, X - disabled,
I
-
invalid,
D
-
dynamic,
C
-
connect,
S
-
static,
r
-
rip,
b
-
bgp,
o
-
ospf,
d
-
dynamic # DST-ADDRESS G GATEWAY DISTANCE INTERFACE 0 ADC 1.1.1.0/24 isp2 1 A S 2.2.2.0/24
r
1.1.1.2
0
isp2
2
ADC
3.3.3.0/24
bonding1
3
ADC
10.1.0.0/24
isp1
4
A
S
0.0.0.0/0
r
10.1.0.1 0 isp1 [admin@MikroTik] ip route> edit 1 gateway
Safe Mode
Description
It is possible to change router configuration in a way that will make it not accessible except from
local console. Usually this is done by accident, but there is no way to undo last change when
connection to router is already cut. Safe mode can be used to minimize such risk.
Safe mode is entered by pressing [Ctrl]+[X]. To quit safe mode, press [Ctrl]+[X] again.
[admin@MikroTik] ip route>[Ctrl]+[X]
[Safe Mode taken]
[admin@MikroTik] ip route<SAFE>
Message Safe Mode taken is displayed and prompt changes to reflect that session is now in safe
mode. All configuration changes that are made (also from other login sessions), while router is in
safe mode, are automatically undone if safe mode session terminates abnormally. You can see all
such changes that will be automatically undone tagged with an F flag in system history:
[admin@MikroTik] ip route>
[Safe Mode taken]
[admin@MikroTik] ip route<SAFE> add
[admin@MikroTik] ip route<SAFE> /system history print
Flags: U - undoable, R - redoable, F - floating-undo
ACTION
BY
POLICY
F route added
admin
write
Now, if telnet connection is cut, then after a while (TCP timeout is 9 minutes) all changes that were
made while in safe mode will be undone. Exiting session by [Ctrl]+[D]emphasis> also undoes all
safe mode changes, while /quit does not.
If another user tries to enter safe mode, he's given following message:
[admin@MikroTik] >
Hijacking Safe Mode from someone - unroll/release/don't take it [u/r/d]:
• [u] - undoes all safe mode changes, and puts the current session in safe mode.
• [d] - leaves everything as-is.
•
[r] - keeps all current safe mode changes, and puts current session in a safe mode. Previous
Page 92 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
Содержание RouterOS v2.9
Страница 1: ...MikroTik RouterOS v2 9 Reference Manual ...