Judul : 40 Perintah dasar mikrotik
link : 40 Perintah dasar mikrotik
40 Perintah dasar mikrotik
Pada MikroTik terdapat beberapa perintah dasar yang penting dan harus kita ketahui, sekarang saya akan menunjukan 40 perintah dasar yang ada di MikroTik :- Memberikan IP Address
- Melihat IP Address
- Melakukan PING
- Melihat interface yang ada
- Mematikan Router
- Reboot Router
- mereset konfigurasi Router
- Mengganti hostanme
- Melihat lisensi yang terpasang.
- Menganti nama interface dari ROuter
- Untuk melihat speksifikasi dari Router
- Melihat user yang ada.
- Membuat sebuah user baru.
- Mengatur password pada sebuah user.
- Mengatur DNS Server dari Router
- Melihat dns server yang sedang digunakan.
- Mematikan sebuah interface
- Menyalakan sebuah interface
- Mengatur default gateway untuk ke Internet.
- Melihat Routing table
- Membuat interface bridge
- Memasukan interface fisik dalam interface bridge
- Melihat interface bridge yang ada
- Mengatur NAT pada Router
- Backup konfigurasi
- Restore konfigurasi
- Ekspor konfigurasi
- Impor konfigurasi
- Meminta IP Address DHCP pada DHCP server
- Melihat paket yang terinstall.
- Mematikan paket yang terinstall.
- Menyalakan kembali paketyang telah didisable
- Melihat jam pada Router.
- Melihat log pada Router
- Melakukan monitoring terhadap traffic interface.
- Membuat address pool
- Membuat dhcp network
- Melihat daftar IP Pool
- Melihat DHCP-Server network
- DHCP Server setup
[admin@Dzikra-R] > ip address add address=10.10.10.1/24 interface=ether1
[admin@Dzikra-R] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 10.10.10.1/24 10.10.10.0 ether1
[admin@Dzikra-R] > ping 10.10.10.1
SEQ HOST SIZE TTL TIME STATUS
0 10.10.10.1 56 64 0ms
1 10.10.10.1 56 64 0ms
sent=2 received=2 packet-loss=0% min-rtt=0ms avg-rtt=0ms max-rtt=0ms
[admin@Dzikra-R] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE ACTUAL-MTU L2MTU
0 R ether1 ether 1500
1 R ether2 ether 1500
2 R ether3 ether 1500
3 R ether4 ether 1500
4 R ether5 ether 1500
5 R ether6 ether 1500
6 R ether7 ether 1500
7 R ether8 ether 1500
[admin@Dzikra-R] > system shutdown
[admin@Dzikra-R] > system reboot
[admin@Dzikra-R] > system reset-configuration no-defaults=yes
[admin@Dzikra-R] > system identity set name=Dzikra-R
[admin@Dzikra-R] > system license print
system-id: T0/p0IFR4vK
level: free
[admin@Dzikra-R] > interface set ether1 name=internet
[admin@Dzikra-R] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE ACTUAL-MTU L2MTU
0 R ether2 ether 1500
1 R ether3 ether 1500
2 R ether4 ether 1500
3 R ether5 ether 1500
4 R ether6 ether 1500
5 R ether7 ether 1500
6 R ether8 ether 1500
7 R internet ether 1500
[admin@Dzikra-R] > system resource print
uptime: 31m
version: 6.38 (stable)
build-time: Dec/30/2016 11:33:56
free-memory: 204.0MiB
total-memory: 221.9MiB
cpu: QEMU
cpu-count: 1
cpu-frequency: 1696MHz
cpu-load: 0%
free-hdd-space: 70.0MiB
total-hdd-space: 95.3MiB
write-sect-since-reboot: 2568
write-sect-total: 2569
architecture-name: x86_64
board-name: CHR
platform: MikroTik
[admin@Dzikra-R] > user print
Flags: X - disabled
# NAME GROUP ADDRESS LAST-LOGGED-IN
0 ;;; system default user
admin full
[admin@Dzikra-R] > user add name=dzikra group=full
[admin@Dzikra-R] > user set admin password=password
[admin@Dzikra-R] > ip dns set servers=8.8.8.8
[admin@Dzikra-R] > ip dns print
servers: 8.8.8.8
dynamic-servers:
allow-remote-requests: no
max-udp-packet-size: 4096
query-server-timeout: 2s
query-total-timeout: 10s
max-concurrent-queries: 100
max-concurrent-tcp-sessions: 20
cache-size: 2048KiB
cache-max-ttl: 1w
cache-used: 9KiB
[admin@Dzikra-R] > interface disable ether2
[admin@Dzikra-R] > interface enable ether2
[admin@Dzikra-R] > ip route add gateway=192.168.1.1
[admin@Dzikra-R] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 S 0.0.0.0/0 192.168.1.1 1
1 ADC 10.10.10.0/24 10.10.10.1 internet 0
[admin@Dzikra-R] > interface bridge add name=swithing-bridge
[admin@Dzikra-R] > interface bridge port add interface=ether4 bridge=swithing-bridge
[admin@Dzikra-R] > interface bridge port add interface=ether5 bridge=swithing-bridge
[admin@Dzikra-R] > interface bridge print
Flags: X - disabled, R - running
0 R name="swithing-bridge" mtu=auto actual-mtu=1500 l2mtu=65535 arp=enabled
arp-timeout=auto mac-address=00:C1:C2:3C:1B:03 protocol-mode=rstp
priority=0x8000 auto-mac=yes admin-mac=00:00:00:00:00:00
max-message-age=20s forward-delay=15s transmit-hold-count=6
ageing-time=5m
[admin@Dzikra-R] > ip firewall nat add chain=srcnat action=masquerade out-interface=internet
[admin@Dzikra-R] > system backup save name=backup1
Saving system configuration
Configuration backup saved
[admin@Dzikra-R] > system backup load name=backup1.backup
[admin@Dzikra-R] > export file=config-eksport
[admin@Dzikra-R] > import file-name=config-eksport.rsc
[admin@Dzikra-R] > ip dhcp-client add interface=internet
[admin@Dzikra-R] > system package print
Flags: X - disabled
# NAME VERSION SCHEDULED
0 routeros-x86 6.38
1 system 6.38
2 X ipv6 6.38
3 ups 6.38
4 wireless 6.38
5 hotspot 6.38
6 dhcp 6.38
7 mpls 6.38
8 routing 6.38
9 ppp 6.38
10 security 6.38
11 advanced-tools 6.38
12 dude 6.38
[admin@Dzikra-R] > system package disable ppp
[admin@Dzikra-R] > system package enable ppp
[admin@Dzikra-R] > system clock print
time: 02:29:01
date: jun/09/2017
time-zone-autodetect: yes
time-zone-name: manual
gmt-offset: +00:00
dst-active: no
[admin@Dzikra-R] > log print
01:41:26 system,error,critical router was rebooted without proper shutdown
01:41:28 interface,info ether1 link up
01:41:29 interface,info ether2 link up
01:41:29 interface,info ether3 link up
[admin@Dzikra-R] > interface monitor-traffic interface=internet
name: internet
rx-packets-per-second: 0
rx-bits-per-second: 0bps
rx-drops-per-second: 0
rx-errors-per-second: 0
tx-packets-per-second: 0
tx-bits-per-second: 0bps
tx-drops-per-second: 0
tx-errors-per-second: 0
-- [Q quit|D dump|C-z pause]
[admin@Dzikra-R] > ip pool add ranges=10.10.10.1-10.10.10.15
[admin@Dzikra-R] > ip dhcp-server network add address=10.10.10.0/24 gateway=10.1
0.10.1 dns-server=8.8.8.8
[admin@Dzikra-R] > ip pool print
# NAME RANGES
0 pool0 10.10.10.1-10.10.10.15
[admin@Dzikra-R] > ip dhcp-server network print
# ADDRESS GATEWAY DNS-SERVER WINS-SERVER DOMAIN
0 10.10.10.0/24 10.10.10.1 8.8.8.8
[admin@Dzikra-R] > ip dhcp-server setup
Select interface to run DHCP server on
dhcp server interface: internet
Select network for DHCP addresses
dhcp address space: 10.10.10.0/24
Select gateway for given network
gateway for dhcp network: 10.10.10.1
Select pool of ip addresses given out by DHCP server
addresses to give out: 10.10.10.2-10.10.10.254
Select DNS servers
dns servers: 8.8.8.8
Select lease time
lease time: 10m
Demikianlah Artikel 40 Perintah dasar mikrotik
Sekianlah artikel 40 Perintah dasar mikrotik kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.
Anda sekarang membaca artikel 40 Perintah dasar mikrotik dengan alamat link https://anothers-stuff.blogspot.com/2017/06/40-perintah-dasar-mikrotik.html