Commands in MikroTik Router OS



Basic commands for Mikrotik Router OS – It is definitely confusing for those of you who are just learning to use Mikrotik with the command (command line) used in Router OS. Whereas, many basic commands of Mikrotik are important to be known so that user will utilize the Router OS well. Actually, the basic commands of  MikroTik Router OS have not much different from
the basic commands in Linux in general. Because, the Mikrotik is actually an outgrowth of the Debian linux kernel.


Router OS mikrotik shell commands is just the same as Linux’s, like efficient in writing the command; imply use the TAB key on the keyboard to make a long command; no longer need to be typed; simply type the initial command, then Shell will automatically display the complete commands. For example, the IP ADDRESS commands on mikrotik. It is simply type the IP ADD, then press spacebar and press the TAB key, then the shell will automatically recognize and translate the IP ADDRESS command.

Here are the basic commands of Mikrotik that are commonly used:

1 . Commands to shutdown and restart the computer, type:
[ admin @ MikroTik ] > system shutdown (to shutdown the computer)
[ admin @ MikroTik ] > system reboot (to restart the computer)
[ admin @ MikroTik ] > system reset ( to reset  predefined configuration). Please keep in mind that the commands should be performed on the admin directory.

2 . Commands to change the name of the Mikrotik machine, type:
[ admin @ MikroTik ] > /system identity
[ admin @ MikroTik ] > system identity> set name = proxy
To view the configuration, type "print" or "pr"
E.g. [ admin @ MikroTik ] system identity > pr name: " proxy "
Then the console will turn into [ admin @ proxy ]

3 . Commands to change the password of MikroTik machine, type:
[ admin @ proxy ] > /password
[ admin @ proxy ] password > old password (if you have not set a password then enter empty)
[admin @ proxy ] password > new password : ...... (type the new password)
[admin @ proxy ] password > Retype new password : ........ (insert once again password)

For example:
If the old password is empty and the new password is ABCD, then the command is as follows:
[ admin @ proxy ] > /password
[ admin @ proxy ] password > old password
[ admin @ proxy ] password > new password ABCD
[ admin @ proxy ] password > Retype new password ABCD

4 . Commands to see the condition of the interface on Mikrotik Router:

[ admin @ MikroTik ] > interface print
Flags : X - disabled , D - dynamic , R - running
# NAME TYPE RX - RATE TX - RATE MTU
0 R ether1 ether 0 0 1500
1 R ether2 ether 0 0 1500
[ admin @ MikroTik ] >

If there is an X interface ( disabled ) after the number ( 0.1 ), then check again
the ethernet card; it should be R (running).

a. Change the interface name
    [admin @ MikroTik ] > interface ( enter)
b . To change the name of Interface ether1 into the Public (or whatever), then:
    [admin @ MikroTik ] interface > set 0 name = Public
c . So does for ether2, it supposed to change the name into Local, then
    [admin @ MikroTik ] interface > set 1 name = Local
d . Or just from the position of the root directory, put the sign " / " , without the quotes
    [admin @ MikroTik ] > /interface set 0 name = Public
e . Check again if the name of the interface has been changed
    [ admin @ MikroTik ] > /interface print
    Flags : X - disabled , D - dynamic , R - running
   # NAME TYPE RX - RATE TX - RATE MTU
   0 R Local ether 0 0 1500
   1 R Public ether 0 0 1500

5 . Commands to see the package software of MikroTik OS :
[ admin @ proxy ] > /system package
[ admin @ proxy ] system package > print or pr> <type

With the command above, then it will appear the package software of MikroTik Os.
For example:

