![]() Generally, item names are more "stable" than the numbers, and also more informative, so you should prefer them to numbers when writing console scripts. However, there are all kinds of obscure situations possible when several users are changing router's configuration at the same time. Thus, they would not change on their own. ![]() You do not have to use the print command before accessing items by their names, which, as opposed to numbers, are not assigned by the console internally, but are properties of the items. There you can use item names instead of item numbers. Some lists have items with specific names assigned to each of them. To change properties of an item, you have to use set command and specify name or number of the item. All items in the list have an item number followed by flags and parameter values. Such arrays are displayed in similarly looking lists. Many of the command levels operate with arrays of items: interfaces, routes, users etc. to execute commands from other menu levels without changing the current ip route> /ping 10.0.0.1Ģ packets transmitted, 0 packets received, 100% packet ip firewall nat>. To move to the top level again, type " / > ip ip route> ![]() Notice that the prompt changes in order to reflect where you are located in the menu hierarchy at the moment. Thus, the example above could also be executed like > ip ip route> printĤ ADC 10.10.10.0/24 10.10.10.1 0 ip route> 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. # DST-ADDRESS PREF-SRC G GATEWAY DIS INTE. ip hotspot.įor example, you can issue the /ip route print > ip route printįlags: X - disabled, A - active, D - dynamic,Ĭ - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,ī - blackhole, U - unreachable, P - prohibit The name of a menu level reflects the configuration information accessible in the relevant section, eg. Since there is a lot of available commands, they are split into groups organized in a way of hierarchical menu levels. The console allows configuration of the router's settings using text commands. Please consult the Scripting Manual on some advanced console commands and on how to write scripts. This manual describes the general console operation principles. The console is also used for writing scripts. The console is used for accessing the MikroTik Router's configuration and management features using text terminals, either remotely using serial port, telnet, SSH or console screen within Winbox, or directly using monitor and keyboard.
0 Comments
Leave a Reply. |