Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Mikrotik-routeros command line operations (continuously updated)

Shulou Source: shulou.com Published: 2022-06-01 03:30:19 10月06日 Update

Mikrotik is a relatively mature soft routing. This soft routing can be used as a reference when there are no conditions for purchasing and practical hardware routers or switching.

Home address: https://mikrotik.com/

Wiki documents: https://wiki.mikrotik.com/wiki/Main_Page

All right, if there are any commands or practical experiences that are not described in detail in this document, you can download OS and read related articles through the official website and wiki.

I. login method

1. Winbox: this official tool provides a client-side way to log in to RouterOS's system interface, so that it can be clearly used by a novice user or a child's shoes with a network foundation.

2. Web:RouterOS provides access to port 80 to log in and manage RouterOS like winbox.

3. Ssh:RouterOS provides standard port 22 to access RouterOS and manage RouterOS by command line. This is a management interface that many linux and network engineers prefer.

II. Ssh login operation

1. The default user name used by routeros is admin, and the password is empty.

2. SSH port number is the default port 22

3. The port number can be changed

III. Orders

Login command: ssh admin@ip-p port number

1. Enable SNMP1, snmp set enable=yes2, snmp community add name=zhongguo3, snmp set enabled=yes trap-community=zhongguo trap-version=2 contact=zhongguo 2, configure static route static route configuration: ip route add dst-address=192.168.0.0/24 gateway=10.0.0.1 default route configuration: ip route add gateway= 3, view port 1, view port status interface print2, view ip address interface: ip address print3, view licese registration information: system license print 3. Change host hostname change: system identity set name=zhongguo query: system identity print IV, backup configuration file query configuration file: file print backup configuration file: system backup save name=20180923 + other parameters

Tags: Routing configuration port login command method slogan file management utility address backup user interface network static query mature host home page Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Xiaomi MySQL vpn OPPO Reno