[ admin @ MikroTik system package > pr
Flags : X - disabled
 # Name
0 X routing - test
1 dhcp
2 radiolan
3 user - manager
4 X webproxy - test
5 arlan
6 isdn
7 hotspot -fix
8 ppp
9 wireless
10 web - proxy
11 hotspots
12 advanced -tools
13 security
14 Telephony
15 routing
16, synchronous
17 system
18 routerboard
19 RSTP - bridge - test
20 X wireless- legacy

To see more details, then type:
     [ admin @ proxy ] system package > pr detail fl gs : X - disabled
0 X name = " routing - test" version = " 2.9.27 " build - time = 10:57:53 jul/03/2006 scheduled
1 name = " system " version = " 2.9.27 " build - time = jul/03/2006 10 : 56:37 schedule
2 name = " system " version = " 2.9.27 " build - time = jul/03/2006 10 : 56 : 44 schedule
3 name = " web - proxy " version = " 2.9.27 " build-time = jul/03/2006 10 : ` 58 : 03 schedule
4 name = " advanced - tools" version = " 2.9.27 " build-time = jul / 03 / 2006 10:56 GMT : 41 Scheduled = " "
5 name = " dhcp " version = " 2.9.27 " build-time = 10:56:45 Scheduled jul/03/2006 = " "
6 name = " hotspot " version = " 2.9.27 " build-time = 10:56:58 Scheduled jul/03/2006 = " "
7 x name = " webproxy - test" version = " 2.9.27 " build-time = jul / 03 / 2006 10:57:52 Scheduled
8 name = " routerboard " version = " 2.9.27 " build-time = jul / 03 / 2006 10 : 57 : 17 - [ Q quit | D dump | up | down ]

6 . Commands to upgrade the router software package :
[ admin @ MikroTik ] system upgrade >
To upgrade chosen packages:
Download 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14

7 . Command to enable existing software packages in the MikroTik OS:
    [ admin @ MikroTik ] system page >
     Enable <type package will>
For example :
[ admin @ proxy ] system package > enable dhcp

8 . Command to change the name of Ethernet of the MikroTik OS on the machine:
[ admin @ proxy ] > /interface
[ admin @ proxy ] interfaces > ethernet set Ethernet name = public
Or by using the command
[ admin @ proxy ] interface > set <type number ethernet used>
 name = new ethernet <username> >
For example :
[ admin @ proxy ] interface > set 0 name = public
[ admin @ proxy ] interface > set 1 name = lan
or
[ admin @ proxy ] interface >
set 0 name = public ; set 1 name = lan

9 . Commands to set the IP address on the machine MikroTik OS :
[ admin @ proxy ] > ip address
[ admin @ proxy ] ip address >
Add interface = <username> interface> address =
( type the IP address /subnet mask interface)
example :
If the interface name " Ian " and the IP address that you want: 192.168.01 and subnet mask : 255.255.255.0, then the command are as follows:
[ admin @ proxy ] > /ip address
[ admin @ proxy ] ip address >
Add interface = lan address = 192.168.0.1/24

10 . Commands setting primary and Secondary DNS IP:
[ admin @ proxy ] . /ip dns
[ admin @ proxy ] ip dns >
Set the name - dns > = <IP dns of ISP>

For example :
If IP DNS the primary ISP: 202.134.1.10 and secondary :
202.134.0.0155, then the command are as follows :
[ admin @ proxy ] . /ip dns
[ admin @ proxy ] ip dns >
Set primary - dns = 202.134.1.10
[ admin @ proxy ] ip dns >
Set secondary - dns = 202.134.0.155

11 . Commands to set IP gateway settings on the machine MikroTik OS:
[ admin @ proxy ] > /ip route
[ admin @ proxy ] ip route > add gateway = < ip gateway
Examples of ISP's gateway IP : 202.134.1.1, then the commands are:
[ admin @ proxy ] > /ip route
[ admin @ proxy ] ip route >
add gateway = 202.134.1.1

12 . Commands Translate Network address (NAT) on the MikroTik OS machine
[ admin @ proxy ] > /ip firewall nat
[ admin @ proxy ] ip firewall nat >
add chain = srcnat out-interface = < interface connected
WAN networks > scr-address =
< network-id interface connected to the LAN / subnet mask interface
LAN > action = masquerade

For example :
if the LAN interface network - id : "192.168.0.0" and subnet
Mask : " 255.255.255.0 " . for MikroTik OS machine interface that is connected to the network
WAN : " public ", then the command are as follows :
[ admin @ proxy ] > /ip firewall nat
[ admin @ proxy [ ip firewall nat >
Add chain = srcnat out-interface = public
Src-address = 192.168.0.0/24 action = masquerade

73 comments:

  1. I am happy after visited this site. It contains valuable data for the guests. Much thanks to you!
    License Key Download
    DiskDigger Crack
    MikroTik Crack
    ProShow Producer Crack
    Speccy Pro Crack

    ReplyDelete
  2. Excellent work I Really impressed and got lots of information from your post and encourage me to work as best as i can. keep it!
    License Key Download
    DiskDigger Crack
    MikroTik Crack
    ProShow Producer Crack
    Speccy Pro Crack

    ReplyDelete
  3. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. wahabtech.net I hope to have many more entries or so from you.
    Very interesting blog.
    Mikrotik Crack

    ReplyDelete
  4. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    cracksfix.org
    PC Auto Shutdown Crack

    ReplyDelete
  5. Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include.공주홈케어
    논산홈케어
    계룡홈케어
    보령홈케어
    서산홈케어
    아산홈케어
    천안홈케어
    예산홈케어
    당진홈케어

    ReplyDelete
  6. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    macsoftwarez.com
    Rc 20 Retro Color Crack

    ReplyDelete
  7. PRTG Network Monitor 22.3.80 Crack

    Many thanks for sharing such incredible knowledge. It's really good for your Website.The info on your website inspires me greatly. This website I'm bookmarked. Maintain it and thanks again.I'm really impressed with your writing skills, as smart as the structure of your weblog.

    ReplyDelete
  8. Nice article and explanation Keep continuing to write an article like this you may also check my website
    PRTG Network Monitor crack

    ReplyDelete
  9. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    vstmenia.com
    ifind-data-recovery Crack

    ReplyDelete
  10. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    vstmenia.com
    veritas-backup-exec Crack

    ReplyDelete

  11. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Download softcrack.org But thankfully, I recently visited a website named softcrack.org.
    softwarezguru.com
    Easeus Partition Master Crack
    iExplorer Crack
    Wondershare Video Converter Ultimate Crack
    TechTool Pro Crack
    Abelssoft CheckDrive Crack
    Waves Crack
    Wondershare Filmora Crack
    FL Studio Crack
    Tekken Crack

    ReplyDelete

  12. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Download softcrack.org But thankfully, I recently visited a website named softcrack.org.
    softwarezguru.com
    Easeus Partition Master Crack
    iExplorer Crack
    Wondershare Video Converter Ultimate Crack
    TechTool Pro Crack
    Abelssoft CheckDrive Crack
    Waves Crack
    Wondershare Filmora Crack
    FL Studio Crack
    Tekken Crack

    ReplyDelete
  13. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Download Cracked Pro Softwares But thankfully, I recently visited a website named https://playboycrack.com/
    All Pro Cracked Softwares Download
    Blue Iris Powerfully Crack
    Mullvad VPN Crack
    Spore Crack

    ReplyDelete

  14. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Download softcrack.org But thankfully, I recently visited a website named softcrack.org
    softcrack.org
    Pixellu SmartAlbums Crack
    CleanMyMac X Crack
    MOTU Digital Performer Crack
    Grand Theft Auto V Crack
    Adobe Substance 3D Painter Crack
    Atomic Mail Sender Crack
    WM Capture Crack
    Waves Crack
    Wondershare Filmora Crack
    FL Studio Crack
    Tekken Crack

    ReplyDelete
  15. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost the past 2 years, but I had no idea of solving some basic issues. I do not know how to Download Cracked Pro Softwares But thankfully, I recently visited a website named https://playboycrack.com/
    All Pro Cracked Softwares Download
    SnapGene Crack
    Sandboxie Pro Crack
    Paragon Hard Disk Manager Crack

    ReplyDelete
  16. aI like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    ReFX Nexus Crack
    PRTG Network Monitor Crack
    PUSH Video Wallpaper Crack
    Google Chrome Crack
    Eset Smart Security Premium Crack

    ReplyDelete
  17. aI like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    iExplorer Crack
    Pixellu SmartAlbums Crack
    4K Video Downloader Crack
    Omnisphere Mac Crack
    Zoiper Premium Crack

    ReplyDelete
  18. I am very thankful for the effort put on by you, to help us, Thank you so much for the post it is very helpful, keep posting such type of Article.
    PC Auto Shutdown Crack
    Royalspc

    ReplyDelete
  19. I am very thankful for the effort put on by you, to help us, Thank you so much for the post it is very helpful, keep posting such type of Article.
    ASTER crack
    3starspc

    ReplyDelete
  20. Hello, Your Site is very nice, and it's very helping us this post is unique and interesting, thank you for sharing this awesome information. and visit our blog site also..
    Keep it up
    essentialpim-pro

    href="https:/crackprospc.com/AVG Secure VPN /">AVG Secure VPN

    href="https:/crackprospc.com/Krotos Everything Bundle/">Krotos Everything Bundle

    href="https:/crackprospc.com/Pixellu SmartAlbums /">Pixellu SmartAlbums /a>
    href="https:/rackprospc.com/Obit Start Menu 8 Pro/">Obit Start Menu 8 Pro/a>
    href="https:/crackprospc.com/ChrisPC CPU Booster/">ChrisPC CPU Booster

    ReplyDelete
  21. I'm really impressed with your writing skills, as smart as the structure of your
    Latest Software Free Download

    K7 Total Security Crack

    Miracle Box Crack

    HMA Pro VPN Crack

    Tenorshare ReiBoot Pro Crack

    ReplyDelete
  22. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    speccy pro crack

    ReplyDelete
  23. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    speccy pro crack

    ReplyDelete
  24. I'm really impressed with your writing skills, as smart as the structure of your Latest Software Free Download

    Sparkol VideoScribe Crack

    iZotope Ozone Crack

    MikroTik Crack

    ReplyDelete
  25. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot.I hope to have many more entries or so from you.
    Very interesting blog.
    SpyHunter crack
    Ableton Live crack
    iZotope Nectar crack
    Microsoft Office crack

    ReplyDelete
  26. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot.I hope to have many more entries or so from you.
    Very interesting blog.
    SpyHunter crack
    Ableton Live crack
    iZotope Nectar crack
    Microsoft Office crack

    ReplyDelete
  27. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot.I hope to have many more entries or so from you.
    Very interesting blog.
    SpyHunter crack
    Ableton Live crack
    iZotope Nectar crack
    Microsoft Office crack

    ReplyDelete
  28. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.

    Very interesting blog.

    Pixellu SmartAlbums ProCrack

    ReplyDelete
  29. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.

    Very interesting blog.

    Pixellu SmartAlbums Crack

    ReplyDelete
  30. This is a charming article. You have done excellent work. I like your blog, it is full of knowledge and gain. keep it up. crackbins.com

    Sonnox Oxford Bundle FREE

    ReplyDelete

  31. I like your all post. You have done really good work. Thank you for the information you provide, it helped me a lot. I hope to have many more entries or so from you.
    Very interesting blog.
    https://alldownloadpc.com/
    NI Massive X Crack

    ReplyDelete
  32. https://mudassirali625786.blogspot.com/2023/04/to-get-free-wavepad-sound-editor.html

    ReplyDelete
  33. I am very thankful to you because you blog so informative for me. And I am a professional web blogger or you visit my web site to get information. Kindly click the link and visit my web site.
    SysTools SSD Data Recovery Crack

    ReplyDelete

  34. Unlock Your Website's Full Potential with Our SEO Magic!
    PC Auto Shutdown Crack

    ReplyDelete
  35. Great job! Your dedication really shows in the quality of your work.PC Auto Shutdown Crack

    ReplyDelete
  36. I am very impressed with your post because this post is very beneficial for me and provide a new knowledge.

    Drive Snapshot Pro Crack

    Valentina Studio Pro Crack

    MikroTik Crack

    ReplyDelete
  37. iTop VPN 5.2.2 Crack + Serial Key Full Download [Updated] 2024

    iTop VPN 5.2.2 Crack is a large tool toward secrete one’s individuality as steer the Internet. Users spirit find to a lot of websites happening the Internet be infertile or nix single preserve contact them.

    ReplyDelete
  38. I am very impressed with your post because this post is very beneficial for me and provide a new knowledge.

    File Scavenger Pro Crack

    FastStone Image Viewer Crack

    Wondershare Video Converter Crack

    ReplyDelete
  39. I am very impressed with your post.Your writing skills are awesome and provides me with new information.

    AutoCAD Crack

    vMix Pro Crack

    DriverFix Crack

    Speccy Professional Crack

    Adobe Illustrator CC Crack 

    ReplyDelete
  40. I am very impressed with your post because this post is very beneficial for me and provide a new knowledge.

    Valentina Studio Pro Crack

    VyprVPN Crack

    MikroTik Crack

    ReplyDelete
  41. Betternet VPN Premium Crack is a strong proxy application that permit you Google the web secretly also acquire to some infertile webpage. It could remain downloaded in place of free as of the professional sites.
    Betternet VPN Premium Crack

    ReplyDelete
  42. Zoom Cloud Meeting Crack present can film meeting, cloud meeting industry, as well as ease of gather class. Zoom Meetings Download is present film tutorial also messaging application that keep happy the necessities of new squad working on small moreover large everyday jobs use whole the possessions available universal.
    Zoom Cloud Meetings Crack

    ReplyDelete