Anda di halaman 1dari 6

Konfigurasi CLI Mikrotik

1.Melihat Interface yang telah terpasang.


/interface print

2. Command line Konfigurasi Interface Internet.

/interface ethernet set ether1 name=Public


/interface Ethernet set ether2 name=Local
atau
/interface set 0 name=Public
/interface set 1 name=Local
atau
/ interface set 0 name=Public; set 1 name=Local

3. Command line menambahkan Ip address.


/ip address add address=192.X.X.X.X/24 interface=Public
/ip address add address=167.X.X.X.X/24 interface=Local

4. Mengganti IP Address pada interface Local


/ip address remove 1
/ip address add address=172.16.10.100/24 interface=Local

5. Membuat default gateway


/ ip route add dst-address=0.0.0.0/0 gateway=192.168.67.2 Atau
/ip route add gateway=192.168.67.2

6. Konfigurasi NAT Masquerade


/ip firewall nat add chain=srcnat out-interface=Public action=masquerade

7. Command line untuk menambahkan DHCP Server packet


Buat IP Pool
/ip pool add name = ippool1 ranges= 172.16.10.1-172.16.10.10
8. Command line untuk backup system yang terpasang.
/system backup save name=Backup-1

9. Command line untuk restoring Configuration.


/system backup load name=Backup-1

10. Command line Untuk Shutdown.


system shutdown

11. Command line untuk merestart mikrotik.


systemreboot

12. Command line untuk merubah nama mikrotik machine.


system identity
set name=MikrotikMachine
>print
Guna untuk melihat konfigurasi yang sudah terpasang.
name :" MikrotikMachine "

13. Command Line Merubah Password Mikrotik


>password
>old password ="ketikan kosong kemudian enter"
password
>new password : ="ketikan password baru"
>retype new password ="ulangi password yg telah di
inputkan"

14. Command line untuk melihat paket pada Mikrotik.


>system
>Package
>print

15. Command line update system mikrotik.


]>system upgrade
>download
0,1,2,3,4,5,6,7,8 dst
16. Command line untuk mengaktifkan paket mikrotik.
>system package
>enabled dhcp
Dalam hitungan menit system akan mengktifkan paket secara otomatis.

17. Command line untuk mengaktifkan Interface yang sudah aktif.


]>interface
>ethernet enable
eth0 atau
eth1.

18. Command line Konfigurasi IP Address


>ip address
>ip address add interface=eth0 address=192.168.1.20
netmask=255.255.255.0

19. Command line Konfigurasi DNS


>ip dns
>ip dns set domain_anda=ip public ISP
>ip dns set
primary-dns=202.168.1.1
>ip dns set
secondary-dns=202.168.1.155
>ip route add
gateway=202.168.1.1

20. Command Line Set Konfigurasi NAT


>ip firewall nat
>ip firewall nat add chain=srcnat out-interface=eth0
dgn internet src-address= silahkan isi ip eth0 & subnetmask lalu lanjutkan
action=masquerade

21. Setting Password


router>enable
router#configure terminal
router(config)#enable password forumsains (set password untuk masuk ke mode privilege)
router(config)#enable secret secret (set enkripsi untuk password yang disimpan)

22. Setting Host Name


router>enable
router#configure terminal
router(config)#hostname nama-host

23. Setting VLAN


router>enable
router#configure terminal
router(config)#vlan nomor-vlan
router(config-vlan)#name nama-vlan

24. Setting IP Address pada VLAN


router>enable
router#configure terminal
router(config)#interface vlan 1
router(config-if)#ip address address mask (misal: ip address 172..20.76.1 255.255.255.0)
router(config-if)#no shutdown

25. Setting Identitas pada Port Cisco Catalyst


router>enable
router#configure terminal
router(config)#interface nama-port
router(config-if)#description Port Setting Identitas
router(config-if)#end

26. Setting IP Gateway


router>enable
router#configure terminal
router(config)#ip default-gateway address

27. Setting Port-Speed dan Link-Mode


router#configure terminal
router(config)#interface nama-port (misal : interface fast ethernet 0/1)
router(config-if)#speed 100
router(config-if)#duplex full
router#configure terminal
router(config)#interface nama-port
router(config-if)#switchport mode access
router(config-if)#switchport access vlan nama-vlan
router#configure terminal
router(config)#interface nama-port
router(config-if)#switchport mode trunk
router(config-if)#switchport trunk allowed vlan nama-vlan
28. Setting Line VTY
router#configure terminal
router(config)#line vty 0 4
router(config-line)#login
router(config-line)#password password

29. Setting Line Con 0


router#configure terminal
router(config)#line con 0
router(config-line)#login
router(config-line)#password password

30. Melihat Semua Konfigurasi


router#show running-config

31. Menghapus Semua Konfigurasi


router#erase startup-config
router#dir
router#delete flash:vlan.dat
router#dir
router#reload

32. Command line Konfigurasi DHCP Server.


/ip dhcp-server add interface=Local address=ippool1
Setup Netwok; Gateway, DNS Server,..
/ip dhcp-server network add address=x.x.x.x/xx gateway=x.x.x.x s=dns-server=x.x.x.x

Anda mungkin juga menyukai