![MikroTik RouterOS v2.9 Скачать руководство пользователя страница 101](http://html1.mh-extra.com/html/mikrotik/routeros-v2-9/routeros-v2-9_reference-manual_1794644101.webp)
Common Console Functions
Description
The console allows configuration of the router's settings using text commands. Although the
command structure is similar to the Unix shell, you can get additional information about the
command structure in the Scripting Host and Complementary Tools manual. Since there is a lot
of available commands, they are split into groups organized in a way of hierarchical menu levels.
The name of a menu level reflects the configuration information accessible in the relevant section,
exempli gratia /ip hotspot.
In general, all menu levels hold the same commands. The difference is expressed mainly in
command parameters.
Example
For example, you can issue the /ip route print command:
[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] >
Instead of typing ip route path before each command, the path can be typed only once to move into
this particular branch of menu hierarchy. Thus, the example above could also be executed like this:
[admin@MikroTik] > ip route
[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>
Notice that the prompt changes in order to reflect where you are located in the menu hierarchy at
the moment . To move to the top level again, type /:
[admin@MikroTik] > /ip route
[admin@MikroTik] ip route> /
[admin@MikroTik] >
To move up one command level, type ..:
[admin@MikroTik] ip route> ..
[admin@MikroTik] ip>
You can also use / and .. to execute commands from other menu levels without changing the current
level:
Page 87 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 ...